aws-sdk-cognitoidentity 1.28.0 → 1.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 368099ec3db588ac9185a8b8911d8a9ade23f28ced99fd71962722ffaf40aec1
4
- data.tar.gz: b86ef4ecb11861e284827dc9c341534832b522ed78546c749bed9835c525033d
3
+ metadata.gz: 9ee67dac1dcf5d34eec8fe495a7b75dc30cb50030f2c0ee44bdfb1715aaf28ca
4
+ data.tar.gz: 6f720b295d7a96609387e7d12010e801809d6ce7e3f8824010527f7fe1cb9f80
5
5
  SHA512:
6
- metadata.gz: 3f59c1286b1f8c6759d8f9c56c87b2f9a964e22dd898854371712505ecd0ca5d6f6e805f12eeb27c9cdb1840d820a58a736a76ab4769efdf97737f69e7177f3d
7
- data.tar.gz: 2196e3e574ccd8b4124fda72352b539b4df4c0f6bb0a524b40985d95ebb8a0f5fd2594aad80e6a84fea090346b864b3fc0e80f03e9ab3ae670e6d3b33234fe37
6
+ metadata.gz: 6b0714db6b18344622fe43e5f46c3450c1563a92159e6fc14739935f8ce8c3676c683ef597dcef4d1ac669309df5db9758ab8b3ebd1940b68b34f3c8934ae099
7
+ data.tar.gz: 740ea9819e64e01a3d5f9bfec7a58229448ff795b533711f60a83fa7b51fb0e2859f0fa3bb5709d1578ba6b1b0022538ee78556e8d5ba892aec5838b807fd163
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-cognitoidentity/customizations'
48
48
  # @!group service
49
49
  module Aws::CognitoIdentity
50
50
 
51
- GEM_VERSION = '1.28.0'
51
+ GEM_VERSION = '1.29.0'
52
52
 
53
53
  end
@@ -382,7 +382,7 @@ module Aws::CognitoIdentity
382
382
  # Please take care in setting this parameter.
383
383
  #
384
384
  # @option params [Array<String>] :open_id_connect_provider_arns
385
- # A list of OpendID Connect provider ARNs.
385
+ # The Amazon Resource Names (ARN) of the OpenID Connect providers.
386
386
  #
387
387
  # @option params [Array<Types::CognitoIdentityProvider>] :cognito_identity_providers
388
388
  # An array of Amazon Cognito user pools and their client IDs.
@@ -634,13 +634,13 @@ module Aws::CognitoIdentity
634
634
  # unauthenticated identity.
635
635
  #
636
636
  # The Logins parameter is required when using identities associated with
637
- # external identity providers such as FaceBook. For examples of `Logins`
637
+ # external identity providers such as Facebook. For examples of `Logins`
638
638
  # maps, see the code examples in the [External Identity Providers][1]
639
639
  # section of the Amazon Cognito Developer Guide.
640
640
  #
641
641
  #
642
642
  #
643
- # [1]: http://docs.aws.amazon.com/cognito/latest/developerguide/external-identity-providers.html
643
+ # [1]: https://docs.aws.amazon.com/cognito/latest/developerguide/external-identity-providers.html
644
644
  #
645
645
  # @option params [String] :custom_role_arn
646
646
  # The Amazon Resource Name (ARN) of the role to be assumed when multiple
@@ -783,7 +783,7 @@ module Aws::CognitoIdentity
783
783
  # is returned by GetId. You can optionally add additional logins for the
784
784
  # identity. Supplying multiple logins creates an implicit link.
785
785
  #
786
- # The OpenId token is valid for 10 minutes.
786
+ # The OpenID token is valid for 10 minutes.
787
787
  #
788
788
  # This is a public API. You do not need any credentials to call this
789
789
  # API.
@@ -796,7 +796,7 @@ module Aws::CognitoIdentity
796
796
  # tokens. When using graph.facebook.com and www.amazon.com, supply the
797
797
  # access\_token returned from the provider's authflow. For
798
798
  # accounts.google.com, an Amazon Cognito user pool provider, or any
799
- # other OpenId Connect provider, always include the `id_token`.
799
+ # other OpenID Connect provider, always include the `id_token`.
800
800
  #
801
801
  # @return [Types::GetOpenIdTokenResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
802
802
  #
@@ -862,6 +862,10 @@ module Aws::CognitoIdentity
862
862
  # a user. When you create an identity pool, you can specify the
863
863
  # supported logins.
864
864
  #
865
+ # @option params [Hash<String,String>] :principal_tags
866
+ # Use this operation to configure attribute mappings for custom
867
+ # providers.
868
+ #
865
869
  # @option params [Integer] :token_duration
866
870
  # The expiration time of the token, in seconds. You can specify a custom
867
871
  # expiration time for the token so that you can cache it. If you don't
@@ -891,6 +895,9 @@ module Aws::CognitoIdentity
891
895
  # logins: { # required
892
896
  # "IdentityProviderName" => "IdentityProviderToken",
893
897
  # },
898
+ # principal_tags: {
899
+ # "PrincipalTagID" => "PrincipalTagValue",
900
+ # },
894
901
  # token_duration: 1,
895
902
  # })
896
903
  #
@@ -908,6 +915,47 @@ module Aws::CognitoIdentity
908
915
  req.send_request(options)
909
916
  end
910
917
 
918
+ # Use `GetPrincipalTagAttributeMap` to list all mappings between
919
+ # `PrincipalTags` and user attributes.
920
+ #
921
+ # @option params [required, String] :identity_pool_id
922
+ # You can use this operation to get the ID of the Identity Pool you
923
+ # setup attribute mappings for.
924
+ #
925
+ # @option params [required, String] :identity_provider_name
926
+ # You can use this operation to get the provider name.
927
+ #
928
+ # @return [Types::GetPrincipalTagAttributeMapResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
929
+ #
930
+ # * {Types::GetPrincipalTagAttributeMapResponse#identity_pool_id #identity_pool_id} => String
931
+ # * {Types::GetPrincipalTagAttributeMapResponse#identity_provider_name #identity_provider_name} => String
932
+ # * {Types::GetPrincipalTagAttributeMapResponse#use_defaults #use_defaults} => Boolean
933
+ # * {Types::GetPrincipalTagAttributeMapResponse#principal_tags #principal_tags} => Hash&lt;String,String&gt;
934
+ #
935
+ # @example Request syntax with placeholder values
936
+ #
937
+ # resp = client.get_principal_tag_attribute_map({
938
+ # identity_pool_id: "IdentityPoolId", # required
939
+ # identity_provider_name: "IdentityProviderName", # required
940
+ # })
941
+ #
942
+ # @example Response structure
943
+ #
944
+ # resp.identity_pool_id #=> String
945
+ # resp.identity_provider_name #=> String
946
+ # resp.use_defaults #=> Boolean
947
+ # resp.principal_tags #=> Hash
948
+ # resp.principal_tags["PrincipalTagID"] #=> String
949
+ #
950
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/GetPrincipalTagAttributeMap AWS API Documentation
951
+ #
952
+ # @overload get_principal_tag_attribute_map(params = {})
953
+ # @param [Hash] params ({})
954
+ def get_principal_tag_attribute_map(params = {}, options = {})
955
+ req = build_request(:get_principal_tag_attribute_map, params)
956
+ req.send_request(options)
957
+ end
958
+
911
959
  # Lists the identities in an identity pool.
912
960
  #
913
961
  # You must use AWS Developer credentials to call this API.
@@ -1191,7 +1239,7 @@ module Aws::CognitoIdentity
1191
1239
  # How users for a specific identity provider are to mapped to roles.
1192
1240
  # This is a string to RoleMapping object map. The string identifies the
1193
1241
  # identity provider, for example, "graph.facebook.com" or
1194
- # "cognito-idp-east-1.amazonaws.com/us-east-1\_abcdefghi:app\_client\_id".
1242
+ # "cognito-idp.us-east-1.amazonaws.com/us-east-1\_abcdefghi:app\_client\_id".
1195
1243
  #
1196
1244
  # Up to 25 rules can be specified per identity provider.
1197
1245
  #
@@ -1231,10 +1279,61 @@ module Aws::CognitoIdentity
1231
1279
  req.send_request(options)
1232
1280
  end
1233
1281
 
1234
- # Assigns a set of tags to an Amazon Cognito identity pool. A tag is a
1235
- # label that you can use to categorize and manage identity pools in
1236
- # different ways, such as by purpose, owner, environment, or other
1237
- # criteria.
1282
+ # You can use this operation to use default (username and clientID)
1283
+ # attribute or custom attribute mappings.
1284
+ #
1285
+ # @option params [required, String] :identity_pool_id
1286
+ # The ID of the Identity Pool you want to set attribute mappings for.
1287
+ #
1288
+ # @option params [required, String] :identity_provider_name
1289
+ # The provider name you want to use for attribute mappings.
1290
+ #
1291
+ # @option params [Boolean] :use_defaults
1292
+ # You can use this operation to use default (username and clientID)
1293
+ # attribute mappings.
1294
+ #
1295
+ # @option params [Hash<String,String>] :principal_tags
1296
+ # You can use this operation to add principal tags.
1297
+ #
1298
+ # @return [Types::SetPrincipalTagAttributeMapResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1299
+ #
1300
+ # * {Types::SetPrincipalTagAttributeMapResponse#identity_pool_id #identity_pool_id} => String
1301
+ # * {Types::SetPrincipalTagAttributeMapResponse#identity_provider_name #identity_provider_name} => String
1302
+ # * {Types::SetPrincipalTagAttributeMapResponse#use_defaults #use_defaults} => Boolean
1303
+ # * {Types::SetPrincipalTagAttributeMapResponse#principal_tags #principal_tags} => Hash&lt;String,String&gt;
1304
+ #
1305
+ # @example Request syntax with placeholder values
1306
+ #
1307
+ # resp = client.set_principal_tag_attribute_map({
1308
+ # identity_pool_id: "IdentityPoolId", # required
1309
+ # identity_provider_name: "IdentityProviderName", # required
1310
+ # use_defaults: false,
1311
+ # principal_tags: {
1312
+ # "PrincipalTagID" => "PrincipalTagValue",
1313
+ # },
1314
+ # })
1315
+ #
1316
+ # @example Response structure
1317
+ #
1318
+ # resp.identity_pool_id #=> String
1319
+ # resp.identity_provider_name #=> String
1320
+ # resp.use_defaults #=> Boolean
1321
+ # resp.principal_tags #=> Hash
1322
+ # resp.principal_tags["PrincipalTagID"] #=> String
1323
+ #
1324
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/SetPrincipalTagAttributeMap AWS API Documentation
1325
+ #
1326
+ # @overload set_principal_tag_attribute_map(params = {})
1327
+ # @param [Hash] params ({})
1328
+ def set_principal_tag_attribute_map(params = {}, options = {})
1329
+ req = build_request(:set_principal_tag_attribute_map, params)
1330
+ req.send_request(options)
1331
+ end
1332
+
1333
+ # Assigns a set of tags to the specified Amazon Cognito identity pool. A
1334
+ # tag is a label that you can use to categorize and manage identity
1335
+ # pools in different ways, such as by purpose, owner, environment, or
1336
+ # other criteria.
1238
1337
  #
1239
1338
  # Each tag consists of a key and value, both of which you define. A key
1240
1339
  # is a general category for more specific values. For example, if you
@@ -1253,8 +1352,7 @@ module Aws::CognitoIdentity
1253
1352
  # identity pool can have as many as 50 tags.
1254
1353
  #
1255
1354
  # @option params [required, String] :resource_arn
1256
- # The Amazon Resource Name (ARN) of the identity pool to assign the tags
1257
- # to.
1355
+ # The Amazon Resource Name (ARN) of the identity pool.
1258
1356
  #
1259
1357
  # @option params [required, Hash<String,String>] :tags
1260
1358
  # The tags to assign to the identity pool.
@@ -1358,12 +1456,11 @@ module Aws::CognitoIdentity
1358
1456
  req.send_request(options)
1359
1457
  end
1360
1458
 
1361
- # Removes the specified tags from an Amazon Cognito identity pool. You
1362
- # can use this action up to 5 times per second, per account
1459
+ # Removes the specified tags from the specified Amazon Cognito identity
1460
+ # pool. You can use this action up to 5 times per second, per account
1363
1461
  #
1364
1462
  # @option params [required, String] :resource_arn
1365
- # The Amazon Resource Name (ARN) of the identity pool that the tags are
1366
- # assigned to.
1463
+ # The Amazon Resource Name (ARN) of the identity pool.
1367
1464
  #
1368
1465
  # @option params [required, Array<String>] :tag_keys
1369
1466
  # The keys of the tags to remove from the user pool.
@@ -1415,7 +1512,7 @@ module Aws::CognitoIdentity
1415
1512
  # The "domain" by which Cognito will refer to your users.
1416
1513
  #
1417
1514
  # @option params [Array<String>] :open_id_connect_provider_arns
1418
- # A list of OpendID Connect provider ARNs.
1515
+ # The ARNs of the OpenID Connect providers.
1419
1516
  #
1420
1517
  # @option params [Array<Types::CognitoIdentityProvider>] :cognito_identity_providers
1421
1518
  # A list representing an Amazon Cognito user pool and its client ID.
@@ -1510,7 +1607,7 @@ module Aws::CognitoIdentity
1510
1607
  params: params,
1511
1608
  config: config)
1512
1609
  context[:gem_name] = 'aws-sdk-cognitoidentity'
1513
- context[:gem_version] = '1.28.0'
1610
+ context[:gem_version] = '1.29.0'
1514
1611
  Seahorse::Client::Request.new(handlers, context)
1515
1612
  end
1516
1613
 
@@ -50,6 +50,8 @@ module Aws::CognitoIdentity
50
50
  GetOpenIdTokenForDeveloperIdentityResponse = Shapes::StructureShape.new(name: 'GetOpenIdTokenForDeveloperIdentityResponse')
51
51
  GetOpenIdTokenInput = Shapes::StructureShape.new(name: 'GetOpenIdTokenInput')
52
52
  GetOpenIdTokenResponse = Shapes::StructureShape.new(name: 'GetOpenIdTokenResponse')
53
+ GetPrincipalTagAttributeMapInput = Shapes::StructureShape.new(name: 'GetPrincipalTagAttributeMapInput')
54
+ GetPrincipalTagAttributeMapResponse = Shapes::StructureShape.new(name: 'GetPrincipalTagAttributeMapResponse')
53
55
  HideDisabled = Shapes::BooleanShape.new(name: 'HideDisabled')
54
56
  IdentitiesList = Shapes::ListShape.new(name: 'IdentitiesList')
55
57
  IdentityDescription = Shapes::StructureShape.new(name: 'IdentityDescription')
@@ -90,6 +92,9 @@ module Aws::CognitoIdentity
90
92
  OIDCProviderList = Shapes::ListShape.new(name: 'OIDCProviderList')
91
93
  OIDCToken = Shapes::StringShape.new(name: 'OIDCToken')
92
94
  PaginationKey = Shapes::StringShape.new(name: 'PaginationKey')
95
+ PrincipalTagID = Shapes::StringShape.new(name: 'PrincipalTagID')
96
+ PrincipalTagValue = Shapes::StringShape.new(name: 'PrincipalTagValue')
97
+ PrincipalTags = Shapes::MapShape.new(name: 'PrincipalTags')
93
98
  QueryLimit = Shapes::IntegerShape.new(name: 'QueryLimit')
94
99
  ResourceConflictException = Shapes::StructureShape.new(name: 'ResourceConflictException')
95
100
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
@@ -103,6 +108,8 @@ module Aws::CognitoIdentity
103
108
  SecretKeyString = Shapes::StringShape.new(name: 'SecretKeyString')
104
109
  SessionTokenString = Shapes::StringShape.new(name: 'SessionTokenString')
105
110
  SetIdentityPoolRolesInput = Shapes::StructureShape.new(name: 'SetIdentityPoolRolesInput')
111
+ SetPrincipalTagAttributeMapInput = Shapes::StructureShape.new(name: 'SetPrincipalTagAttributeMapInput')
112
+ SetPrincipalTagAttributeMapResponse = Shapes::StructureShape.new(name: 'SetPrincipalTagAttributeMapResponse')
106
113
  String = Shapes::StringShape.new(name: 'String')
107
114
  TagKeysType = Shapes::StringShape.new(name: 'TagKeysType')
108
115
  TagResourceInput = Shapes::StructureShape.new(name: 'TagResourceInput')
@@ -116,6 +123,7 @@ module Aws::CognitoIdentity
116
123
  UnprocessedIdentityIdList = Shapes::ListShape.new(name: 'UnprocessedIdentityIdList')
117
124
  UntagResourceInput = Shapes::StructureShape.new(name: 'UntagResourceInput')
118
125
  UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
126
+ UseDefaults = Shapes::BooleanShape.new(name: 'UseDefaults')
119
127
 
120
128
  CognitoIdentityProvider.add_member(:provider_name, Shapes::ShapeRef.new(shape: CognitoIdentityProviderName, location_name: "ProviderName"))
121
129
  CognitoIdentityProvider.add_member(:client_id, Shapes::ShapeRef.new(shape: CognitoIdentityProviderClientId, location_name: "ClientId"))
@@ -195,6 +203,7 @@ module Aws::CognitoIdentity
195
203
  GetOpenIdTokenForDeveloperIdentityInput.add_member(:identity_pool_id, Shapes::ShapeRef.new(shape: IdentityPoolId, required: true, location_name: "IdentityPoolId"))
196
204
  GetOpenIdTokenForDeveloperIdentityInput.add_member(:identity_id, Shapes::ShapeRef.new(shape: IdentityId, location_name: "IdentityId"))
197
205
  GetOpenIdTokenForDeveloperIdentityInput.add_member(:logins, Shapes::ShapeRef.new(shape: LoginsMap, required: true, location_name: "Logins"))
206
+ GetOpenIdTokenForDeveloperIdentityInput.add_member(:principal_tags, Shapes::ShapeRef.new(shape: PrincipalTags, location_name: "PrincipalTags"))
198
207
  GetOpenIdTokenForDeveloperIdentityInput.add_member(:token_duration, Shapes::ShapeRef.new(shape: TokenDuration, location_name: "TokenDuration"))
199
208
  GetOpenIdTokenForDeveloperIdentityInput.struct_class = Types::GetOpenIdTokenForDeveloperIdentityInput
200
209
 
@@ -210,6 +219,16 @@ module Aws::CognitoIdentity
210
219
  GetOpenIdTokenResponse.add_member(:token, Shapes::ShapeRef.new(shape: OIDCToken, location_name: "Token"))
211
220
  GetOpenIdTokenResponse.struct_class = Types::GetOpenIdTokenResponse
212
221
 
222
+ GetPrincipalTagAttributeMapInput.add_member(:identity_pool_id, Shapes::ShapeRef.new(shape: IdentityPoolId, required: true, location_name: "IdentityPoolId"))
223
+ GetPrincipalTagAttributeMapInput.add_member(:identity_provider_name, Shapes::ShapeRef.new(shape: IdentityProviderName, required: true, location_name: "IdentityProviderName"))
224
+ GetPrincipalTagAttributeMapInput.struct_class = Types::GetPrincipalTagAttributeMapInput
225
+
226
+ GetPrincipalTagAttributeMapResponse.add_member(:identity_pool_id, Shapes::ShapeRef.new(shape: IdentityPoolId, location_name: "IdentityPoolId"))
227
+ GetPrincipalTagAttributeMapResponse.add_member(:identity_provider_name, Shapes::ShapeRef.new(shape: IdentityProviderName, location_name: "IdentityProviderName"))
228
+ GetPrincipalTagAttributeMapResponse.add_member(:use_defaults, Shapes::ShapeRef.new(shape: UseDefaults, location_name: "UseDefaults"))
229
+ GetPrincipalTagAttributeMapResponse.add_member(:principal_tags, Shapes::ShapeRef.new(shape: PrincipalTags, location_name: "PrincipalTags"))
230
+ GetPrincipalTagAttributeMapResponse.struct_class = Types::GetPrincipalTagAttributeMapResponse
231
+
213
232
  IdentitiesList.member = Shapes::ShapeRef.new(shape: IdentityDescription)
214
233
 
215
234
  IdentityDescription.add_member(:identity_id, Shapes::ShapeRef.new(shape: IdentityId, location_name: "IdentityId"))
@@ -322,6 +341,9 @@ module Aws::CognitoIdentity
322
341
 
323
342
  OIDCProviderList.member = Shapes::ShapeRef.new(shape: ARNString)
324
343
 
344
+ PrincipalTags.key = Shapes::ShapeRef.new(shape: PrincipalTagID)
345
+ PrincipalTags.value = Shapes::ShapeRef.new(shape: PrincipalTagValue)
346
+
325
347
  ResourceConflictException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
326
348
  ResourceConflictException.struct_class = Types::ResourceConflictException
327
349
 
@@ -349,6 +371,18 @@ module Aws::CognitoIdentity
349
371
  SetIdentityPoolRolesInput.add_member(:role_mappings, Shapes::ShapeRef.new(shape: RoleMappingMap, location_name: "RoleMappings"))
350
372
  SetIdentityPoolRolesInput.struct_class = Types::SetIdentityPoolRolesInput
351
373
 
374
+ SetPrincipalTagAttributeMapInput.add_member(:identity_pool_id, Shapes::ShapeRef.new(shape: IdentityPoolId, required: true, location_name: "IdentityPoolId"))
375
+ SetPrincipalTagAttributeMapInput.add_member(:identity_provider_name, Shapes::ShapeRef.new(shape: IdentityProviderName, required: true, location_name: "IdentityProviderName"))
376
+ SetPrincipalTagAttributeMapInput.add_member(:use_defaults, Shapes::ShapeRef.new(shape: UseDefaults, location_name: "UseDefaults"))
377
+ SetPrincipalTagAttributeMapInput.add_member(:principal_tags, Shapes::ShapeRef.new(shape: PrincipalTags, location_name: "PrincipalTags"))
378
+ SetPrincipalTagAttributeMapInput.struct_class = Types::SetPrincipalTagAttributeMapInput
379
+
380
+ SetPrincipalTagAttributeMapResponse.add_member(:identity_pool_id, Shapes::ShapeRef.new(shape: IdentityPoolId, location_name: "IdentityPoolId"))
381
+ SetPrincipalTagAttributeMapResponse.add_member(:identity_provider_name, Shapes::ShapeRef.new(shape: IdentityProviderName, location_name: "IdentityProviderName"))
382
+ SetPrincipalTagAttributeMapResponse.add_member(:use_defaults, Shapes::ShapeRef.new(shape: UseDefaults, location_name: "UseDefaults"))
383
+ SetPrincipalTagAttributeMapResponse.add_member(:principal_tags, Shapes::ShapeRef.new(shape: PrincipalTags, location_name: "PrincipalTags"))
384
+ SetPrincipalTagAttributeMapResponse.struct_class = Types::SetPrincipalTagAttributeMapResponse
385
+
352
386
  TagResourceInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ARNString, required: true, location_name: "ResourceArn"))
353
387
  TagResourceInput.add_member(:tags, Shapes::ShapeRef.new(shape: IdentityPoolTagsType, required: true, location_name: "Tags"))
354
388
  TagResourceInput.struct_class = Types::TagResourceInput
@@ -542,6 +576,19 @@ module Aws::CognitoIdentity
542
576
  o.errors << Shapes::ShapeRef.new(shape: DeveloperUserAlreadyRegisteredException)
543
577
  end)
544
578
 
579
+ api.add_operation(:get_principal_tag_attribute_map, Seahorse::Model::Operation.new.tap do |o|
580
+ o.name = "GetPrincipalTagAttributeMap"
581
+ o.http_method = "POST"
582
+ o.http_request_uri = "/"
583
+ o.input = Shapes::ShapeRef.new(shape: GetPrincipalTagAttributeMapInput)
584
+ o.output = Shapes::ShapeRef.new(shape: GetPrincipalTagAttributeMapResponse)
585
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
586
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
587
+ o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException)
588
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
589
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
590
+ end)
591
+
545
592
  api.add_operation(:list_identities, Seahorse::Model::Operation.new.tap do |o|
546
593
  o.name = "ListIdentities"
547
594
  o.http_method = "POST"
@@ -630,6 +677,19 @@ module Aws::CognitoIdentity
630
677
  o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
631
678
  end)
632
679
 
680
+ api.add_operation(:set_principal_tag_attribute_map, Seahorse::Model::Operation.new.tap do |o|
681
+ o.name = "SetPrincipalTagAttributeMap"
682
+ o.http_method = "POST"
683
+ o.http_request_uri = "/"
684
+ o.input = Shapes::ShapeRef.new(shape: SetPrincipalTagAttributeMapInput)
685
+ o.output = Shapes::ShapeRef.new(shape: SetPrincipalTagAttributeMapResponse)
686
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
687
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
688
+ o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException)
689
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
690
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
691
+ end)
692
+
633
693
  api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
634
694
  o.name = "TagResource"
635
695
  o.http_method = "POST"
@@ -129,7 +129,7 @@ module Aws::CognitoIdentity
129
129
  # @return [String]
130
130
  #
131
131
  # @!attribute [rw] open_id_connect_provider_arns
132
- # A list of OpendID Connect provider ARNs.
132
+ # The Amazon Resource Names (ARN) of the OpenID Connect providers.
133
133
  # @return [Array<String>]
134
134
  #
135
135
  # @!attribute [rw] cognito_identity_providers
@@ -347,13 +347,13 @@ module Aws::CognitoIdentity
347
347
  # unauthenticated identity.
348
348
  #
349
349
  # The Logins parameter is required when using identities associated
350
- # with external identity providers such as FaceBook. For examples of
350
+ # with external identity providers such as Facebook. For examples of
351
351
  # `Logins` maps, see the code examples in the [External Identity
352
352
  # Providers][1] section of the Amazon Cognito Developer Guide.
353
353
  #
354
354
  #
355
355
  #
356
- # [1]: http://docs.aws.amazon.com/cognito/latest/developerguide/external-identity-providers.html
356
+ # [1]: https://docs.aws.amazon.com/cognito/latest/developerguide/external-identity-providers.html
357
357
  # @return [Hash<String,String>]
358
358
  #
359
359
  # @!attribute [rw] custom_role_arn
@@ -520,6 +520,9 @@ module Aws::CognitoIdentity
520
520
  # logins: { # required
521
521
  # "IdentityProviderName" => "IdentityProviderToken",
522
522
  # },
523
+ # principal_tags: {
524
+ # "PrincipalTagID" => "PrincipalTagValue",
525
+ # },
523
526
  # token_duration: 1,
524
527
  # }
525
528
  #
@@ -544,6 +547,11 @@ module Aws::CognitoIdentity
544
547
  # identity pool, you can specify the supported logins.
545
548
  # @return [Hash<String,String>]
546
549
  #
550
+ # @!attribute [rw] principal_tags
551
+ # Use this operation to configure attribute mappings for custom
552
+ # providers.
553
+ # @return [Hash<String,String>]
554
+ #
547
555
  # @!attribute [rw] token_duration
548
556
  # The expiration time of the token, in seconds. You can specify a
549
557
  # custom expiration time for the token so that you can cache it. If
@@ -567,6 +575,7 @@ module Aws::CognitoIdentity
567
575
  :identity_pool_id,
568
576
  :identity_id,
569
577
  :logins,
578
+ :principal_tags,
570
579
  :token_duration)
571
580
  SENSITIVE = []
572
581
  include Aws::Structure
@@ -613,7 +622,7 @@ module Aws::CognitoIdentity
613
622
  # provider tokens. When using graph.facebook.com and www.amazon.com,
614
623
  # supply the access\_token returned from the provider's authflow. For
615
624
  # accounts.google.com, an Amazon Cognito user pool provider, or any
616
- # other OpenId Connect provider, always include the `id_token`.
625
+ # other OpenID Connect provider, always include the `id_token`.
617
626
  # @return [Hash<String,String>]
618
627
  #
619
628
  # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/GetOpenIdTokenInput AWS API Documentation
@@ -645,6 +654,62 @@ module Aws::CognitoIdentity
645
654
  include Aws::Structure
646
655
  end
647
656
 
657
+ # @note When making an API call, you may pass GetPrincipalTagAttributeMapInput
658
+ # data as a hash:
659
+ #
660
+ # {
661
+ # identity_pool_id: "IdentityPoolId", # required
662
+ # identity_provider_name: "IdentityProviderName", # required
663
+ # }
664
+ #
665
+ # @!attribute [rw] identity_pool_id
666
+ # You can use this operation to get the ID of the Identity Pool you
667
+ # setup attribute mappings for.
668
+ # @return [String]
669
+ #
670
+ # @!attribute [rw] identity_provider_name
671
+ # You can use this operation to get the provider name.
672
+ # @return [String]
673
+ #
674
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/GetPrincipalTagAttributeMapInput AWS API Documentation
675
+ #
676
+ class GetPrincipalTagAttributeMapInput < Struct.new(
677
+ :identity_pool_id,
678
+ :identity_provider_name)
679
+ SENSITIVE = []
680
+ include Aws::Structure
681
+ end
682
+
683
+ # @!attribute [rw] identity_pool_id
684
+ # You can use this operation to get the ID of the Identity Pool you
685
+ # setup attribute mappings for.
686
+ # @return [String]
687
+ #
688
+ # @!attribute [rw] identity_provider_name
689
+ # You can use this operation to get the provider name.
690
+ # @return [String]
691
+ #
692
+ # @!attribute [rw] use_defaults
693
+ # You can use this operation to list
694
+ # @return [Boolean]
695
+ #
696
+ # @!attribute [rw] principal_tags
697
+ # You can use this operation to add principal tags. The
698
+ # `PrincipalTags`operation enables you to reference user attributes in
699
+ # your IAM permissions policy.
700
+ # @return [Hash<String,String>]
701
+ #
702
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/GetPrincipalTagAttributeMapResponse AWS API Documentation
703
+ #
704
+ class GetPrincipalTagAttributeMapResponse < Struct.new(
705
+ :identity_pool_id,
706
+ :identity_provider_name,
707
+ :use_defaults,
708
+ :principal_tags)
709
+ SENSITIVE = []
710
+ include Aws::Structure
711
+ end
712
+
648
713
  # A description of the identity.
649
714
  #
650
715
  # @!attribute [rw] identity_id
@@ -733,7 +798,7 @@ module Aws::CognitoIdentity
733
798
  # @return [String]
734
799
  #
735
800
  # @!attribute [rw] open_id_connect_provider_arns
736
- # A list of OpendID Connect provider ARNs.
801
+ # The ARNs of the OpenID Connect providers.
737
802
  # @return [Array<String>]
738
803
  #
739
804
  # @!attribute [rw] cognito_identity_providers
@@ -1352,7 +1417,7 @@ module Aws::CognitoIdentity
1352
1417
  # How users for a specific identity provider are to mapped to roles.
1353
1418
  # This is a string to RoleMapping object map. The string identifies
1354
1419
  # the identity provider, for example, "graph.facebook.com" or
1355
- # "cognito-idp-east-1.amazonaws.com/us-east-1\_abcdefghi:app\_client\_id".
1420
+ # "cognito-idp.us-east-1.amazonaws.com/us-east-1\_abcdefghi:app\_client\_id".
1356
1421
  #
1357
1422
  # Up to 25 rules can be specified per identity provider.
1358
1423
  # @return [Hash<String,Types::RoleMapping>]
@@ -1367,6 +1432,76 @@ module Aws::CognitoIdentity
1367
1432
  include Aws::Structure
1368
1433
  end
1369
1434
 
1435
+ # @note When making an API call, you may pass SetPrincipalTagAttributeMapInput
1436
+ # data as a hash:
1437
+ #
1438
+ # {
1439
+ # identity_pool_id: "IdentityPoolId", # required
1440
+ # identity_provider_name: "IdentityProviderName", # required
1441
+ # use_defaults: false,
1442
+ # principal_tags: {
1443
+ # "PrincipalTagID" => "PrincipalTagValue",
1444
+ # },
1445
+ # }
1446
+ #
1447
+ # @!attribute [rw] identity_pool_id
1448
+ # The ID of the Identity Pool you want to set attribute mappings for.
1449
+ # @return [String]
1450
+ #
1451
+ # @!attribute [rw] identity_provider_name
1452
+ # The provider name you want to use for attribute mappings.
1453
+ # @return [String]
1454
+ #
1455
+ # @!attribute [rw] use_defaults
1456
+ # You can use this operation to use default (username and clientID)
1457
+ # attribute mappings.
1458
+ # @return [Boolean]
1459
+ #
1460
+ # @!attribute [rw] principal_tags
1461
+ # You can use this operation to add principal tags.
1462
+ # @return [Hash<String,String>]
1463
+ #
1464
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/SetPrincipalTagAttributeMapInput AWS API Documentation
1465
+ #
1466
+ class SetPrincipalTagAttributeMapInput < Struct.new(
1467
+ :identity_pool_id,
1468
+ :identity_provider_name,
1469
+ :use_defaults,
1470
+ :principal_tags)
1471
+ SENSITIVE = []
1472
+ include Aws::Structure
1473
+ end
1474
+
1475
+ # @!attribute [rw] identity_pool_id
1476
+ # The ID of the Identity Pool you want to set attribute mappings for.
1477
+ # @return [String]
1478
+ #
1479
+ # @!attribute [rw] identity_provider_name
1480
+ # The provider name you want to use for attribute mappings.
1481
+ # @return [String]
1482
+ #
1483
+ # @!attribute [rw] use_defaults
1484
+ # You can use this operation to select default (username and clientID)
1485
+ # attribute mappings.
1486
+ # @return [Boolean]
1487
+ #
1488
+ # @!attribute [rw] principal_tags
1489
+ # You can use this operation to add principal tags. The
1490
+ # `PrincipalTags`operation enables you to reference user attributes in
1491
+ # your IAM permissions policy.
1492
+ # @return [Hash<String,String>]
1493
+ #
1494
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/SetPrincipalTagAttributeMapResponse AWS API Documentation
1495
+ #
1496
+ class SetPrincipalTagAttributeMapResponse < Struct.new(
1497
+ :identity_pool_id,
1498
+ :identity_provider_name,
1499
+ :use_defaults,
1500
+ :principal_tags)
1501
+ SENSITIVE = []
1502
+ include Aws::Structure
1503
+ end
1504
+
1370
1505
  # @note When making an API call, you may pass TagResourceInput
1371
1506
  # data as a hash:
1372
1507
  #
@@ -1378,8 +1513,7 @@ module Aws::CognitoIdentity
1378
1513
  # }
1379
1514
  #
1380
1515
  # @!attribute [rw] resource_arn
1381
- # The Amazon Resource Name (ARN) of the identity pool to assign the
1382
- # tags to.
1516
+ # The Amazon Resource Name (ARN) of the identity pool.
1383
1517
  # @return [String]
1384
1518
  #
1385
1519
  # @!attribute [rw] tags
@@ -1518,8 +1652,7 @@ module Aws::CognitoIdentity
1518
1652
  # }
1519
1653
  #
1520
1654
  # @!attribute [rw] resource_arn
1521
- # The Amazon Resource Name (ARN) of the identity pool that the tags
1522
- # are assigned to.
1655
+ # The Amazon Resource Name (ARN) of the identity pool.
1523
1656
  # @return [String]
1524
1657
  #
1525
1658
  # @!attribute [rw] tag_keys
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-cognitoidentity
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.28.0
4
+ version: 1.29.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: 2020-11-20 00:00:00.000000000 Z
11
+ date: 2021-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core