aws-sdk-appsync 1.58.0 → 1.59.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-appsync/client.rb +43 -24
- data/lib/aws-sdk-appsync/client_api.rb +4 -0
- data/lib/aws-sdk-appsync/endpoint_parameters.rb +0 -3
- data/lib/aws-sdk-appsync/endpoint_provider.rb +27 -24
- data/lib/aws-sdk-appsync/types.rb +94 -73
- data/lib/aws-sdk-appsync.rb +1 -1
- 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: 1b98c5f7a4a8c494539e16fea659921fe7b3189c773ee26678ae967420791e92
|
4
|
+
data.tar.gz: 9963279b0e8954ebb02ba1ff5f1b490a1774831d5c6d209be527df3cfb1173a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a65daad5a465f3453ffe172436d81da76a49fc511eade0ee7a0580721ee552fb1e1077df3e30e51435f45f003e4ac2f1897c25cbe534afffb2ccbcabc98ac569
|
7
|
+
data.tar.gz: 3861c7db7b55e1f487f84e419a7b13f24a100935de142c9433ae0f7f385cba5a4d6e7e055c78b26a86c4b922936cc7392d5316710b83a76dc34e5dccae812351
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.59.0 (2023-05-03)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Private API support for AWS AppSync. With Private APIs, you can now create GraphQL APIs that can only be accessed from your Amazon Virtual Private Cloud ("VPC").
|
8
|
+
|
4
9
|
1.58.0 (2023-01-31)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.59.0
|
@@ -374,7 +374,7 @@ module Aws::AppSync
|
|
374
374
|
# The domain name.
|
375
375
|
#
|
376
376
|
# @option params [required, String] :api_id
|
377
|
-
# The API ID.
|
377
|
+
# The API ID. Private APIs can not be associated with custom domains.
|
378
378
|
#
|
379
379
|
# @return [Types::AssociateApiResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
380
380
|
#
|
@@ -424,9 +424,9 @@ module Aws::AppSync
|
|
424
424
|
# @option params [required, String] :api_caching_behavior
|
425
425
|
# Caching behavior.
|
426
426
|
#
|
427
|
-
# * **FULL\_REQUEST\_CACHING
|
427
|
+
# * **FULL\_REQUEST\_CACHING**: All requests are fully cached.
|
428
428
|
#
|
429
|
-
# * **PER\_RESOLVER\_CACHING
|
429
|
+
# * **PER\_RESOLVER\_CACHING**: Individual resolvers that you specify
|
430
430
|
# are cached.
|
431
431
|
#
|
432
432
|
# @option params [required, String] :type
|
@@ -455,19 +455,19 @@ module Aws::AppSync
|
|
455
455
|
# The following legacy instance types are available, but their use is
|
456
456
|
# discouraged:
|
457
457
|
#
|
458
|
-
# * **T2\_SMALL
|
458
|
+
# * **T2\_SMALL**: A t2.small instance type.
|
459
459
|
#
|
460
|
-
# * **T2\_MEDIUM
|
460
|
+
# * **T2\_MEDIUM**: A t2.medium instance type.
|
461
461
|
#
|
462
|
-
# * **R4\_LARGE
|
462
|
+
# * **R4\_LARGE**: A r4.large instance type.
|
463
463
|
#
|
464
|
-
# * **R4\_XLARGE
|
464
|
+
# * **R4\_XLARGE**: A r4.xlarge instance type.
|
465
465
|
#
|
466
|
-
# * **R4\_2XLARGE
|
466
|
+
# * **R4\_2XLARGE**: A r4.2xlarge instance type.
|
467
467
|
#
|
468
|
-
# * **R4\_4XLARGE
|
468
|
+
# * **R4\_4XLARGE**: A r4.4xlarge instance type.
|
469
469
|
#
|
470
|
-
# * **R4\_8XLARGE
|
470
|
+
# * **R4\_8XLARGE**: A r4.8xlarge instance type.
|
471
471
|
#
|
472
472
|
# @return [Types::CreateApiCacheResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
473
473
|
#
|
@@ -867,6 +867,12 @@ module Aws::AppSync
|
|
867
867
|
# @option params [Types::LambdaAuthorizerConfig] :lambda_authorizer_config
|
868
868
|
# Configuration for Lambda function authorization.
|
869
869
|
#
|
870
|
+
# @option params [String] :visibility
|
871
|
+
# Sets the value of the GraphQL API to public (`GLOBAL`) or private
|
872
|
+
# (`PRIVATE`). If no value is provided, the visibility will be set to
|
873
|
+
# `GLOBAL` by default. This value cannot be changed once the API has
|
874
|
+
# been created.
|
875
|
+
#
|
870
876
|
# @return [Types::CreateGraphqlApiResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
871
877
|
#
|
872
878
|
# * {Types::CreateGraphqlApiResponse#graphql_api #graphql_api} => Types::GraphqlApi
|
@@ -923,6 +929,7 @@ module Aws::AppSync
|
|
923
929
|
# authorizer_uri: "String", # required
|
924
930
|
# identity_validation_expression: "String",
|
925
931
|
# },
|
932
|
+
# visibility: "GLOBAL", # accepts GLOBAL, PRIVATE
|
926
933
|
# })
|
927
934
|
#
|
928
935
|
# @example Response structure
|
@@ -963,6 +970,9 @@ module Aws::AppSync
|
|
963
970
|
# resp.graphql_api.lambda_authorizer_config.authorizer_result_ttl_in_seconds #=> Integer
|
964
971
|
# resp.graphql_api.lambda_authorizer_config.authorizer_uri #=> String
|
965
972
|
# resp.graphql_api.lambda_authorizer_config.identity_validation_expression #=> String
|
973
|
+
# resp.graphql_api.dns #=> Hash
|
974
|
+
# resp.graphql_api.dns["String"] #=> String
|
975
|
+
# resp.graphql_api.visibility #=> String, one of "GLOBAL", "PRIVATE"
|
966
976
|
#
|
967
977
|
# @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateGraphqlApi AWS API Documentation
|
968
978
|
#
|
@@ -1008,11 +1018,11 @@ module Aws::AppSync
|
|
1008
1018
|
# @option params [String] :kind
|
1009
1019
|
# The resolver type.
|
1010
1020
|
#
|
1011
|
-
# * **UNIT
|
1021
|
+
# * **UNIT**: A UNIT resolver type. A UNIT resolver is the default
|
1012
1022
|
# resolver type. You can use a UNIT resolver to run a GraphQL query
|
1013
1023
|
# against a single data source.
|
1014
1024
|
#
|
1015
|
-
# * **PIPELINE
|
1025
|
+
# * **PIPELINE**: A PIPELINE resolver type. You can use a PIPELINE
|
1016
1026
|
# resolver to invoke a series of `Function` objects in a serial
|
1017
1027
|
# manner. You can use a pipeline resolver to run a GraphQL query
|
1018
1028
|
# against multiple data sources.
|
@@ -1766,6 +1776,9 @@ module Aws::AppSync
|
|
1766
1776
|
# resp.graphql_api.lambda_authorizer_config.authorizer_result_ttl_in_seconds #=> Integer
|
1767
1777
|
# resp.graphql_api.lambda_authorizer_config.authorizer_uri #=> String
|
1768
1778
|
# resp.graphql_api.lambda_authorizer_config.identity_validation_expression #=> String
|
1779
|
+
# resp.graphql_api.dns #=> Hash
|
1780
|
+
# resp.graphql_api.dns["String"] #=> String
|
1781
|
+
# resp.graphql_api.visibility #=> String, one of "GLOBAL", "PRIVATE"
|
1769
1782
|
#
|
1770
1783
|
# @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetGraphqlApi AWS API Documentation
|
1771
1784
|
#
|
@@ -2211,6 +2224,9 @@ module Aws::AppSync
|
|
2211
2224
|
# resp.graphql_apis[0].lambda_authorizer_config.authorizer_result_ttl_in_seconds #=> Integer
|
2212
2225
|
# resp.graphql_apis[0].lambda_authorizer_config.authorizer_uri #=> String
|
2213
2226
|
# resp.graphql_apis[0].lambda_authorizer_config.identity_validation_expression #=> String
|
2227
|
+
# resp.graphql_apis[0].dns #=> Hash
|
2228
|
+
# resp.graphql_apis[0].dns["String"] #=> String
|
2229
|
+
# resp.graphql_apis[0].visibility #=> String, one of "GLOBAL", "PRIVATE"
|
2214
2230
|
# resp.next_token #=> String
|
2215
2231
|
#
|
2216
2232
|
# @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListGraphqlApis AWS API Documentation
|
@@ -2528,9 +2544,9 @@ module Aws::AppSync
|
|
2528
2544
|
# @option params [required, String] :api_caching_behavior
|
2529
2545
|
# Caching behavior.
|
2530
2546
|
#
|
2531
|
-
# * **FULL\_REQUEST\_CACHING
|
2547
|
+
# * **FULL\_REQUEST\_CACHING**: All requests are fully cached.
|
2532
2548
|
#
|
2533
|
-
# * **PER\_RESOLVER\_CACHING
|
2549
|
+
# * **PER\_RESOLVER\_CACHING**: Individual resolvers that you specify
|
2534
2550
|
# are cached.
|
2535
2551
|
#
|
2536
2552
|
# @option params [required, String] :type
|
@@ -2559,19 +2575,19 @@ module Aws::AppSync
|
|
2559
2575
|
# The following legacy instance types are available, but their use is
|
2560
2576
|
# discouraged:
|
2561
2577
|
#
|
2562
|
-
# * **T2\_SMALL
|
2578
|
+
# * **T2\_SMALL**: A t2.small instance type.
|
2563
2579
|
#
|
2564
|
-
# * **T2\_MEDIUM
|
2580
|
+
# * **T2\_MEDIUM**: A t2.medium instance type.
|
2565
2581
|
#
|
2566
|
-
# * **R4\_LARGE
|
2582
|
+
# * **R4\_LARGE**: A r4.large instance type.
|
2567
2583
|
#
|
2568
|
-
# * **R4\_XLARGE
|
2584
|
+
# * **R4\_XLARGE**: A r4.xlarge instance type.
|
2569
2585
|
#
|
2570
|
-
# * **R4\_2XLARGE
|
2586
|
+
# * **R4\_2XLARGE**: A r4.2xlarge instance type.
|
2571
2587
|
#
|
2572
|
-
# * **R4\_4XLARGE
|
2588
|
+
# * **R4\_4XLARGE**: A r4.4xlarge instance type.
|
2573
2589
|
#
|
2574
|
-
# * **R4\_8XLARGE
|
2590
|
+
# * **R4\_8XLARGE**: A r4.8xlarge instance type.
|
2575
2591
|
#
|
2576
2592
|
# @return [Types::UpdateApiCacheResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2577
2593
|
#
|
@@ -3059,6 +3075,9 @@ module Aws::AppSync
|
|
3059
3075
|
# resp.graphql_api.lambda_authorizer_config.authorizer_result_ttl_in_seconds #=> Integer
|
3060
3076
|
# resp.graphql_api.lambda_authorizer_config.authorizer_uri #=> String
|
3061
3077
|
# resp.graphql_api.lambda_authorizer_config.identity_validation_expression #=> String
|
3078
|
+
# resp.graphql_api.dns #=> Hash
|
3079
|
+
# resp.graphql_api.dns["String"] #=> String
|
3080
|
+
# resp.graphql_api.visibility #=> String, one of "GLOBAL", "PRIVATE"
|
3062
3081
|
#
|
3063
3082
|
# @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateGraphqlApi AWS API Documentation
|
3064
3083
|
#
|
@@ -3100,11 +3119,11 @@ module Aws::AppSync
|
|
3100
3119
|
# @option params [String] :kind
|
3101
3120
|
# The resolver type.
|
3102
3121
|
#
|
3103
|
-
# * **UNIT
|
3122
|
+
# * **UNIT**: A UNIT resolver type. A UNIT resolver is the default
|
3104
3123
|
# resolver type. You can use a UNIT resolver to run a GraphQL query
|
3105
3124
|
# against a single data source.
|
3106
3125
|
#
|
3107
|
-
# * **PIPELINE
|
3126
|
+
# * **PIPELINE**: A PIPELINE resolver type. You can use a PIPELINE
|
3108
3127
|
# resolver to invoke a series of `Function` objects in a serial
|
3109
3128
|
# manner. You can use a pipeline resolver to run a GraphQL query
|
3110
3129
|
# against multiple data sources.
|
@@ -3256,7 +3275,7 @@ module Aws::AppSync
|
|
3256
3275
|
params: params,
|
3257
3276
|
config: config)
|
3258
3277
|
context[:gem_name] = 'aws-sdk-appsync'
|
3259
|
-
context[:gem_version] = '1.
|
3278
|
+
context[:gem_version] = '1.59.0'
|
3260
3279
|
Seahorse::Client::Request.new(handlers, context)
|
3261
3280
|
end
|
3262
3281
|
|
@@ -135,6 +135,7 @@ module Aws::AppSync
|
|
135
135
|
GetSchemaCreationStatusResponse = Shapes::StructureShape.new(name: 'GetSchemaCreationStatusResponse')
|
136
136
|
GetTypeRequest = Shapes::StructureShape.new(name: 'GetTypeRequest')
|
137
137
|
GetTypeResponse = Shapes::StructureShape.new(name: 'GetTypeResponse')
|
138
|
+
GraphQLApiVisibility = Shapes::StringShape.new(name: 'GraphQLApiVisibility')
|
138
139
|
GraphQLSchemaException = Shapes::StructureShape.new(name: 'GraphQLSchemaException')
|
139
140
|
GraphqlApi = Shapes::StructureShape.new(name: 'GraphqlApi')
|
140
141
|
GraphqlApis = Shapes::ListShape.new(name: 'GraphqlApis')
|
@@ -385,6 +386,7 @@ module Aws::AppSync
|
|
385
386
|
CreateGraphqlApiRequest.add_member(:additional_authentication_providers, Shapes::ShapeRef.new(shape: AdditionalAuthenticationProviders, location_name: "additionalAuthenticationProviders"))
|
386
387
|
CreateGraphqlApiRequest.add_member(:xray_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "xrayEnabled"))
|
387
388
|
CreateGraphqlApiRequest.add_member(:lambda_authorizer_config, Shapes::ShapeRef.new(shape: LambdaAuthorizerConfig, location_name: "lambdaAuthorizerConfig"))
|
389
|
+
CreateGraphqlApiRequest.add_member(:visibility, Shapes::ShapeRef.new(shape: GraphQLApiVisibility, location_name: "visibility"))
|
388
390
|
CreateGraphqlApiRequest.struct_class = Types::CreateGraphqlApiRequest
|
389
391
|
|
390
392
|
CreateGraphqlApiResponse.add_member(:graphql_api, Shapes::ShapeRef.new(shape: GraphqlApi, location_name: "graphqlApi"))
|
@@ -648,6 +650,8 @@ module Aws::AppSync
|
|
648
650
|
GraphqlApi.add_member(:xray_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "xrayEnabled"))
|
649
651
|
GraphqlApi.add_member(:waf_web_acl_arn, Shapes::ShapeRef.new(shape: String, location_name: "wafWebAclArn"))
|
650
652
|
GraphqlApi.add_member(:lambda_authorizer_config, Shapes::ShapeRef.new(shape: LambdaAuthorizerConfig, location_name: "lambdaAuthorizerConfig"))
|
653
|
+
GraphqlApi.add_member(:dns, Shapes::ShapeRef.new(shape: MapOfStringToString, location_name: "dns"))
|
654
|
+
GraphqlApi.add_member(:visibility, Shapes::ShapeRef.new(shape: GraphQLApiVisibility, location_name: "visibility"))
|
651
655
|
GraphqlApi.struct_class = Types::GraphqlApi
|
652
656
|
|
653
657
|
GraphqlApis.member = Shapes::ShapeRef.new(shape: GraphqlApi)
|
@@ -50,9 +50,6 @@ module Aws::AppSync
|
|
50
50
|
|
51
51
|
def initialize(options = {})
|
52
52
|
self[:region] = options[:region]
|
53
|
-
if self[:region].nil?
|
54
|
-
raise ArgumentError, "Missing required EndpointParameter: :region"
|
55
|
-
end
|
56
53
|
self[:use_dual_stack] = options[:use_dual_stack]
|
57
54
|
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
58
55
|
if self[:use_dual_stack].nil?
|
@@ -14,36 +14,39 @@ module Aws::AppSync
|
|
14
14
|
use_dual_stack = parameters.use_dual_stack
|
15
15
|
use_fips = parameters.use_fips
|
16
16
|
endpoint = parameters.endpoint
|
17
|
-
if
|
18
|
-
if Aws::Endpoints::Matchers.set?(endpoint)
|
19
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
20
|
-
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
21
|
-
end
|
22
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
23
|
-
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
24
|
-
end
|
25
|
-
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
26
|
-
end
|
27
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
28
|
-
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"))
|
29
|
-
return Aws::Endpoints::Endpoint.new(url: "https://appsync-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
30
|
-
end
|
31
|
-
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
32
|
-
end
|
17
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
33
18
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
34
|
-
|
35
|
-
return Aws::Endpoints::Endpoint.new(url: "https://appsync-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
36
|
-
end
|
37
|
-
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
19
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
38
20
|
end
|
39
21
|
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
40
|
-
|
41
|
-
|
22
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
23
|
+
end
|
24
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
25
|
+
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)
|
29
|
+
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: {})
|
31
|
+
end
|
32
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
|
+
end
|
34
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
36
|
+
return Aws::Endpoints::Endpoint.new(url: "https://appsync-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
37
|
+
end
|
38
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
39
|
+
end
|
40
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
41
|
+
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: {})
|
43
|
+
end
|
44
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
42
45
|
end
|
43
|
-
|
46
|
+
return Aws::Endpoints::Endpoint.new(url: "https://appsync.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
44
47
|
end
|
45
|
-
return Aws::Endpoints::Endpoint.new(url: "https://appsync.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
46
48
|
end
|
49
|
+
raise ArgumentError, "Invalid Configuration: Missing Region"
|
47
50
|
raise ArgumentError, 'No endpoint could be resolved'
|
48
51
|
|
49
52
|
end
|
@@ -66,13 +66,13 @@ module Aws::AppSync
|
|
66
66
|
# @!attribute [rw] association_status
|
67
67
|
# Identifies the status of an association.
|
68
68
|
#
|
69
|
-
# * **PROCESSING
|
69
|
+
# * **PROCESSING**: The API association is being created. You cannot
|
70
70
|
# modify association requests during processing.
|
71
71
|
#
|
72
|
-
# * **SUCCESS
|
72
|
+
# * **SUCCESS**: The API association was successful. You can modify
|
73
73
|
# associations after success.
|
74
74
|
#
|
75
|
-
# * **FAILED
|
75
|
+
# * **FAILED**: The API association has failed. You can modify
|
76
76
|
# associations after failure.
|
77
77
|
# @return [String]
|
78
78
|
#
|
@@ -102,9 +102,9 @@ module Aws::AppSync
|
|
102
102
|
# @!attribute [rw] api_caching_behavior
|
103
103
|
# Caching behavior.
|
104
104
|
#
|
105
|
-
# * **FULL\_REQUEST\_CACHING
|
105
|
+
# * **FULL\_REQUEST\_CACHING**: All requests are fully cached.
|
106
106
|
#
|
107
|
-
# * **PER\_RESOLVER\_CACHING
|
107
|
+
# * **PER\_RESOLVER\_CACHING**: Individual resolvers that you specify
|
108
108
|
# are cached.
|
109
109
|
# @return [String]
|
110
110
|
#
|
@@ -144,33 +144,33 @@ module Aws::AppSync
|
|
144
144
|
# The following legacy instance types are available, but their use is
|
145
145
|
# discouraged:
|
146
146
|
#
|
147
|
-
# * **T2\_SMALL
|
147
|
+
# * **T2\_SMALL**: A t2.small instance type.
|
148
148
|
#
|
149
|
-
# * **T2\_MEDIUM
|
149
|
+
# * **T2\_MEDIUM**: A t2.medium instance type.
|
150
150
|
#
|
151
|
-
# * **R4\_LARGE
|
151
|
+
# * **R4\_LARGE**: A r4.large instance type.
|
152
152
|
#
|
153
|
-
# * **R4\_XLARGE
|
153
|
+
# * **R4\_XLARGE**: A r4.xlarge instance type.
|
154
154
|
#
|
155
|
-
# * **R4\_2XLARGE
|
155
|
+
# * **R4\_2XLARGE**: A r4.2xlarge instance type.
|
156
156
|
#
|
157
|
-
# * **R4\_4XLARGE
|
157
|
+
# * **R4\_4XLARGE**: A r4.4xlarge instance type.
|
158
158
|
#
|
159
|
-
# * **R4\_8XLARGE
|
159
|
+
# * **R4\_8XLARGE**: A r4.8xlarge instance type.
|
160
160
|
# @return [String]
|
161
161
|
#
|
162
162
|
# @!attribute [rw] status
|
163
163
|
# The cache instance status.
|
164
164
|
#
|
165
|
-
# * **AVAILABLE
|
165
|
+
# * **AVAILABLE**: The instance is available for use.
|
166
166
|
#
|
167
|
-
# * **CREATING
|
167
|
+
# * **CREATING**: The instance is currently creating.
|
168
168
|
#
|
169
|
-
# * **DELETING
|
169
|
+
# * **DELETING**: The instance is currently deleting.
|
170
170
|
#
|
171
|
-
# * **MODIFYING
|
171
|
+
# * **MODIFYING**: The instance is currently modifying.
|
172
172
|
#
|
173
|
-
# * **FAILED
|
173
|
+
# * **FAILED**: The instance has failed creation.
|
174
174
|
# @return [String]
|
175
175
|
#
|
176
176
|
# @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ApiCache AWS API Documentation
|
@@ -191,7 +191,7 @@ module Aws::AppSync
|
|
191
191
|
# Customers invoke AppSync GraphQL API operations with API keys as an
|
192
192
|
# identity mechanism. There are two key versions:
|
193
193
|
#
|
194
|
-
# **da1
|
194
|
+
# **da1**: We introduced this version at launch in November 2017. These
|
195
195
|
# keys always expire after 7 days. Amazon DynamoDB TTL manages key
|
196
196
|
# expiration. These keys ceased to be valid after February 21, 2018, and
|
197
197
|
# they should no longer be used.
|
@@ -209,7 +209,7 @@ module Aws::AppSync
|
|
209
209
|
# expects the TTL to be stored in seconds. As a one-time action, we
|
210
210
|
# deleted these keys from the table on February 21, 2018.
|
211
211
|
#
|
212
|
-
# **da2
|
212
|
+
# **da2**: We introduced this version in February 2018 when AppSync
|
213
213
|
# added support to extend key expiration.
|
214
214
|
#
|
215
215
|
# * `ListApiKeys` returns the expiration time and deletion time in
|
@@ -332,7 +332,7 @@ module Aws::AppSync
|
|
332
332
|
# @return [String]
|
333
333
|
#
|
334
334
|
# @!attribute [rw] api_id
|
335
|
-
# The API ID.
|
335
|
+
# The API ID. Private APIs can not be associated with custom domains.
|
336
336
|
# @return [String]
|
337
337
|
#
|
338
338
|
# @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/AssociateApiRequest AWS API Documentation
|
@@ -362,7 +362,7 @@ module Aws::AppSync
|
|
362
362
|
# @!attribute [rw] authorization_type
|
363
363
|
# The authorization type that the HTTP endpoint requires.
|
364
364
|
#
|
365
|
-
# * **AWS\_IAM
|
365
|
+
# * **AWS\_IAM**: The authorization type is Signature Version 4
|
366
366
|
# (SigV4).
|
367
367
|
#
|
368
368
|
# ^
|
@@ -586,9 +586,9 @@ module Aws::AppSync
|
|
586
586
|
# @!attribute [rw] api_caching_behavior
|
587
587
|
# Caching behavior.
|
588
588
|
#
|
589
|
-
# * **FULL\_REQUEST\_CACHING
|
589
|
+
# * **FULL\_REQUEST\_CACHING**: All requests are fully cached.
|
590
590
|
#
|
591
|
-
# * **PER\_RESOLVER\_CACHING
|
591
|
+
# * **PER\_RESOLVER\_CACHING**: Individual resolvers that you specify
|
592
592
|
# are cached.
|
593
593
|
# @return [String]
|
594
594
|
#
|
@@ -618,19 +618,19 @@ module Aws::AppSync
|
|
618
618
|
# The following legacy instance types are available, but their use is
|
619
619
|
# discouraged:
|
620
620
|
#
|
621
|
-
# * **T2\_SMALL
|
621
|
+
# * **T2\_SMALL**: A t2.small instance type.
|
622
622
|
#
|
623
|
-
# * **T2\_MEDIUM
|
623
|
+
# * **T2\_MEDIUM**: A t2.medium instance type.
|
624
624
|
#
|
625
|
-
# * **R4\_LARGE
|
625
|
+
# * **R4\_LARGE**: A r4.large instance type.
|
626
626
|
#
|
627
|
-
# * **R4\_XLARGE
|
627
|
+
# * **R4\_XLARGE**: A r4.xlarge instance type.
|
628
628
|
#
|
629
|
-
# * **R4\_2XLARGE
|
629
|
+
# * **R4\_2XLARGE**: A r4.2xlarge instance type.
|
630
630
|
#
|
631
|
-
# * **R4\_4XLARGE
|
631
|
+
# * **R4\_4XLARGE**: A r4.4xlarge instance type.
|
632
632
|
#
|
633
|
-
# * **R4\_8XLARGE
|
633
|
+
# * **R4\_8XLARGE**: A r4.8xlarge instance type.
|
634
634
|
# @return [String]
|
635
635
|
#
|
636
636
|
# @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateApiCacheRequest AWS API Documentation
|
@@ -942,6 +942,13 @@ module Aws::AppSync
|
|
942
942
|
# Configuration for Lambda function authorization.
|
943
943
|
# @return [Types::LambdaAuthorizerConfig]
|
944
944
|
#
|
945
|
+
# @!attribute [rw] visibility
|
946
|
+
# Sets the value of the GraphQL API to public (`GLOBAL`) or private
|
947
|
+
# (`PRIVATE`). If no value is provided, the visibility will be set to
|
948
|
+
# `GLOBAL` by default. This value cannot be changed once the API has
|
949
|
+
# been created.
|
950
|
+
# @return [String]
|
951
|
+
#
|
945
952
|
# @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateGraphqlApiRequest AWS API Documentation
|
946
953
|
#
|
947
954
|
class CreateGraphqlApiRequest < Struct.new(
|
@@ -953,7 +960,8 @@ module Aws::AppSync
|
|
953
960
|
:tags,
|
954
961
|
:additional_authentication_providers,
|
955
962
|
:xray_enabled,
|
956
|
-
:lambda_authorizer_config
|
963
|
+
:lambda_authorizer_config,
|
964
|
+
:visibility)
|
957
965
|
SENSITIVE = []
|
958
966
|
include Aws::Structure
|
959
967
|
end
|
@@ -1005,11 +1013,11 @@ module Aws::AppSync
|
|
1005
1013
|
# @!attribute [rw] kind
|
1006
1014
|
# The resolver type.
|
1007
1015
|
#
|
1008
|
-
# * **UNIT
|
1016
|
+
# * **UNIT**: A UNIT resolver type. A UNIT resolver is the default
|
1009
1017
|
# resolver type. You can use a UNIT resolver to run a GraphQL query
|
1010
1018
|
# against a single data source.
|
1011
1019
|
#
|
1012
|
-
# * **PIPELINE
|
1020
|
+
# * **PIPELINE**: A PIPELINE resolver type. You can use a PIPELINE
|
1013
1021
|
# resolver to invoke a series of `Function` objects in a serial
|
1014
1022
|
# manner. You can use a pipeline resolver to run a GraphQL query
|
1015
1023
|
# against multiple data sources.
|
@@ -1134,28 +1142,27 @@ module Aws::AppSync
|
|
1134
1142
|
# @!attribute [rw] type
|
1135
1143
|
# The type of the data source.
|
1136
1144
|
#
|
1137
|
-
# * **AWS\_LAMBDA
|
1145
|
+
# * **AWS\_LAMBDA**: The data source is an Lambda function.
|
1138
1146
|
#
|
1139
|
-
# * **AMAZON\_DYNAMODB
|
1140
|
-
# table.
|
1147
|
+
# * **AMAZON\_DYNAMODB**: The data source is an Amazon DynamoDB table.
|
1141
1148
|
#
|
1142
|
-
# * **AMAZON\_ELASTICSEARCH
|
1143
|
-
#
|
1149
|
+
# * **AMAZON\_ELASTICSEARCH**: The data source is an Amazon OpenSearch
|
1150
|
+
# Service domain.
|
1144
1151
|
#
|
1145
|
-
# * **AMAZON\_OPENSEARCH\_SERVICE
|
1152
|
+
# * **AMAZON\_OPENSEARCH\_SERVICE**: The data source is an Amazon
|
1146
1153
|
# OpenSearch Service domain.
|
1147
1154
|
#
|
1148
|
-
# * **AMAZON\_EVENTBRIDGE
|
1155
|
+
# * **AMAZON\_EVENTBRIDGE**: The data source is an Amazon EventBridge
|
1149
1156
|
# configuration.
|
1150
1157
|
#
|
1151
|
-
# * **NONE
|
1158
|
+
# * **NONE**: There is no data source. Use this type when you want to
|
1152
1159
|
# invoke a GraphQL operation without connecting to a data source,
|
1153
1160
|
# such as when you're performing data transformation with resolvers
|
1154
1161
|
# or invoking a subscription from a mutation.
|
1155
1162
|
#
|
1156
|
-
# * **HTTP
|
1163
|
+
# * **HTTP**: The data source is an HTTP endpoint.
|
1157
1164
|
#
|
1158
|
-
# * **RELATIONAL\_DATABASE
|
1165
|
+
# * **RELATIONAL\_DATABASE**: The data source is a relational
|
1159
1166
|
# database.
|
1160
1167
|
# @return [String]
|
1161
1168
|
#
|
@@ -2129,6 +2136,17 @@ module Aws::AppSync
|
|
2129
2136
|
# Configuration for Lambda function authorization.
|
2130
2137
|
# @return [Types::LambdaAuthorizerConfig]
|
2131
2138
|
#
|
2139
|
+
# @!attribute [rw] dns
|
2140
|
+
# The DNS records for the API.
|
2141
|
+
# @return [Hash<String,String>]
|
2142
|
+
#
|
2143
|
+
# @!attribute [rw] visibility
|
2144
|
+
# Sets the value of the GraphQL API to public (`GLOBAL`) or private
|
2145
|
+
# (`PRIVATE`). If no value is provided, the visibility will be set to
|
2146
|
+
# `GLOBAL` by default. This value cannot be changed once the API has
|
2147
|
+
# been created.
|
2148
|
+
# @return [String]
|
2149
|
+
#
|
2132
2150
|
# @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GraphqlApi AWS API Documentation
|
2133
2151
|
#
|
2134
2152
|
class GraphqlApi < Struct.new(
|
@@ -2144,7 +2162,9 @@ module Aws::AppSync
|
|
2144
2162
|
:additional_authentication_providers,
|
2145
2163
|
:xray_enabled,
|
2146
2164
|
:waf_web_acl_arn,
|
2147
|
-
:lambda_authorizer_config
|
2165
|
+
:lambda_authorizer_config,
|
2166
|
+
:dns,
|
2167
|
+
:visibility)
|
2148
2168
|
SENSITIVE = []
|
2149
2169
|
include Aws::Structure
|
2150
2170
|
end
|
@@ -2191,9 +2211,10 @@ module Aws::AppSync
|
|
2191
2211
|
#
|
2192
2212
|
# @!attribute [rw] authorizer_result_ttl_in_seconds
|
2193
2213
|
# The number of seconds a response should be cached for. The default
|
2194
|
-
# is
|
2195
|
-
#
|
2196
|
-
#
|
2214
|
+
# is 0 seconds, which disables caching. If you don't specify a value
|
2215
|
+
# for `authorizerResultTtlInSeconds`, the default value is used. The
|
2216
|
+
# maximum value is one hour (3600 seconds). The Lambda function can
|
2217
|
+
# override this by returning a `ttlOverride` key in its response.
|
2197
2218
|
# @return [Integer]
|
2198
2219
|
#
|
2199
2220
|
# @!attribute [rw] authorizer_uri
|
@@ -2201,7 +2222,7 @@ module Aws::AppSync
|
|
2201
2222
|
# for authorization. This can be a standard Lambda ARN, a version ARN
|
2202
2223
|
# (`.../v3`), or an alias ARN.
|
2203
2224
|
#
|
2204
|
-
# **Note
|
2225
|
+
# **Note**: This Lambda function must have the following
|
2205
2226
|
# resource-based policy assigned to it. When configuring Lambda
|
2206
2227
|
# authorizers in the console, this is done for you. To use the Command
|
2207
2228
|
# Line Interface (CLI), run the following:
|
@@ -2638,10 +2659,10 @@ module Aws::AppSync
|
|
2638
2659
|
# @!attribute [rw] field_log_level
|
2639
2660
|
# The field logging level. Values can be NONE, ERROR, or ALL.
|
2640
2661
|
#
|
2641
|
-
# * **NONE
|
2662
|
+
# * **NONE**: No field-level logs are captured.
|
2642
2663
|
#
|
2643
|
-
# * **ERROR
|
2644
|
-
#
|
2664
|
+
# * **ERROR**: Logs the following information only for the fields that
|
2665
|
+
# are in error:
|
2645
2666
|
#
|
2646
2667
|
# * The error section in the server response.
|
2647
2668
|
#
|
@@ -2650,8 +2671,8 @@ module Aws::AppSync
|
|
2650
2671
|
# * The generated request/response functions that got resolved for
|
2651
2672
|
# error fields.
|
2652
2673
|
#
|
2653
|
-
# * **ALL
|
2654
|
-
#
|
2674
|
+
# * **ALL**: The following information is logged for all fields in the
|
2675
|
+
# query:
|
2655
2676
|
#
|
2656
2677
|
# * Field-level tracing information.
|
2657
2678
|
#
|
@@ -2804,8 +2825,8 @@ module Aws::AppSync
|
|
2804
2825
|
# @!attribute [rw] relational_database_source_type
|
2805
2826
|
# Source type for the relational database.
|
2806
2827
|
#
|
2807
|
-
# * **RDS\_HTTP\_ENDPOINT
|
2808
|
-
#
|
2828
|
+
# * **RDS\_HTTP\_ENDPOINT**: The relational database source type is an
|
2829
|
+
# Amazon Relational Database Service (Amazon RDS) HTTP endpoint.
|
2809
2830
|
#
|
2810
2831
|
# ^
|
2811
2832
|
# @return [String]
|
@@ -2852,11 +2873,11 @@ module Aws::AppSync
|
|
2852
2873
|
# @!attribute [rw] kind
|
2853
2874
|
# The resolver type.
|
2854
2875
|
#
|
2855
|
-
# * **UNIT
|
2876
|
+
# * **UNIT**: A UNIT resolver type. A UNIT resolver is the default
|
2856
2877
|
# resolver type. You can use a UNIT resolver to run a GraphQL query
|
2857
2878
|
# against a single data source.
|
2858
2879
|
#
|
2859
|
-
# * **PIPELINE
|
2880
|
+
# * **PIPELINE**: A PIPELINE resolver type. You can use a PIPELINE
|
2860
2881
|
# resolver to invoke a series of `Function` objects in a serial
|
2861
2882
|
# manner. You can use a pipeline resolver to run a GraphQL query
|
2862
2883
|
# against multiple data sources.
|
@@ -2951,24 +2972,24 @@ module Aws::AppSync
|
|
2951
2972
|
# The Conflict Resolution strategy to perform in the event of a
|
2952
2973
|
# conflict.
|
2953
2974
|
#
|
2954
|
-
# * **OPTIMISTIC\_CONCURRENCY
|
2975
|
+
# * **OPTIMISTIC\_CONCURRENCY**: Resolve conflicts by rejecting
|
2955
2976
|
# mutations when versions don't match the latest version at the
|
2956
2977
|
# server.
|
2957
2978
|
#
|
2958
|
-
# * **AUTOMERGE
|
2979
|
+
# * **AUTOMERGE**: Resolve conflicts with the Automerge conflict
|
2959
2980
|
# resolution strategy.
|
2960
2981
|
#
|
2961
|
-
# * **LAMBDA
|
2982
|
+
# * **LAMBDA**: Resolve conflicts with an Lambda function supplied in
|
2962
2983
|
# the `LambdaConflictHandlerConfig`.
|
2963
2984
|
# @return [String]
|
2964
2985
|
#
|
2965
2986
|
# @!attribute [rw] conflict_detection
|
2966
2987
|
# The Conflict Detection strategy to use.
|
2967
2988
|
#
|
2968
|
-
# * **VERSION
|
2989
|
+
# * **VERSION**: Detect conflicts based on object versions for this
|
2969
2990
|
# resolver.
|
2970
2991
|
#
|
2971
|
-
# * **NONE
|
2992
|
+
# * **NONE**: Do not detect conflicts when invoking this resolver.
|
2972
2993
|
# @return [String]
|
2973
2994
|
#
|
2974
2995
|
# @!attribute [rw] lambda_conflict_handler_config
|
@@ -3090,9 +3111,9 @@ module Aws::AppSync
|
|
3090
3111
|
# @!attribute [rw] api_caching_behavior
|
3091
3112
|
# Caching behavior.
|
3092
3113
|
#
|
3093
|
-
# * **FULL\_REQUEST\_CACHING
|
3114
|
+
# * **FULL\_REQUEST\_CACHING**: All requests are fully cached.
|
3094
3115
|
#
|
3095
|
-
# * **PER\_RESOLVER\_CACHING
|
3116
|
+
# * **PER\_RESOLVER\_CACHING**: Individual resolvers that you specify
|
3096
3117
|
# are cached.
|
3097
3118
|
# @return [String]
|
3098
3119
|
#
|
@@ -3122,19 +3143,19 @@ module Aws::AppSync
|
|
3122
3143
|
# The following legacy instance types are available, but their use is
|
3123
3144
|
# discouraged:
|
3124
3145
|
#
|
3125
|
-
# * **T2\_SMALL
|
3146
|
+
# * **T2\_SMALL**: A t2.small instance type.
|
3126
3147
|
#
|
3127
|
-
# * **T2\_MEDIUM
|
3148
|
+
# * **T2\_MEDIUM**: A t2.medium instance type.
|
3128
3149
|
#
|
3129
|
-
# * **R4\_LARGE
|
3150
|
+
# * **R4\_LARGE**: A r4.large instance type.
|
3130
3151
|
#
|
3131
|
-
# * **R4\_XLARGE
|
3152
|
+
# * **R4\_XLARGE**: A r4.xlarge instance type.
|
3132
3153
|
#
|
3133
|
-
# * **R4\_2XLARGE
|
3154
|
+
# * **R4\_2XLARGE**: A r4.2xlarge instance type.
|
3134
3155
|
#
|
3135
|
-
# * **R4\_4XLARGE
|
3156
|
+
# * **R4\_4XLARGE**: A r4.4xlarge instance type.
|
3136
3157
|
#
|
3137
|
-
# * **R4\_8XLARGE
|
3158
|
+
# * **R4\_8XLARGE**: A r4.8xlarge instance type.
|
3138
3159
|
# @return [String]
|
3139
3160
|
#
|
3140
3161
|
# @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateApiCacheRequest AWS API Documentation
|
@@ -3508,11 +3529,11 @@ module Aws::AppSync
|
|
3508
3529
|
# @!attribute [rw] kind
|
3509
3530
|
# The resolver type.
|
3510
3531
|
#
|
3511
|
-
# * **UNIT
|
3532
|
+
# * **UNIT**: A UNIT resolver type. A UNIT resolver is the default
|
3512
3533
|
# resolver type. You can use a UNIT resolver to run a GraphQL query
|
3513
3534
|
# against a single data source.
|
3514
3535
|
#
|
3515
|
-
# * **PIPELINE
|
3536
|
+
# * **PIPELINE**: A PIPELINE resolver type. You can use a PIPELINE
|
3516
3537
|
# resolver to invoke a series of `Function` objects in a serial
|
3517
3538
|
# manner. You can use a pipeline resolver to run a GraphQL query
|
3518
3539
|
# against multiple data sources.
|
data/lib/aws-sdk-appsync.rb
CHANGED
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.59.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: 2023-
|
11
|
+
date: 2023-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|