aws-sdk-appsync 1.97.0 → 1.99.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-appsync/client.rb +9 -1
- data/lib/aws-sdk-appsync/client_api.rb +6 -0
- data/lib/aws-sdk-appsync/endpoint_provider.rb +13 -17
- data/lib/aws-sdk-appsync/types.rb +32 -2
- data/lib/aws-sdk-appsync.rb +1 -1
- data/sig/client.rbs +4 -0
- data/sig/types.rbs +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2eb831d4d15e393ecc1d367832f201ba09a690e71a2a58f4d22d276a998bb9a0
|
4
|
+
data.tar.gz: 9d8af1091c3aa372baf2aa31f888af04d0616b845f3ebba1460fdae4659af30a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e417ff4724f5e12857a0a2de77580172fc15c3bc1c0246c79f55ddcbecc80144f8b5b7a181c894b183ccf2421e97174ce216788971e0638b5f28e08b162db66
|
7
|
+
data.tar.gz: fc8718dc454acda7ade6c7698de236612cc2714d3d1ff4f700dc2307d9b81def289f212ed14232e6e0b1d0b13772a1a17d8a14ab2a9da1fba99ecdb0a75f35c3
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.99.0 (2025-02-06)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.98.0 (2025-01-28)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Add stash and outErrors to EvaluateCode/EvaluateMappingTemplate response
|
13
|
+
|
4
14
|
1.97.0 (2025-01-15)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.99.0
|
@@ -2073,6 +2073,8 @@ module Aws::AppSync
|
|
2073
2073
|
# * {Types::EvaluateCodeResponse#evaluation_result #evaluation_result} => String
|
2074
2074
|
# * {Types::EvaluateCodeResponse#error #error} => Types::EvaluateCodeErrorDetail
|
2075
2075
|
# * {Types::EvaluateCodeResponse#logs #logs} => Array<String>
|
2076
|
+
# * {Types::EvaluateCodeResponse#stash #stash} => String
|
2077
|
+
# * {Types::EvaluateCodeResponse#out_errors #out_errors} => String
|
2076
2078
|
#
|
2077
2079
|
# @example Request syntax with placeholder values
|
2078
2080
|
#
|
@@ -2098,6 +2100,8 @@ module Aws::AppSync
|
|
2098
2100
|
# resp.error.code_errors[0].location.span #=> Integer
|
2099
2101
|
# resp.logs #=> Array
|
2100
2102
|
# resp.logs[0] #=> String
|
2103
|
+
# resp.stash #=> String
|
2104
|
+
# resp.out_errors #=> String
|
2101
2105
|
#
|
2102
2106
|
# @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/EvaluateCode AWS API Documentation
|
2103
2107
|
#
|
@@ -2132,6 +2136,8 @@ module Aws::AppSync
|
|
2132
2136
|
# * {Types::EvaluateMappingTemplateResponse#evaluation_result #evaluation_result} => String
|
2133
2137
|
# * {Types::EvaluateMappingTemplateResponse#error #error} => Types::ErrorDetail
|
2134
2138
|
# * {Types::EvaluateMappingTemplateResponse#logs #logs} => Array<String>
|
2139
|
+
# * {Types::EvaluateMappingTemplateResponse#stash #stash} => String
|
2140
|
+
# * {Types::EvaluateMappingTemplateResponse#out_errors #out_errors} => String
|
2135
2141
|
#
|
2136
2142
|
# @example Request syntax with placeholder values
|
2137
2143
|
#
|
@@ -2146,6 +2152,8 @@ module Aws::AppSync
|
|
2146
2152
|
# resp.error.message #=> String
|
2147
2153
|
# resp.logs #=> Array
|
2148
2154
|
# resp.logs[0] #=> String
|
2155
|
+
# resp.stash #=> String
|
2156
|
+
# resp.out_errors #=> String
|
2149
2157
|
#
|
2150
2158
|
# @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/EvaluateMappingTemplate AWS API Documentation
|
2151
2159
|
#
|
@@ -5003,7 +5011,7 @@ module Aws::AppSync
|
|
5003
5011
|
tracer: tracer
|
5004
5012
|
)
|
5005
5013
|
context[:gem_name] = 'aws-sdk-appsync'
|
5006
|
-
context[:gem_version] = '1.
|
5014
|
+
context[:gem_version] = '1.99.0'
|
5007
5015
|
Seahorse::Client::Request.new(handlers, context)
|
5008
5016
|
end
|
5009
5017
|
|
@@ -246,6 +246,7 @@ module Aws::AppSync
|
|
246
246
|
OpenIDConnectConfig = Shapes::StructureShape.new(name: 'OpenIDConnectConfig')
|
247
247
|
OpenSearchServiceDataSourceConfig = Shapes::StructureShape.new(name: 'OpenSearchServiceDataSourceConfig')
|
248
248
|
OperationLevelMetricsConfig = Shapes::StringShape.new(name: 'OperationLevelMetricsConfig')
|
249
|
+
OutErrors = Shapes::StringShape.new(name: 'OutErrors')
|
249
250
|
OutputType = Shapes::StringShape.new(name: 'OutputType')
|
250
251
|
OwnerContact = Shapes::StringShape.new(name: 'OwnerContact')
|
251
252
|
Ownership = Shapes::StringShape.new(name: 'Ownership')
|
@@ -283,6 +284,7 @@ module Aws::AppSync
|
|
283
284
|
StartSchemaCreationResponse = Shapes::StructureShape.new(name: 'StartSchemaCreationResponse')
|
284
285
|
StartSchemaMergeRequest = Shapes::StructureShape.new(name: 'StartSchemaMergeRequest')
|
285
286
|
StartSchemaMergeResponse = Shapes::StructureShape.new(name: 'StartSchemaMergeResponse')
|
287
|
+
Stash = Shapes::StringShape.new(name: 'Stash')
|
286
288
|
String = Shapes::StringShape.new(name: 'String')
|
287
289
|
SyncConfig = Shapes::StructureShape.new(name: 'SyncConfig')
|
288
290
|
TTL = Shapes::IntegerShape.new(name: 'TTL')
|
@@ -795,6 +797,8 @@ module Aws::AppSync
|
|
795
797
|
EvaluateCodeResponse.add_member(:evaluation_result, Shapes::ShapeRef.new(shape: EvaluationResult, location_name: "evaluationResult"))
|
796
798
|
EvaluateCodeResponse.add_member(:error, Shapes::ShapeRef.new(shape: EvaluateCodeErrorDetail, location_name: "error"))
|
797
799
|
EvaluateCodeResponse.add_member(:logs, Shapes::ShapeRef.new(shape: Logs, location_name: "logs"))
|
800
|
+
EvaluateCodeResponse.add_member(:stash, Shapes::ShapeRef.new(shape: Stash, location_name: "stash"))
|
801
|
+
EvaluateCodeResponse.add_member(:out_errors, Shapes::ShapeRef.new(shape: OutErrors, location_name: "outErrors"))
|
798
802
|
EvaluateCodeResponse.struct_class = Types::EvaluateCodeResponse
|
799
803
|
|
800
804
|
EvaluateMappingTemplateRequest.add_member(:template, Shapes::ShapeRef.new(shape: Template, required: true, location_name: "template"))
|
@@ -804,6 +808,8 @@ module Aws::AppSync
|
|
804
808
|
EvaluateMappingTemplateResponse.add_member(:evaluation_result, Shapes::ShapeRef.new(shape: EvaluationResult, location_name: "evaluationResult"))
|
805
809
|
EvaluateMappingTemplateResponse.add_member(:error, Shapes::ShapeRef.new(shape: ErrorDetail, location_name: "error"))
|
806
810
|
EvaluateMappingTemplateResponse.add_member(:logs, Shapes::ShapeRef.new(shape: Logs, location_name: "logs"))
|
811
|
+
EvaluateMappingTemplateResponse.add_member(:stash, Shapes::ShapeRef.new(shape: Stash, location_name: "stash"))
|
812
|
+
EvaluateMappingTemplateResponse.add_member(:out_errors, Shapes::ShapeRef.new(shape: OutErrors, location_name: "outErrors"))
|
807
813
|
EvaluateMappingTemplateResponse.struct_class = Types::EvaluateMappingTemplateResponse
|
808
814
|
|
809
815
|
EventBridgeDataSourceConfig.add_member(:event_bus_arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "eventBusArn"))
|
@@ -10,40 +10,36 @@
|
|
10
10
|
module Aws::AppSync
|
11
11
|
class EndpointProvider
|
12
12
|
def resolve_endpoint(parameters)
|
13
|
-
|
14
|
-
|
15
|
-
use_fips = parameters.use_fips
|
16
|
-
endpoint = parameters.endpoint
|
17
|
-
if Aws::Endpoints::Matchers.set?(endpoint)
|
18
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
13
|
+
if Aws::Endpoints::Matchers.set?(parameters.endpoint)
|
14
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
|
19
15
|
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
20
16
|
end
|
21
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
17
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
22
18
|
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
23
19
|
end
|
24
|
-
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
20
|
+
return Aws::Endpoints::Endpoint.new(url: parameters.endpoint, headers: {}, properties: {})
|
25
21
|
end
|
26
|
-
if Aws::Endpoints::Matchers.set?(region)
|
27
|
-
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
28
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
22
|
+
if Aws::Endpoints::Matchers.set?(parameters.region)
|
23
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region))
|
24
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
29
25
|
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
30
|
-
return Aws::Endpoints::Endpoint.new(url: "https://appsync-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
26
|
+
return Aws::Endpoints::Endpoint.new(url: "https://appsync-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
31
27
|
end
|
32
28
|
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
29
|
end
|
34
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
30
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
|
35
31
|
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
36
|
-
return Aws::Endpoints::Endpoint.new(url: "https://appsync-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
32
|
+
return Aws::Endpoints::Endpoint.new(url: "https://appsync-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
37
33
|
end
|
38
34
|
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
39
35
|
end
|
40
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
36
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
41
37
|
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
42
|
-
return Aws::Endpoints::Endpoint.new(url: "https://appsync.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
38
|
+
return Aws::Endpoints::Endpoint.new(url: "https://appsync.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
43
39
|
end
|
44
40
|
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
45
41
|
end
|
46
|
-
return Aws::Endpoints::Endpoint.new(url: "https://appsync.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
42
|
+
return Aws::Endpoints::Endpoint.new(url: "https://appsync.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
47
43
|
end
|
48
44
|
end
|
49
45
|
raise ArgumentError, "Invalid Configuration: Missing Region"
|
@@ -2550,12 +2550,27 @@ module Aws::AppSync
|
|
2550
2550
|
# `util.log.error` in the evaluated code.
|
2551
2551
|
# @return [Array<String>]
|
2552
2552
|
#
|
2553
|
+
# @!attribute [rw] stash
|
2554
|
+
# An object available inside each resolver and function handler. A
|
2555
|
+
# single `stash` object lives through a single resolver run.
|
2556
|
+
# Therefore, you can use the stash to pass arbitrary data across
|
2557
|
+
# request and response handlers and across functions in a pipeline
|
2558
|
+
# resolver.
|
2559
|
+
# @return [String]
|
2560
|
+
#
|
2561
|
+
# @!attribute [rw] out_errors
|
2562
|
+
# The list of runtime errors that are added to the GraphQL operation
|
2563
|
+
# response.
|
2564
|
+
# @return [String]
|
2565
|
+
#
|
2553
2566
|
# @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/EvaluateCodeResponse AWS API Documentation
|
2554
2567
|
#
|
2555
2568
|
class EvaluateCodeResponse < Struct.new(
|
2556
2569
|
:evaluation_result,
|
2557
2570
|
:error,
|
2558
|
-
:logs
|
2571
|
+
:logs,
|
2572
|
+
:stash,
|
2573
|
+
:out_errors)
|
2559
2574
|
SENSITIVE = []
|
2560
2575
|
include Aws::Structure
|
2561
2576
|
end
|
@@ -2592,12 +2607,27 @@ module Aws::AppSync
|
|
2592
2607
|
# `util.log.error` in the evaluated code.
|
2593
2608
|
# @return [Array<String>]
|
2594
2609
|
#
|
2610
|
+
# @!attribute [rw] stash
|
2611
|
+
# An object available inside each resolver and function handler. A
|
2612
|
+
# single `stash` object lives through a single resolver run.
|
2613
|
+
# Therefore, you can use the stash to pass arbitrary data across
|
2614
|
+
# request and response handlers and across functions in a pipeline
|
2615
|
+
# resolver.
|
2616
|
+
# @return [String]
|
2617
|
+
#
|
2618
|
+
# @!attribute [rw] out_errors
|
2619
|
+
# The list of runtime errors that are added to the GraphQL operation
|
2620
|
+
# response.
|
2621
|
+
# @return [String]
|
2622
|
+
#
|
2595
2623
|
# @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/EvaluateMappingTemplateResponse AWS API Documentation
|
2596
2624
|
#
|
2597
2625
|
class EvaluateMappingTemplateResponse < Struct.new(
|
2598
2626
|
:evaluation_result,
|
2599
2627
|
:error,
|
2600
|
-
:logs
|
2628
|
+
:logs,
|
2629
|
+
:stash,
|
2630
|
+
:out_errors)
|
2601
2631
|
SENSITIVE = []
|
2602
2632
|
include Aws::Structure
|
2603
2633
|
end
|
data/lib/aws-sdk-appsync.rb
CHANGED
data/sig/client.rbs
CHANGED
@@ -573,6 +573,8 @@ module Aws
|
|
573
573
|
include ::Seahorse::Client::_ResponseSuccess[Types::EvaluateCodeResponse]
|
574
574
|
def evaluation_result: () -> ::String
|
575
575
|
def logs: () -> ::Array[::String]
|
576
|
+
def stash: () -> ::String
|
577
|
+
def out_errors: () -> ::String
|
576
578
|
end
|
577
579
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AppSync/Client.html#evaluate_code-instance_method
|
578
580
|
def evaluate_code: (
|
@@ -590,6 +592,8 @@ module Aws
|
|
590
592
|
include ::Seahorse::Client::_ResponseSuccess[Types::EvaluateMappingTemplateResponse]
|
591
593
|
def evaluation_result: () -> ::String
|
592
594
|
def logs: () -> ::Array[::String]
|
595
|
+
def stash: () -> ::String
|
596
|
+
def out_errors: () -> ::String
|
593
597
|
end
|
594
598
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AppSync/Client.html#evaluate_mapping_template-instance_method
|
595
599
|
def evaluate_mapping_template: (
|
data/sig/types.rbs
CHANGED
@@ -616,6 +616,8 @@ module Aws::AppSync
|
|
616
616
|
attr_accessor evaluation_result: ::String
|
617
617
|
attr_accessor error: Types::EvaluateCodeErrorDetail
|
618
618
|
attr_accessor logs: ::Array[::String]
|
619
|
+
attr_accessor stash: ::String
|
620
|
+
attr_accessor out_errors: ::String
|
619
621
|
SENSITIVE: []
|
620
622
|
end
|
621
623
|
|
@@ -629,6 +631,8 @@ module Aws::AppSync
|
|
629
631
|
attr_accessor evaluation_result: ::String
|
630
632
|
attr_accessor error: Types::ErrorDetail
|
631
633
|
attr_accessor logs: ::Array[::String]
|
634
|
+
attr_accessor stash: ::String
|
635
|
+
attr_accessor out_errors: ::String
|
632
636
|
SENSITIVE: []
|
633
637
|
end
|
634
638
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-appsync
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.99.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|