aws-sdk-appsync 1.52.0 → 1.54.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 +67 -5
- data/lib/aws-sdk-appsync/client_api.rb +29 -1
- data/lib/aws-sdk-appsync/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-appsync/endpoint_provider.rb +111 -0
- data/lib/aws-sdk-appsync/endpoints.rb +715 -0
- data/lib/aws-sdk-appsync/plugins/endpoints.rb +168 -0
- data/lib/aws-sdk-appsync/types.rb +66 -5
- data/lib/aws-sdk-appsync.rb +5 -1
- metadata +8 -4
@@ -0,0 +1,168 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
|
11
|
+
module Aws::AppSync
|
12
|
+
module Plugins
|
13
|
+
class Endpoints < Seahorse::Client::Plugin
|
14
|
+
option(
|
15
|
+
:endpoint_provider,
|
16
|
+
doc_type: 'Aws::AppSync::EndpointProvider',
|
17
|
+
docstring: 'The endpoint provider used to resolve endpoints. Any '\
|
18
|
+
'object that responds to `#resolve_endpoint(parameters)` '\
|
19
|
+
'where `parameters` is a Struct similar to '\
|
20
|
+
'`Aws::AppSync::EndpointParameters`'
|
21
|
+
) do |cfg|
|
22
|
+
Aws::AppSync::EndpointProvider.new
|
23
|
+
end
|
24
|
+
|
25
|
+
# @api private
|
26
|
+
class Handler < Seahorse::Client::Handler
|
27
|
+
def call(context)
|
28
|
+
# If endpoint was discovered, do not resolve or apply the endpoint.
|
29
|
+
unless context[:discovered_endpoint]
|
30
|
+
params = parameters_for_operation(context)
|
31
|
+
endpoint = context.config.endpoint_provider.resolve_endpoint(params)
|
32
|
+
|
33
|
+
context.http_request.endpoint = endpoint.url
|
34
|
+
apply_endpoint_headers(context, endpoint.headers)
|
35
|
+
end
|
36
|
+
|
37
|
+
context[:endpoint_params] = params
|
38
|
+
context[:auth_scheme] =
|
39
|
+
Aws::Endpoints.resolve_auth_scheme(context, endpoint)
|
40
|
+
|
41
|
+
@handler.call(context)
|
42
|
+
end
|
43
|
+
|
44
|
+
private
|
45
|
+
|
46
|
+
def apply_endpoint_headers(context, headers)
|
47
|
+
headers.each do |key, values|
|
48
|
+
value = values
|
49
|
+
.compact
|
50
|
+
.map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
|
51
|
+
.join(',')
|
52
|
+
|
53
|
+
context.http_request.headers[key] = value
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
def parameters_for_operation(context)
|
58
|
+
case context.operation_name
|
59
|
+
when :associate_api
|
60
|
+
Aws::AppSync::Endpoints::AssociateApi.build(context)
|
61
|
+
when :create_api_cache
|
62
|
+
Aws::AppSync::Endpoints::CreateApiCache.build(context)
|
63
|
+
when :create_api_key
|
64
|
+
Aws::AppSync::Endpoints::CreateApiKey.build(context)
|
65
|
+
when :create_data_source
|
66
|
+
Aws::AppSync::Endpoints::CreateDataSource.build(context)
|
67
|
+
when :create_domain_name
|
68
|
+
Aws::AppSync::Endpoints::CreateDomainName.build(context)
|
69
|
+
when :create_function
|
70
|
+
Aws::AppSync::Endpoints::CreateFunction.build(context)
|
71
|
+
when :create_graphql_api
|
72
|
+
Aws::AppSync::Endpoints::CreateGraphqlApi.build(context)
|
73
|
+
when :create_resolver
|
74
|
+
Aws::AppSync::Endpoints::CreateResolver.build(context)
|
75
|
+
when :create_type
|
76
|
+
Aws::AppSync::Endpoints::CreateType.build(context)
|
77
|
+
when :delete_api_cache
|
78
|
+
Aws::AppSync::Endpoints::DeleteApiCache.build(context)
|
79
|
+
when :delete_api_key
|
80
|
+
Aws::AppSync::Endpoints::DeleteApiKey.build(context)
|
81
|
+
when :delete_data_source
|
82
|
+
Aws::AppSync::Endpoints::DeleteDataSource.build(context)
|
83
|
+
when :delete_domain_name
|
84
|
+
Aws::AppSync::Endpoints::DeleteDomainName.build(context)
|
85
|
+
when :delete_function
|
86
|
+
Aws::AppSync::Endpoints::DeleteFunction.build(context)
|
87
|
+
when :delete_graphql_api
|
88
|
+
Aws::AppSync::Endpoints::DeleteGraphqlApi.build(context)
|
89
|
+
when :delete_resolver
|
90
|
+
Aws::AppSync::Endpoints::DeleteResolver.build(context)
|
91
|
+
when :delete_type
|
92
|
+
Aws::AppSync::Endpoints::DeleteType.build(context)
|
93
|
+
when :disassociate_api
|
94
|
+
Aws::AppSync::Endpoints::DisassociateApi.build(context)
|
95
|
+
when :evaluate_mapping_template
|
96
|
+
Aws::AppSync::Endpoints::EvaluateMappingTemplate.build(context)
|
97
|
+
when :flush_api_cache
|
98
|
+
Aws::AppSync::Endpoints::FlushApiCache.build(context)
|
99
|
+
when :get_api_association
|
100
|
+
Aws::AppSync::Endpoints::GetApiAssociation.build(context)
|
101
|
+
when :get_api_cache
|
102
|
+
Aws::AppSync::Endpoints::GetApiCache.build(context)
|
103
|
+
when :get_data_source
|
104
|
+
Aws::AppSync::Endpoints::GetDataSource.build(context)
|
105
|
+
when :get_domain_name
|
106
|
+
Aws::AppSync::Endpoints::GetDomainName.build(context)
|
107
|
+
when :get_function
|
108
|
+
Aws::AppSync::Endpoints::GetFunction.build(context)
|
109
|
+
when :get_graphql_api
|
110
|
+
Aws::AppSync::Endpoints::GetGraphqlApi.build(context)
|
111
|
+
when :get_introspection_schema
|
112
|
+
Aws::AppSync::Endpoints::GetIntrospectionSchema.build(context)
|
113
|
+
when :get_resolver
|
114
|
+
Aws::AppSync::Endpoints::GetResolver.build(context)
|
115
|
+
when :get_schema_creation_status
|
116
|
+
Aws::AppSync::Endpoints::GetSchemaCreationStatus.build(context)
|
117
|
+
when :get_type
|
118
|
+
Aws::AppSync::Endpoints::GetType.build(context)
|
119
|
+
when :list_api_keys
|
120
|
+
Aws::AppSync::Endpoints::ListApiKeys.build(context)
|
121
|
+
when :list_data_sources
|
122
|
+
Aws::AppSync::Endpoints::ListDataSources.build(context)
|
123
|
+
when :list_domain_names
|
124
|
+
Aws::AppSync::Endpoints::ListDomainNames.build(context)
|
125
|
+
when :list_functions
|
126
|
+
Aws::AppSync::Endpoints::ListFunctions.build(context)
|
127
|
+
when :list_graphql_apis
|
128
|
+
Aws::AppSync::Endpoints::ListGraphqlApis.build(context)
|
129
|
+
when :list_resolvers
|
130
|
+
Aws::AppSync::Endpoints::ListResolvers.build(context)
|
131
|
+
when :list_resolvers_by_function
|
132
|
+
Aws::AppSync::Endpoints::ListResolversByFunction.build(context)
|
133
|
+
when :list_tags_for_resource
|
134
|
+
Aws::AppSync::Endpoints::ListTagsForResource.build(context)
|
135
|
+
when :list_types
|
136
|
+
Aws::AppSync::Endpoints::ListTypes.build(context)
|
137
|
+
when :start_schema_creation
|
138
|
+
Aws::AppSync::Endpoints::StartSchemaCreation.build(context)
|
139
|
+
when :tag_resource
|
140
|
+
Aws::AppSync::Endpoints::TagResource.build(context)
|
141
|
+
when :untag_resource
|
142
|
+
Aws::AppSync::Endpoints::UntagResource.build(context)
|
143
|
+
when :update_api_cache
|
144
|
+
Aws::AppSync::Endpoints::UpdateApiCache.build(context)
|
145
|
+
when :update_api_key
|
146
|
+
Aws::AppSync::Endpoints::UpdateApiKey.build(context)
|
147
|
+
when :update_data_source
|
148
|
+
Aws::AppSync::Endpoints::UpdateDataSource.build(context)
|
149
|
+
when :update_domain_name
|
150
|
+
Aws::AppSync::Endpoints::UpdateDomainName.build(context)
|
151
|
+
when :update_function
|
152
|
+
Aws::AppSync::Endpoints::UpdateFunction.build(context)
|
153
|
+
when :update_graphql_api
|
154
|
+
Aws::AppSync::Endpoints::UpdateGraphqlApi.build(context)
|
155
|
+
when :update_resolver
|
156
|
+
Aws::AppSync::Endpoints::UpdateResolver.build(context)
|
157
|
+
when :update_type
|
158
|
+
Aws::AppSync::Endpoints::UpdateType.build(context)
|
159
|
+
end
|
160
|
+
end
|
161
|
+
end
|
162
|
+
|
163
|
+
def add_handlers(handlers, _config)
|
164
|
+
handlers.add(Handler, step: :build, priority: 75)
|
165
|
+
end
|
166
|
+
end
|
167
|
+
end
|
168
|
+
end
|
@@ -446,7 +446,7 @@ module Aws::AppSync
|
|
446
446
|
# data as a hash:
|
447
447
|
#
|
448
448
|
# {
|
449
|
-
# ttl: 1,
|
449
|
+
# ttl: 1, # required
|
450
450
|
# caching_keys: ["String"],
|
451
451
|
# }
|
452
452
|
#
|
@@ -493,7 +493,8 @@ module Aws::AppSync
|
|
493
493
|
#
|
494
494
|
# @!attribute [rw] app_id_client_regex
|
495
495
|
# A regular expression for validating the incoming Amazon Cognito user
|
496
|
-
# pool app client ID.
|
496
|
+
# pool app client ID. If this value isn't set, no filtering is
|
497
|
+
# applied.
|
497
498
|
# @return [String]
|
498
499
|
#
|
499
500
|
# @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CognitoUserPoolConfig AWS API Documentation
|
@@ -1089,7 +1090,7 @@ module Aws::AppSync
|
|
1089
1090
|
# },
|
1090
1091
|
# },
|
1091
1092
|
# caching_config: {
|
1092
|
-
# ttl: 1,
|
1093
|
+
# ttl: 1, # required
|
1093
1094
|
# caching_keys: ["String"],
|
1094
1095
|
# },
|
1095
1096
|
# max_batch_size: 1,
|
@@ -1722,6 +1723,65 @@ module Aws::AppSync
|
|
1722
1723
|
include Aws::Structure
|
1723
1724
|
end
|
1724
1725
|
|
1726
|
+
# Contains the list of errors generated when attempting to evaluate a
|
1727
|
+
# mapping template.
|
1728
|
+
#
|
1729
|
+
# @!attribute [rw] message
|
1730
|
+
# The error payload.
|
1731
|
+
# @return [String]
|
1732
|
+
#
|
1733
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ErrorDetail AWS API Documentation
|
1734
|
+
#
|
1735
|
+
class ErrorDetail < Struct.new(
|
1736
|
+
:message)
|
1737
|
+
SENSITIVE = []
|
1738
|
+
include Aws::Structure
|
1739
|
+
end
|
1740
|
+
|
1741
|
+
# @note When making an API call, you may pass EvaluateMappingTemplateRequest
|
1742
|
+
# data as a hash:
|
1743
|
+
#
|
1744
|
+
# {
|
1745
|
+
# template: "Template", # required
|
1746
|
+
# context: "Context", # required
|
1747
|
+
# }
|
1748
|
+
#
|
1749
|
+
# @!attribute [rw] template
|
1750
|
+
# The mapping template; this can be a request or response template. A
|
1751
|
+
# `template` is required for this action.
|
1752
|
+
# @return [String]
|
1753
|
+
#
|
1754
|
+
# @!attribute [rw] context
|
1755
|
+
# The map that holds all of the contextual information for your
|
1756
|
+
# resolver invocation. A `context` is required for this action.
|
1757
|
+
# @return [String]
|
1758
|
+
#
|
1759
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/EvaluateMappingTemplateRequest AWS API Documentation
|
1760
|
+
#
|
1761
|
+
class EvaluateMappingTemplateRequest < Struct.new(
|
1762
|
+
:template,
|
1763
|
+
:context)
|
1764
|
+
SENSITIVE = []
|
1765
|
+
include Aws::Structure
|
1766
|
+
end
|
1767
|
+
|
1768
|
+
# @!attribute [rw] evaluation_result
|
1769
|
+
# The mapping template; this can be a request or response template.
|
1770
|
+
# @return [String]
|
1771
|
+
#
|
1772
|
+
# @!attribute [rw] error
|
1773
|
+
# The `ErrorDetail` object.
|
1774
|
+
# @return [Types::ErrorDetail]
|
1775
|
+
#
|
1776
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/EvaluateMappingTemplateResponse AWS API Documentation
|
1777
|
+
#
|
1778
|
+
class EvaluateMappingTemplateResponse < Struct.new(
|
1779
|
+
:evaluation_result,
|
1780
|
+
:error)
|
1781
|
+
SENSITIVE = []
|
1782
|
+
include Aws::Structure
|
1783
|
+
end
|
1784
|
+
|
1725
1785
|
# Represents the input of a `FlushApiCache` operation.
|
1726
1786
|
#
|
1727
1787
|
# @note When making an API call, you may pass FlushApiCacheRequest
|
@@ -3960,7 +4020,7 @@ module Aws::AppSync
|
|
3960
4020
|
# },
|
3961
4021
|
# },
|
3962
4022
|
# caching_config: {
|
3963
|
-
# ttl: 1,
|
4023
|
+
# ttl: 1, # required
|
3964
4024
|
# caching_keys: ["String"],
|
3965
4025
|
# },
|
3966
4026
|
# max_batch_size: 1,
|
@@ -4134,7 +4194,8 @@ module Aws::AppSync
|
|
4134
4194
|
#
|
4135
4195
|
# @!attribute [rw] app_id_client_regex
|
4136
4196
|
# A regular expression for validating the incoming Amazon Cognito user
|
4137
|
-
# pool app client ID.
|
4197
|
+
# pool app client ID. If this value isn't set, no filtering is
|
4198
|
+
# applied.
|
4138
4199
|
# @return [String]
|
4139
4200
|
#
|
4140
4201
|
# @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UserPoolConfig AWS API Documentation
|
data/lib/aws-sdk-appsync.rb
CHANGED
@@ -13,9 +13,13 @@ require 'aws-sigv4'
|
|
13
13
|
|
14
14
|
require_relative 'aws-sdk-appsync/types'
|
15
15
|
require_relative 'aws-sdk-appsync/client_api'
|
16
|
+
require_relative 'aws-sdk-appsync/plugins/endpoints.rb'
|
16
17
|
require_relative 'aws-sdk-appsync/client'
|
17
18
|
require_relative 'aws-sdk-appsync/errors'
|
18
19
|
require_relative 'aws-sdk-appsync/resource'
|
20
|
+
require_relative 'aws-sdk-appsync/endpoint_parameters'
|
21
|
+
require_relative 'aws-sdk-appsync/endpoint_provider'
|
22
|
+
require_relative 'aws-sdk-appsync/endpoints'
|
19
23
|
require_relative 'aws-sdk-appsync/customizations'
|
20
24
|
|
21
25
|
# This module provides support for AWS AppSync. This module is available in the
|
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-appsync/customizations'
|
|
48
52
|
# @!group service
|
49
53
|
module Aws::AppSync
|
50
54
|
|
51
|
-
GEM_VERSION = '1.
|
55
|
+
GEM_VERSION = '1.54.0'
|
52
56
|
|
53
57
|
end
|
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.54.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: 2022-
|
11
|
+
date: 2022-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.165.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.165.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -59,7 +59,11 @@ files:
|
|
59
59
|
- lib/aws-sdk-appsync/client.rb
|
60
60
|
- lib/aws-sdk-appsync/client_api.rb
|
61
61
|
- lib/aws-sdk-appsync/customizations.rb
|
62
|
+
- lib/aws-sdk-appsync/endpoint_parameters.rb
|
63
|
+
- lib/aws-sdk-appsync/endpoint_provider.rb
|
64
|
+
- lib/aws-sdk-appsync/endpoints.rb
|
62
65
|
- lib/aws-sdk-appsync/errors.rb
|
66
|
+
- lib/aws-sdk-appsync/plugins/endpoints.rb
|
63
67
|
- lib/aws-sdk-appsync/resource.rb
|
64
68
|
- lib/aws-sdk-appsync/types.rb
|
65
69
|
homepage: https://github.com/aws/aws-sdk-ruby
|