aws-sdk-appsync 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e850081ea9516331e5371af1fdde08778df5c6d8
4
- data.tar.gz: 79fba034982c175755095dc14580382d49c65118
3
+ metadata.gz: ae0e8b29463ddb600eea0bb86fbc244ca9055ff8
4
+ data.tar.gz: 2e234364fcc7c4aa46dfb74a2cdfd44c3966f048
5
5
  SHA512:
6
- metadata.gz: bd6ca2dddd1937bbfeb28b3298afa478799f064534777edb50ec84ac1601514ee025c16f89092900fec06a9fb3d6130e234938a4b761493b1d9297d03427005d
7
- data.tar.gz: 07b77d888a53585ba0faba6e5340e469b2f757a1fb0ce5e0f026f112dc56384284b0d345aa0641aa82da1166675216c6b8c4149e79f3f1ade67af7a0aa76b1ac
6
+ metadata.gz: f7c6ea7f4a8ce66877d584a7c23f87c7c2eeaa1f74baf14f534ff3585bd0a7065617a4bae7f7eaf7696ef5aebbb45d6b35cb4fb0d53565edc72696eb959d9c49
7
+ data.tar.gz: 1dfbebaf5d168b3db258bffe4c50c27f29ff1880d4ca669d2d6ac58506732389b655b2a0d6e43ecc8cc9febac15af903ff1095ff1deb7b9585e78fb695b4c61e
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-appsync/customizations'
42
42
  # @service
43
43
  module Aws::AppSync
44
44
 
45
- GEM_VERSION = '1.1.0'
45
+ GEM_VERSION = '1.2.0'
46
46
 
47
47
  end
@@ -155,9 +155,10 @@ module Aws::AppSync
155
155
  # A description of the purpose of the API key.
156
156
  #
157
157
  # @option params [Integer] :expires
158
- # The time after which the API key expires. The date is represented as
159
- # seconds since the epoch, rounded down to the nearest hour. The default
160
- # value for this parameter is 7 days from creation time.
158
+ # The time from creation time after which the API key expires. The date
159
+ # is represented as seconds since the epoch, rounded down to the nearest
160
+ # hour. The default value for this parameter is 7 days from creation
161
+ # time. For more information, see .
161
162
  #
162
163
  # @return [Types::CreateApiKeyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
163
164
  #
@@ -267,12 +268,18 @@ module Aws::AppSync
267
268
  # @option params [required, String] :name
268
269
  # A user-supplied name for the `GraphqlApi`.
269
270
  #
271
+ # @option params [Types::LogConfig] :log_config
272
+ # The Amazon CloudWatch logs configuration.
273
+ #
270
274
  # @option params [required, String] :authentication_type
271
275
  # The authentication type: API key, IAM, or Amazon Cognito User Pools.
272
276
  #
273
277
  # @option params [Types::UserPoolConfig] :user_pool_config
274
278
  # The Amazon Cognito User Pool configuration.
275
279
  #
280
+ # @option params [Types::OpenIDConnectConfig] :open_id_connect_config
281
+ # The Open Id Connect configuration configuration.
282
+ #
276
283
  # @return [Types::CreateGraphqlApiResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
277
284
  #
278
285
  # * {Types::CreateGraphqlApiResponse#graphql_api #graphql_api} => Types::GraphqlApi
@@ -281,24 +288,40 @@ module Aws::AppSync
281
288
  #
282
289
  # resp = client.create_graphql_api({
283
290
  # name: "String", # required
284
- # authentication_type: "API_KEY", # required, accepts API_KEY, AWS_IAM, AMAZON_COGNITO_USER_POOLS
291
+ # log_config: {
292
+ # field_log_level: "NONE", # required, accepts NONE, ERROR, ALL
293
+ # cloud_watch_logs_role_arn: "String", # required
294
+ # },
295
+ # authentication_type: "API_KEY", # required, accepts API_KEY, AWS_IAM, AMAZON_COGNITO_USER_POOLS, OPENID_CONNECT
285
296
  # user_pool_config: {
286
297
  # user_pool_id: "String", # required
287
298
  # aws_region: "String", # required
288
299
  # default_action: "ALLOW", # required, accepts ALLOW, DENY
289
300
  # app_id_client_regex: "String",
290
301
  # },
302
+ # open_id_connect_config: {
303
+ # issuer: "String", # required
304
+ # client_id: "String",
305
+ # iat_ttl: 1,
306
+ # auth_ttl: 1,
307
+ # },
291
308
  # })
292
309
  #
293
310
  # @example Response structure
294
311
  #
295
312
  # resp.graphql_api.name #=> String
296
313
  # resp.graphql_api.api_id #=> String
297
- # resp.graphql_api.authentication_type #=> String, one of "API_KEY", "AWS_IAM", "AMAZON_COGNITO_USER_POOLS"
314
+ # resp.graphql_api.authentication_type #=> String, one of "API_KEY", "AWS_IAM", "AMAZON_COGNITO_USER_POOLS", "OPENID_CONNECT"
315
+ # resp.graphql_api.log_config.field_log_level #=> String, one of "NONE", "ERROR", "ALL"
316
+ # resp.graphql_api.log_config.cloud_watch_logs_role_arn #=> String
298
317
  # resp.graphql_api.user_pool_config.user_pool_id #=> String
299
318
  # resp.graphql_api.user_pool_config.aws_region #=> String
300
319
  # resp.graphql_api.user_pool_config.default_action #=> String, one of "ALLOW", "DENY"
301
320
  # resp.graphql_api.user_pool_config.app_id_client_regex #=> String
321
+ # resp.graphql_api.open_id_connect_config.issuer #=> String
322
+ # resp.graphql_api.open_id_connect_config.client_id #=> String
323
+ # resp.graphql_api.open_id_connect_config.iat_ttl #=> Integer
324
+ # resp.graphql_api.open_id_connect_config.auth_ttl #=> Integer
302
325
  # resp.graphql_api.arn #=> String
303
326
  # resp.graphql_api.uris #=> Hash
304
327
  # resp.graphql_api.uris["String"] #=> String
@@ -610,11 +633,17 @@ module Aws::AppSync
610
633
  #
611
634
  # resp.graphql_api.name #=> String
612
635
  # resp.graphql_api.api_id #=> String
613
- # resp.graphql_api.authentication_type #=> String, one of "API_KEY", "AWS_IAM", "AMAZON_COGNITO_USER_POOLS"
636
+ # resp.graphql_api.authentication_type #=> String, one of "API_KEY", "AWS_IAM", "AMAZON_COGNITO_USER_POOLS", "OPENID_CONNECT"
637
+ # resp.graphql_api.log_config.field_log_level #=> String, one of "NONE", "ERROR", "ALL"
638
+ # resp.graphql_api.log_config.cloud_watch_logs_role_arn #=> String
614
639
  # resp.graphql_api.user_pool_config.user_pool_id #=> String
615
640
  # resp.graphql_api.user_pool_config.aws_region #=> String
616
641
  # resp.graphql_api.user_pool_config.default_action #=> String, one of "ALLOW", "DENY"
617
642
  # resp.graphql_api.user_pool_config.app_id_client_regex #=> String
643
+ # resp.graphql_api.open_id_connect_config.issuer #=> String
644
+ # resp.graphql_api.open_id_connect_config.client_id #=> String
645
+ # resp.graphql_api.open_id_connect_config.iat_ttl #=> Integer
646
+ # resp.graphql_api.open_id_connect_config.auth_ttl #=> Integer
618
647
  # resp.graphql_api.arn #=> String
619
648
  # resp.graphql_api.uris #=> Hash
620
649
  # resp.graphql_api.uris["String"] #=> String
@@ -773,6 +802,13 @@ module Aws::AppSync
773
802
 
774
803
  # Lists the API keys for a given API.
775
804
  #
805
+ # <note markdown="1"> API keys are deleted automatically sometime after they expire.
806
+ # However, they may still be included in the response until they have
807
+ # actually been deleted. You can safely call `DeleteApiKey` to manually
808
+ # delete a key before it's automatically deleted.
809
+ #
810
+ # </note>
811
+ #
776
812
  # @option params [required, String] :api_id
777
813
  # The API ID.
778
814
  #
@@ -892,11 +928,17 @@ module Aws::AppSync
892
928
  # resp.graphql_apis #=> Array
893
929
  # resp.graphql_apis[0].name #=> String
894
930
  # resp.graphql_apis[0].api_id #=> String
895
- # resp.graphql_apis[0].authentication_type #=> String, one of "API_KEY", "AWS_IAM", "AMAZON_COGNITO_USER_POOLS"
931
+ # resp.graphql_apis[0].authentication_type #=> String, one of "API_KEY", "AWS_IAM", "AMAZON_COGNITO_USER_POOLS", "OPENID_CONNECT"
932
+ # resp.graphql_apis[0].log_config.field_log_level #=> String, one of "NONE", "ERROR", "ALL"
933
+ # resp.graphql_apis[0].log_config.cloud_watch_logs_role_arn #=> String
896
934
  # resp.graphql_apis[0].user_pool_config.user_pool_id #=> String
897
935
  # resp.graphql_apis[0].user_pool_config.aws_region #=> String
898
936
  # resp.graphql_apis[0].user_pool_config.default_action #=> String, one of "ALLOW", "DENY"
899
937
  # resp.graphql_apis[0].user_pool_config.app_id_client_regex #=> String
938
+ # resp.graphql_apis[0].open_id_connect_config.issuer #=> String
939
+ # resp.graphql_apis[0].open_id_connect_config.client_id #=> String
940
+ # resp.graphql_apis[0].open_id_connect_config.iat_ttl #=> Integer
941
+ # resp.graphql_apis[0].open_id_connect_config.auth_ttl #=> Integer
900
942
  # resp.graphql_apis[0].arn #=> String
901
943
  # resp.graphql_apis[0].uris #=> Hash
902
944
  # resp.graphql_apis[0].uris["String"] #=> String
@@ -1057,8 +1099,8 @@ module Aws::AppSync
1057
1099
  # A description of the purpose of the API key.
1058
1100
  #
1059
1101
  # @option params [Integer] :expires
1060
- # The time after which the API key expires. The date is represented as
1061
- # seconds since the epoch.
1102
+ # The time from update time after which the API key expires. The date is
1103
+ # represented as seconds since the epoch. For more information, see .
1062
1104
  #
1063
1105
  # @return [Types::UpdateApiKeyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1064
1106
  #
@@ -1171,6 +1213,9 @@ module Aws::AppSync
1171
1213
  # @option params [required, String] :name
1172
1214
  # The new name for the `GraphqlApi` object.
1173
1215
  #
1216
+ # @option params [Types::LogConfig] :log_config
1217
+ # The Amazon CloudWatch logs configuration for the `GraphqlApi` object.
1218
+ #
1174
1219
  # @option params [String] :authentication_type
1175
1220
  # The new authentication type for the `GraphqlApi` object.
1176
1221
  #
@@ -1178,6 +1223,10 @@ module Aws::AppSync
1178
1223
  # The new Amazon Cognito User Pool configuration for the `GraphqlApi`
1179
1224
  # object.
1180
1225
  #
1226
+ # @option params [Types::OpenIDConnectConfig] :open_id_connect_config
1227
+ # The Open Id Connect configuration configuration for the `GraphqlApi`
1228
+ # object.
1229
+ #
1181
1230
  # @return [Types::UpdateGraphqlApiResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1182
1231
  #
1183
1232
  # * {Types::UpdateGraphqlApiResponse#graphql_api #graphql_api} => Types::GraphqlApi
@@ -1187,24 +1236,40 @@ module Aws::AppSync
1187
1236
  # resp = client.update_graphql_api({
1188
1237
  # api_id: "String", # required
1189
1238
  # name: "String", # required
1190
- # authentication_type: "API_KEY", # accepts API_KEY, AWS_IAM, AMAZON_COGNITO_USER_POOLS
1239
+ # log_config: {
1240
+ # field_log_level: "NONE", # required, accepts NONE, ERROR, ALL
1241
+ # cloud_watch_logs_role_arn: "String", # required
1242
+ # },
1243
+ # authentication_type: "API_KEY", # accepts API_KEY, AWS_IAM, AMAZON_COGNITO_USER_POOLS, OPENID_CONNECT
1191
1244
  # user_pool_config: {
1192
1245
  # user_pool_id: "String", # required
1193
1246
  # aws_region: "String", # required
1194
1247
  # default_action: "ALLOW", # required, accepts ALLOW, DENY
1195
1248
  # app_id_client_regex: "String",
1196
1249
  # },
1250
+ # open_id_connect_config: {
1251
+ # issuer: "String", # required
1252
+ # client_id: "String",
1253
+ # iat_ttl: 1,
1254
+ # auth_ttl: 1,
1255
+ # },
1197
1256
  # })
1198
1257
  #
1199
1258
  # @example Response structure
1200
1259
  #
1201
1260
  # resp.graphql_api.name #=> String
1202
1261
  # resp.graphql_api.api_id #=> String
1203
- # resp.graphql_api.authentication_type #=> String, one of "API_KEY", "AWS_IAM", "AMAZON_COGNITO_USER_POOLS"
1262
+ # resp.graphql_api.authentication_type #=> String, one of "API_KEY", "AWS_IAM", "AMAZON_COGNITO_USER_POOLS", "OPENID_CONNECT"
1263
+ # resp.graphql_api.log_config.field_log_level #=> String, one of "NONE", "ERROR", "ALL"
1264
+ # resp.graphql_api.log_config.cloud_watch_logs_role_arn #=> String
1204
1265
  # resp.graphql_api.user_pool_config.user_pool_id #=> String
1205
1266
  # resp.graphql_api.user_pool_config.aws_region #=> String
1206
1267
  # resp.graphql_api.user_pool_config.default_action #=> String, one of "ALLOW", "DENY"
1207
1268
  # resp.graphql_api.user_pool_config.app_id_client_regex #=> String
1269
+ # resp.graphql_api.open_id_connect_config.issuer #=> String
1270
+ # resp.graphql_api.open_id_connect_config.client_id #=> String
1271
+ # resp.graphql_api.open_id_connect_config.iat_ttl #=> Integer
1272
+ # resp.graphql_api.open_id_connect_config.auth_ttl #=> Integer
1208
1273
  # resp.graphql_api.arn #=> String
1209
1274
  # resp.graphql_api.uris #=> Hash
1210
1275
  # resp.graphql_api.uris["String"] #=> String
@@ -1328,7 +1393,7 @@ module Aws::AppSync
1328
1393
  params: params,
1329
1394
  config: config)
1330
1395
  context[:gem_name] = 'aws-sdk-appsync'
1331
- context[:gem_version] = '1.1.0'
1396
+ context[:gem_version] = '1.2.0'
1332
1397
  Seahorse::Client::Request.new(handlers, context)
1333
1398
  end
1334
1399
 
@@ -48,6 +48,7 @@ module Aws::AppSync
48
48
  DynamodbDataSourceConfig = Shapes::StructureShape.new(name: 'DynamodbDataSourceConfig')
49
49
  ElasticsearchDataSourceConfig = Shapes::StructureShape.new(name: 'ElasticsearchDataSourceConfig')
50
50
  ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
51
+ FieldLogLevel = Shapes::StringShape.new(name: 'FieldLogLevel')
51
52
  GetDataSourceRequest = Shapes::StructureShape.new(name: 'GetDataSourceRequest')
52
53
  GetDataSourceResponse = Shapes::StructureShape.new(name: 'GetDataSourceResponse')
53
54
  GetGraphqlApiRequest = Shapes::StructureShape.new(name: 'GetGraphqlApiRequest')
@@ -76,11 +77,13 @@ module Aws::AppSync
76
77
  ListResolversResponse = Shapes::StructureShape.new(name: 'ListResolversResponse')
77
78
  ListTypesRequest = Shapes::StructureShape.new(name: 'ListTypesRequest')
78
79
  ListTypesResponse = Shapes::StructureShape.new(name: 'ListTypesResponse')
80
+ LogConfig = Shapes::StructureShape.new(name: 'LogConfig')
79
81
  Long = Shapes::IntegerShape.new(name: 'Long')
80
82
  MapOfStringToString = Shapes::MapShape.new(name: 'MapOfStringToString')
81
83
  MappingTemplate = Shapes::StringShape.new(name: 'MappingTemplate')
82
84
  MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
83
85
  NotFoundException = Shapes::StructureShape.new(name: 'NotFoundException')
86
+ OpenIDConnectConfig = Shapes::StructureShape.new(name: 'OpenIDConnectConfig')
84
87
  OutputType = Shapes::StringShape.new(name: 'OutputType')
85
88
  PaginationToken = Shapes::StringShape.new(name: 'PaginationToken')
86
89
  Resolver = Shapes::StructureShape.new(name: 'Resolver')
@@ -135,8 +138,10 @@ module Aws::AppSync
135
138
  CreateDataSourceResponse.struct_class = Types::CreateDataSourceResponse
136
139
 
137
140
  CreateGraphqlApiRequest.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "name"))
141
+ CreateGraphqlApiRequest.add_member(:log_config, Shapes::ShapeRef.new(shape: LogConfig, location_name: "logConfig"))
138
142
  CreateGraphqlApiRequest.add_member(:authentication_type, Shapes::ShapeRef.new(shape: AuthenticationType, required: true, location_name: "authenticationType"))
139
143
  CreateGraphqlApiRequest.add_member(:user_pool_config, Shapes::ShapeRef.new(shape: UserPoolConfig, location_name: "userPoolConfig"))
144
+ CreateGraphqlApiRequest.add_member(:open_id_connect_config, Shapes::ShapeRef.new(shape: OpenIDConnectConfig, location_name: "openIDConnectConfig"))
140
145
  CreateGraphqlApiRequest.struct_class = Types::CreateGraphqlApiRequest
141
146
 
142
147
  CreateGraphqlApiResponse.add_member(:graphql_api, Shapes::ShapeRef.new(shape: GraphqlApi, location_name: "graphqlApi"))
@@ -260,7 +265,9 @@ module Aws::AppSync
260
265
  GraphqlApi.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, location_name: "name"))
261
266
  GraphqlApi.add_member(:api_id, Shapes::ShapeRef.new(shape: String, location_name: "apiId"))
262
267
  GraphqlApi.add_member(:authentication_type, Shapes::ShapeRef.new(shape: AuthenticationType, location_name: "authenticationType"))
268
+ GraphqlApi.add_member(:log_config, Shapes::ShapeRef.new(shape: LogConfig, location_name: "logConfig"))
263
269
  GraphqlApi.add_member(:user_pool_config, Shapes::ShapeRef.new(shape: UserPoolConfig, location_name: "userPoolConfig"))
270
+ GraphqlApi.add_member(:open_id_connect_config, Shapes::ShapeRef.new(shape: OpenIDConnectConfig, location_name: "openIDConnectConfig"))
264
271
  GraphqlApi.add_member(:arn, Shapes::ShapeRef.new(shape: String, location_name: "arn"))
265
272
  GraphqlApi.add_member(:uris, Shapes::ShapeRef.new(shape: MapOfStringToString, location_name: "uris"))
266
273
  GraphqlApi.struct_class = Types::GraphqlApi
@@ -316,9 +323,19 @@ module Aws::AppSync
316
323
  ListTypesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
317
324
  ListTypesResponse.struct_class = Types::ListTypesResponse
318
325
 
326
+ LogConfig.add_member(:field_log_level, Shapes::ShapeRef.new(shape: FieldLogLevel, required: true, location_name: "fieldLogLevel"))
327
+ LogConfig.add_member(:cloud_watch_logs_role_arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "cloudWatchLogsRoleArn"))
328
+ LogConfig.struct_class = Types::LogConfig
329
+
319
330
  MapOfStringToString.key = Shapes::ShapeRef.new(shape: String)
320
331
  MapOfStringToString.value = Shapes::ShapeRef.new(shape: String)
321
332
 
333
+ OpenIDConnectConfig.add_member(:issuer, Shapes::ShapeRef.new(shape: String, required: true, location_name: "issuer"))
334
+ OpenIDConnectConfig.add_member(:client_id, Shapes::ShapeRef.new(shape: String, location_name: "clientId"))
335
+ OpenIDConnectConfig.add_member(:iat_ttl, Shapes::ShapeRef.new(shape: Long, location_name: "iatTTL"))
336
+ OpenIDConnectConfig.add_member(:auth_ttl, Shapes::ShapeRef.new(shape: Long, location_name: "authTTL"))
337
+ OpenIDConnectConfig.struct_class = Types::OpenIDConnectConfig
338
+
322
339
  Resolver.add_member(:type_name, Shapes::ShapeRef.new(shape: ResourceName, location_name: "typeName"))
323
340
  Resolver.add_member(:field_name, Shapes::ShapeRef.new(shape: ResourceName, location_name: "fieldName"))
324
341
  Resolver.add_member(:data_source_name, Shapes::ShapeRef.new(shape: ResourceName, location_name: "dataSourceName"))
@@ -369,8 +386,10 @@ module Aws::AppSync
369
386
 
370
387
  UpdateGraphqlApiRequest.add_member(:api_id, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "apiId"))
371
388
  UpdateGraphqlApiRequest.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "name"))
389
+ UpdateGraphqlApiRequest.add_member(:log_config, Shapes::ShapeRef.new(shape: LogConfig, location_name: "logConfig"))
372
390
  UpdateGraphqlApiRequest.add_member(:authentication_type, Shapes::ShapeRef.new(shape: AuthenticationType, location_name: "authenticationType"))
373
391
  UpdateGraphqlApiRequest.add_member(:user_pool_config, Shapes::ShapeRef.new(shape: UserPoolConfig, location_name: "userPoolConfig"))
392
+ UpdateGraphqlApiRequest.add_member(:open_id_connect_config, Shapes::ShapeRef.new(shape: OpenIDConnectConfig, location_name: "openIDConnectConfig"))
374
393
  UpdateGraphqlApiRequest.struct_class = Types::UpdateGraphqlApiRequest
375
394
 
376
395
  UpdateGraphqlApiResponse.add_member(:graphql_api, Shapes::ShapeRef.new(shape: GraphqlApi, location_name: "graphqlApi"))
@@ -457,7 +476,6 @@ module Aws::AppSync
457
476
  o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
458
477
  o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
459
478
  o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
460
- o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
461
479
  o.errors << Shapes::ShapeRef.new(shape: ApiLimitExceededException)
462
480
  end)
463
481
 
@@ -10,6 +10,43 @@ module Aws::AppSync
10
10
 
11
11
  # Describes an API key.
12
12
  #
13
+ # Customers invoke AWS AppSync GraphQL APIs with API keys as an identity
14
+ # mechanism. There are two key versions:
15
+ #
16
+ # **da1**\: This version was introduced at launch in November 2017.
17
+ # These keys always expire after 7 days. Key expiration is managed by
18
+ # DynamoDB TTL. The keys will cease to be valid after Feb 21, 2018 and
19
+ # should not be used after that date.
20
+ #
21
+ # * `ListApiKeys` returns the expiration time in milliseconds.
22
+ #
23
+ # * `CreateApiKey` returns the expiration time in milliseconds.
24
+ #
25
+ # * `UpdateApiKey` is not available for this key version.
26
+ #
27
+ # * `DeleteApiKey` deletes the item from the table.
28
+ #
29
+ # * Expiration is stored in DynamoDB as milliseconds. This results in a
30
+ # bug where keys are not automatically deleted because DynamoDB
31
+ # expects the TTL to be stored in seconds. As a one-time action, we
32
+ # will delete these keys from the table after Feb 21, 2018.
33
+ #
34
+ # **da2**\: This version was introduced in February 2018 when AppSync
35
+ # added support to extend key expiration.
36
+ #
37
+ # * `ListApiKeys` returns the expiration time in seconds.
38
+ #
39
+ # * `CreateApiKey` returns the expiration time in seconds and accepts a
40
+ # user-provided expiration time in seconds.
41
+ #
42
+ # * `UpdateApiKey` returns the expiration time in seconds and accepts a
43
+ # user-provided expiration time in seconds. Key expiration can only be
44
+ # updated while the key has not expired.
45
+ #
46
+ # * `DeleteApiKey` deletes the item from the table.
47
+ #
48
+ # * Expiration is stored in DynamoDB as seconds.
49
+ #
13
50
  # @!attribute [rw] id
14
51
  # The API key ID.
15
52
  # @return [String]
@@ -50,9 +87,10 @@ module Aws::AppSync
50
87
  # @return [String]
51
88
  #
52
89
  # @!attribute [rw] expires
53
- # The time after which the API key expires. The date is represented as
54
- # seconds since the epoch, rounded down to the nearest hour. The
55
- # default value for this parameter is 7 days from creation time.
90
+ # The time from creation time after which the API key expires. The
91
+ # date is represented as seconds since the epoch, rounded down to the
92
+ # nearest hour. The default value for this parameter is 7 days from
93
+ # creation time. For more information, see .
56
94
  # @return [Integer]
57
95
  #
58
96
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateApiKeyRequest AWS API Documentation
@@ -161,19 +199,33 @@ module Aws::AppSync
161
199
  #
162
200
  # {
163
201
  # name: "String", # required
164
- # authentication_type: "API_KEY", # required, accepts API_KEY, AWS_IAM, AMAZON_COGNITO_USER_POOLS
202
+ # log_config: {
203
+ # field_log_level: "NONE", # required, accepts NONE, ERROR, ALL
204
+ # cloud_watch_logs_role_arn: "String", # required
205
+ # },
206
+ # authentication_type: "API_KEY", # required, accepts API_KEY, AWS_IAM, AMAZON_COGNITO_USER_POOLS, OPENID_CONNECT
165
207
  # user_pool_config: {
166
208
  # user_pool_id: "String", # required
167
209
  # aws_region: "String", # required
168
210
  # default_action: "ALLOW", # required, accepts ALLOW, DENY
169
211
  # app_id_client_regex: "String",
170
212
  # },
213
+ # open_id_connect_config: {
214
+ # issuer: "String", # required
215
+ # client_id: "String",
216
+ # iat_ttl: 1,
217
+ # auth_ttl: 1,
218
+ # },
171
219
  # }
172
220
  #
173
221
  # @!attribute [rw] name
174
222
  # A user-supplied name for the `GraphqlApi`.
175
223
  # @return [String]
176
224
  #
225
+ # @!attribute [rw] log_config
226
+ # The Amazon CloudWatch logs configuration.
227
+ # @return [Types::LogConfig]
228
+ #
177
229
  # @!attribute [rw] authentication_type
178
230
  # The authentication type: API key, IAM, or Amazon Cognito User Pools.
179
231
  # @return [String]
@@ -182,12 +234,18 @@ module Aws::AppSync
182
234
  # The Amazon Cognito User Pool configuration.
183
235
  # @return [Types::UserPoolConfig]
184
236
  #
237
+ # @!attribute [rw] open_id_connect_config
238
+ # The Open Id Connect configuration configuration.
239
+ # @return [Types::OpenIDConnectConfig]
240
+ #
185
241
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateGraphqlApiRequest AWS API Documentation
186
242
  #
187
243
  class CreateGraphqlApiRequest < Struct.new(
188
244
  :name,
245
+ :log_config,
189
246
  :authentication_type,
190
- :user_pool_config)
247
+ :user_pool_config,
248
+ :open_id_connect_config)
191
249
  include Aws::Structure
192
250
  end
193
251
 
@@ -338,9 +396,10 @@ module Aws::AppSync
338
396
  #
339
397
  # * **AWS\_LAMBDA**\: The data source is an AWS Lambda function.
340
398
  #
341
- # * **NONE**\: There is no data source. This type is used when the
342
- # required information can be computed on the fly without connecting
343
- # to a back-end data source.
399
+ # * **NONE**\: There is no data source. This type is used when when
400
+ # you wish to invoke a GraphQL operation without connecting to a
401
+ # data source, such as performing data transformation with resolvers
402
+ # or triggering a subscription to be invoked from a mutation.
344
403
  # @return [String]
345
404
  #
346
405
  # @!attribute [rw] service_role_arn
@@ -809,10 +868,18 @@ module Aws::AppSync
809
868
  # The authentication type.
810
869
  # @return [String]
811
870
  #
871
+ # @!attribute [rw] log_config
872
+ # The Amazon CloudWatch Logs configuration.
873
+ # @return [Types::LogConfig]
874
+ #
812
875
  # @!attribute [rw] user_pool_config
813
876
  # The Amazon Cognito User Pool configuration.
814
877
  # @return [Types::UserPoolConfig]
815
878
  #
879
+ # @!attribute [rw] open_id_connect_config
880
+ # The Open Id Connect configuration.
881
+ # @return [Types::OpenIDConnectConfig]
882
+ #
816
883
  # @!attribute [rw] arn
817
884
  # The ARN.
818
885
  # @return [String]
@@ -827,7 +894,9 @@ module Aws::AppSync
827
894
  :name,
828
895
  :api_id,
829
896
  :authentication_type,
897
+ :log_config,
830
898
  :user_pool_config,
899
+ :open_id_connect_config,
831
900
  :arn,
832
901
  :uris)
833
902
  include Aws::Structure
@@ -1104,6 +1173,99 @@ module Aws::AppSync
1104
1173
  include Aws::Structure
1105
1174
  end
1106
1175
 
1176
+ # The CloudWatch Logs configuration.
1177
+ #
1178
+ # @note When making an API call, you may pass LogConfig
1179
+ # data as a hash:
1180
+ #
1181
+ # {
1182
+ # field_log_level: "NONE", # required, accepts NONE, ERROR, ALL
1183
+ # cloud_watch_logs_role_arn: "String", # required
1184
+ # }
1185
+ #
1186
+ # @!attribute [rw] field_log_level
1187
+ # The field logging level. Values can be NONE, ERROR, ALL.
1188
+ #
1189
+ # * **NONE**\: No field-level logs are captured.
1190
+ #
1191
+ # * **ERROR**\: Logs the following information only for the fields
1192
+ # that are in error:
1193
+ #
1194
+ # * The error section in the server response.
1195
+ #
1196
+ # * Field-level errors.
1197
+ #
1198
+ # * The generated request/response functions that got resolved for
1199
+ # error fields.
1200
+ #
1201
+ # * **ALL**\: The following information is logged for all fields in
1202
+ # the query:
1203
+ #
1204
+ # * Field-level tracing information.
1205
+ #
1206
+ # * The generated request/response functions that got resolved for
1207
+ # each field.
1208
+ # @return [String]
1209
+ #
1210
+ # @!attribute [rw] cloud_watch_logs_role_arn
1211
+ # The service role that AWS AppSync will assume to publish to Amazon
1212
+ # CloudWatch logs in your account.
1213
+ # @return [String]
1214
+ #
1215
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/LogConfig AWS API Documentation
1216
+ #
1217
+ class LogConfig < Struct.new(
1218
+ :field_log_level,
1219
+ :cloud_watch_logs_role_arn)
1220
+ include Aws::Structure
1221
+ end
1222
+
1223
+ # Describes an Open Id Connect configuration.
1224
+ #
1225
+ # @note When making an API call, you may pass OpenIDConnectConfig
1226
+ # data as a hash:
1227
+ #
1228
+ # {
1229
+ # issuer: "String", # required
1230
+ # client_id: "String",
1231
+ # iat_ttl: 1,
1232
+ # auth_ttl: 1,
1233
+ # }
1234
+ #
1235
+ # @!attribute [rw] issuer
1236
+ # The issuer for the open id connect configuration. The issuer
1237
+ # returned by discovery MUST exactly match the value of iss in the ID
1238
+ # Token.
1239
+ # @return [String]
1240
+ #
1241
+ # @!attribute [rw] client_id
1242
+ # The client identifier of the Relying party at the OpenID Provider.
1243
+ # This identifier is typically obtained when the Relying party is
1244
+ # registered with the OpenID Provider. You can specify a regular
1245
+ # expression so the AWS AppSync can validate against multiple client
1246
+ # identifiers at a time
1247
+ # @return [String]
1248
+ #
1249
+ # @!attribute [rw] iat_ttl
1250
+ # The number of milliseconds a token is valid after being issued to a
1251
+ # user.
1252
+ # @return [Integer]
1253
+ #
1254
+ # @!attribute [rw] auth_ttl
1255
+ # The number of milliseconds a token is valid after being
1256
+ # authenticated.
1257
+ # @return [Integer]
1258
+ #
1259
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/OpenIDConnectConfig AWS API Documentation
1260
+ #
1261
+ class OpenIDConnectConfig < Struct.new(
1262
+ :issuer,
1263
+ :client_id,
1264
+ :iat_ttl,
1265
+ :auth_ttl)
1266
+ include Aws::Structure
1267
+ end
1268
+
1107
1269
  # Describes a resolver.
1108
1270
  #
1109
1271
  # @!attribute [rw] type_name
@@ -1234,8 +1396,9 @@ module Aws::AppSync
1234
1396
  # @return [String]
1235
1397
  #
1236
1398
  # @!attribute [rw] expires
1237
- # The time after which the API key expires. The date is represented as
1238
- # seconds since the epoch.
1399
+ # The time from update time after which the API key expires. The date
1400
+ # is represented as seconds since the epoch. For more information, see
1401
+ # .
1239
1402
  # @return [Integer]
1240
1403
  #
1241
1404
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateApiKeyRequest AWS API Documentation
@@ -1345,13 +1508,23 @@ module Aws::AppSync
1345
1508
  # {
1346
1509
  # api_id: "String", # required
1347
1510
  # name: "String", # required
1348
- # authentication_type: "API_KEY", # accepts API_KEY, AWS_IAM, AMAZON_COGNITO_USER_POOLS
1511
+ # log_config: {
1512
+ # field_log_level: "NONE", # required, accepts NONE, ERROR, ALL
1513
+ # cloud_watch_logs_role_arn: "String", # required
1514
+ # },
1515
+ # authentication_type: "API_KEY", # accepts API_KEY, AWS_IAM, AMAZON_COGNITO_USER_POOLS, OPENID_CONNECT
1349
1516
  # user_pool_config: {
1350
1517
  # user_pool_id: "String", # required
1351
1518
  # aws_region: "String", # required
1352
1519
  # default_action: "ALLOW", # required, accepts ALLOW, DENY
1353
1520
  # app_id_client_regex: "String",
1354
1521
  # },
1522
+ # open_id_connect_config: {
1523
+ # issuer: "String", # required
1524
+ # client_id: "String",
1525
+ # iat_ttl: 1,
1526
+ # auth_ttl: 1,
1527
+ # },
1355
1528
  # }
1356
1529
  #
1357
1530
  # @!attribute [rw] api_id
@@ -1362,6 +1535,11 @@ module Aws::AppSync
1362
1535
  # The new name for the `GraphqlApi` object.
1363
1536
  # @return [String]
1364
1537
  #
1538
+ # @!attribute [rw] log_config
1539
+ # The Amazon CloudWatch logs configuration for the `GraphqlApi`
1540
+ # object.
1541
+ # @return [Types::LogConfig]
1542
+ #
1365
1543
  # @!attribute [rw] authentication_type
1366
1544
  # The new authentication type for the `GraphqlApi` object.
1367
1545
  # @return [String]
@@ -1371,13 +1549,20 @@ module Aws::AppSync
1371
1549
  # object.
1372
1550
  # @return [Types::UserPoolConfig]
1373
1551
  #
1552
+ # @!attribute [rw] open_id_connect_config
1553
+ # The Open Id Connect configuration configuration for the `GraphqlApi`
1554
+ # object.
1555
+ # @return [Types::OpenIDConnectConfig]
1556
+ #
1374
1557
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateGraphqlApiRequest AWS API Documentation
1375
1558
  #
1376
1559
  class UpdateGraphqlApiRequest < Struct.new(
1377
1560
  :api_id,
1378
1561
  :name,
1562
+ :log_config,
1379
1563
  :authentication_type,
1380
- :user_pool_config)
1564
+ :user_pool_config,
1565
+ :open_id_connect_config)
1381
1566
  include Aws::Structure
1382
1567
  end
1383
1568
 
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.1.0
4
+ version: 1.2.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: 2018-02-14 00:00:00.000000000 Z
11
+ date: 2018-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  version: '0'
76
76
  requirements: []
77
77
  rubyforge_project:
78
- rubygems_version: 2.5.1
78
+ rubygems_version: 2.5.2.3
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: AWS SDK for Ruby - AWSAppSync