aws-sdk-appsync 1.89.0 → 1.91.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -33,10 +33,12 @@ module Aws::AppSync
33
33
  # * {ApiLimitExceededException}
34
34
  # * {BadRequestException}
35
35
  # * {ConcurrentModificationException}
36
+ # * {ConflictException}
36
37
  # * {GraphQLSchemaException}
37
38
  # * {InternalFailureException}
38
39
  # * {LimitExceededException}
39
40
  # * {NotFoundException}
41
+ # * {ServiceQuotaExceededException}
40
42
  # * {UnauthorizedException}
41
43
  #
42
44
  # Additionally, error classes are dynamically generated for service errors based on the error code
@@ -145,6 +147,21 @@ module Aws::AppSync
145
147
  end
146
148
  end
147
149
 
150
+ class ConflictException < ServiceError
151
+
152
+ # @param [Seahorse::Client::RequestContext] context
153
+ # @param [String] message
154
+ # @param [Aws::AppSync::Types::ConflictException] data
155
+ def initialize(context, message, data = Aws::EmptyStructure.new)
156
+ super(context, message, data)
157
+ end
158
+
159
+ # @return [String]
160
+ def message
161
+ @message || @data[:message]
162
+ end
163
+ end
164
+
148
165
  class GraphQLSchemaException < ServiceError
149
166
 
150
167
  # @param [Seahorse::Client::RequestContext] context
@@ -205,6 +222,21 @@ module Aws::AppSync
205
222
  end
206
223
  end
207
224
 
225
+ class ServiceQuotaExceededException < ServiceError
226
+
227
+ # @param [Seahorse::Client::RequestContext] context
228
+ # @param [String] message
229
+ # @param [Aws::AppSync::Types::ServiceQuotaExceededException] data
230
+ def initialize(context, message, data = Aws::EmptyStructure.new)
231
+ super(context, message, data)
232
+ end
233
+
234
+ # @return [String]
235
+ def message
236
+ @message || @data[:message]
237
+ end
238
+ end
239
+
208
240
  class UnauthorizedException < ServiceError
209
241
 
210
242
  # @param [Seahorse::Client::RequestContext] context
@@ -27,7 +27,7 @@ The endpoint provider used to resolve endpoints. Any object that responds to
27
27
  class Handler < Seahorse::Client::Handler
28
28
  def call(context)
29
29
  unless context[:discovered_endpoint]
30
- params = parameters_for_operation(context)
30
+ params = Aws::AppSync::Endpoints.parameters_for_operation(context)
31
31
  endpoint = context.config.endpoint_provider.resolve_endpoint(params)
32
32
 
33
33
  context.http_request.endpoint = endpoint.url
@@ -67,139 +67,6 @@ The endpoint provider used to resolve endpoints. Any object that responds to
67
67
  context.http_request.headers[key] = value
68
68
  end
69
69
  end
70
-
71
- def parameters_for_operation(context)
72
- case context.operation_name
73
- when :associate_api
74
- Aws::AppSync::Endpoints::AssociateApi.build(context)
75
- when :associate_merged_graphql_api
76
- Aws::AppSync::Endpoints::AssociateMergedGraphqlApi.build(context)
77
- when :associate_source_graphql_api
78
- Aws::AppSync::Endpoints::AssociateSourceGraphqlApi.build(context)
79
- when :create_api_cache
80
- Aws::AppSync::Endpoints::CreateApiCache.build(context)
81
- when :create_api_key
82
- Aws::AppSync::Endpoints::CreateApiKey.build(context)
83
- when :create_data_source
84
- Aws::AppSync::Endpoints::CreateDataSource.build(context)
85
- when :create_domain_name
86
- Aws::AppSync::Endpoints::CreateDomainName.build(context)
87
- when :create_function
88
- Aws::AppSync::Endpoints::CreateFunction.build(context)
89
- when :create_graphql_api
90
- Aws::AppSync::Endpoints::CreateGraphqlApi.build(context)
91
- when :create_resolver
92
- Aws::AppSync::Endpoints::CreateResolver.build(context)
93
- when :create_type
94
- Aws::AppSync::Endpoints::CreateType.build(context)
95
- when :delete_api_cache
96
- Aws::AppSync::Endpoints::DeleteApiCache.build(context)
97
- when :delete_api_key
98
- Aws::AppSync::Endpoints::DeleteApiKey.build(context)
99
- when :delete_data_source
100
- Aws::AppSync::Endpoints::DeleteDataSource.build(context)
101
- when :delete_domain_name
102
- Aws::AppSync::Endpoints::DeleteDomainName.build(context)
103
- when :delete_function
104
- Aws::AppSync::Endpoints::DeleteFunction.build(context)
105
- when :delete_graphql_api
106
- Aws::AppSync::Endpoints::DeleteGraphqlApi.build(context)
107
- when :delete_resolver
108
- Aws::AppSync::Endpoints::DeleteResolver.build(context)
109
- when :delete_type
110
- Aws::AppSync::Endpoints::DeleteType.build(context)
111
- when :disassociate_api
112
- Aws::AppSync::Endpoints::DisassociateApi.build(context)
113
- when :disassociate_merged_graphql_api
114
- Aws::AppSync::Endpoints::DisassociateMergedGraphqlApi.build(context)
115
- when :disassociate_source_graphql_api
116
- Aws::AppSync::Endpoints::DisassociateSourceGraphqlApi.build(context)
117
- when :evaluate_code
118
- Aws::AppSync::Endpoints::EvaluateCode.build(context)
119
- when :evaluate_mapping_template
120
- Aws::AppSync::Endpoints::EvaluateMappingTemplate.build(context)
121
- when :flush_api_cache
122
- Aws::AppSync::Endpoints::FlushApiCache.build(context)
123
- when :get_api_association
124
- Aws::AppSync::Endpoints::GetApiAssociation.build(context)
125
- when :get_api_cache
126
- Aws::AppSync::Endpoints::GetApiCache.build(context)
127
- when :get_data_source
128
- Aws::AppSync::Endpoints::GetDataSource.build(context)
129
- when :get_data_source_introspection
130
- Aws::AppSync::Endpoints::GetDataSourceIntrospection.build(context)
131
- when :get_domain_name
132
- Aws::AppSync::Endpoints::GetDomainName.build(context)
133
- when :get_function
134
- Aws::AppSync::Endpoints::GetFunction.build(context)
135
- when :get_graphql_api
136
- Aws::AppSync::Endpoints::GetGraphqlApi.build(context)
137
- when :get_graphql_api_environment_variables
138
- Aws::AppSync::Endpoints::GetGraphqlApiEnvironmentVariables.build(context)
139
- when :get_introspection_schema
140
- Aws::AppSync::Endpoints::GetIntrospectionSchema.build(context)
141
- when :get_resolver
142
- Aws::AppSync::Endpoints::GetResolver.build(context)
143
- when :get_schema_creation_status
144
- Aws::AppSync::Endpoints::GetSchemaCreationStatus.build(context)
145
- when :get_source_api_association
146
- Aws::AppSync::Endpoints::GetSourceApiAssociation.build(context)
147
- when :get_type
148
- Aws::AppSync::Endpoints::GetType.build(context)
149
- when :list_api_keys
150
- Aws::AppSync::Endpoints::ListApiKeys.build(context)
151
- when :list_data_sources
152
- Aws::AppSync::Endpoints::ListDataSources.build(context)
153
- when :list_domain_names
154
- Aws::AppSync::Endpoints::ListDomainNames.build(context)
155
- when :list_functions
156
- Aws::AppSync::Endpoints::ListFunctions.build(context)
157
- when :list_graphql_apis
158
- Aws::AppSync::Endpoints::ListGraphqlApis.build(context)
159
- when :list_resolvers
160
- Aws::AppSync::Endpoints::ListResolvers.build(context)
161
- when :list_resolvers_by_function
162
- Aws::AppSync::Endpoints::ListResolversByFunction.build(context)
163
- when :list_source_api_associations
164
- Aws::AppSync::Endpoints::ListSourceApiAssociations.build(context)
165
- when :list_tags_for_resource
166
- Aws::AppSync::Endpoints::ListTagsForResource.build(context)
167
- when :list_types
168
- Aws::AppSync::Endpoints::ListTypes.build(context)
169
- when :list_types_by_association
170
- Aws::AppSync::Endpoints::ListTypesByAssociation.build(context)
171
- when :put_graphql_api_environment_variables
172
- Aws::AppSync::Endpoints::PutGraphqlApiEnvironmentVariables.build(context)
173
- when :start_data_source_introspection
174
- Aws::AppSync::Endpoints::StartDataSourceIntrospection.build(context)
175
- when :start_schema_creation
176
- Aws::AppSync::Endpoints::StartSchemaCreation.build(context)
177
- when :start_schema_merge
178
- Aws::AppSync::Endpoints::StartSchemaMerge.build(context)
179
- when :tag_resource
180
- Aws::AppSync::Endpoints::TagResource.build(context)
181
- when :untag_resource
182
- Aws::AppSync::Endpoints::UntagResource.build(context)
183
- when :update_api_cache
184
- Aws::AppSync::Endpoints::UpdateApiCache.build(context)
185
- when :update_api_key
186
- Aws::AppSync::Endpoints::UpdateApiKey.build(context)
187
- when :update_data_source
188
- Aws::AppSync::Endpoints::UpdateDataSource.build(context)
189
- when :update_domain_name
190
- Aws::AppSync::Endpoints::UpdateDomainName.build(context)
191
- when :update_function
192
- Aws::AppSync::Endpoints::UpdateFunction.build(context)
193
- when :update_graphql_api
194
- Aws::AppSync::Endpoints::UpdateGraphqlApi.build(context)
195
- when :update_resolver
196
- Aws::AppSync::Endpoints::UpdateResolver.build(context)
197
- when :update_source_api_association
198
- Aws::AppSync::Endpoints::UpdateSourceApiAssociation.build(context)
199
- when :update_type
200
- Aws::AppSync::Endpoints::UpdateType.build(context)
201
- end
202
- end
203
70
  end
204
71
 
205
72
  def add_handlers(handlers, _config)