aws-sdk-cognitoidentity 1.25.0 → 1.30.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-cognitoidentity.rb +2 -1
- data/lib/aws-sdk-cognitoidentity/client.rb +117 -18
- data/lib/aws-sdk-cognitoidentity/client_api.rb +66 -0
- data/lib/aws-sdk-cognitoidentity/types.rb +143 -10
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe664ab2034b5c8b28975a3b88450c91381ec4434a277ca06d7126ab515e97f7
|
4
|
+
data.tar.gz: d779b1aca2504598c59750053bff90fc6782df069fe3bfe1effe2235ecaf2f58
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa61d59c84263b5886de8e803cbacd18be35a93638dfcd8c9acd333d3483a4d426ad7fd9a2fedcc5e63cf8e789a846ade151d825f721638a9f03bcf9a95c6ddb
|
7
|
+
data.tar.gz: fae7b1aa725ce11d4fefc40a371bcdafd94fe9ac96bf58f36ad7c2663f48016ee1b554f68803c521713be0f0f30ecf8360ba0587b6bc571c6f7a3a8e5b3b0154
|
@@ -7,6 +7,7 @@
|
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
10
|
+
|
10
11
|
require 'aws-sdk-core'
|
11
12
|
require 'aws-sigv4'
|
12
13
|
|
@@ -47,6 +48,6 @@ require_relative 'aws-sdk-cognitoidentity/customizations'
|
|
47
48
|
# @!group service
|
48
49
|
module Aws::CognitoIdentity
|
49
50
|
|
50
|
-
GEM_VERSION = '1.
|
51
|
+
GEM_VERSION = '1.30.0'
|
51
52
|
|
52
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
|
-
#
|
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
|
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]:
|
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
|
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
|
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<String,String>
|
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.
|
@@ -976,6 +1024,8 @@ module Aws::CognitoIdentity
|
|
976
1024
|
# * {Types::ListIdentityPoolsResponse#identity_pools #identity_pools} => Array<Types::IdentityPoolShortDescription>
|
977
1025
|
# * {Types::ListIdentityPoolsResponse#next_token #next_token} => String
|
978
1026
|
#
|
1027
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1028
|
+
#
|
979
1029
|
# @example Request syntax with placeholder values
|
980
1030
|
#
|
981
1031
|
# resp = client.list_identity_pools({
|
@@ -1189,7 +1239,7 @@ module Aws::CognitoIdentity
|
|
1189
1239
|
# How users for a specific identity provider are to mapped to roles.
|
1190
1240
|
# This is a string to RoleMapping object map. The string identifies the
|
1191
1241
|
# identity provider, for example, "graph.facebook.com" or
|
1192
|
-
# "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".
|
1193
1243
|
#
|
1194
1244
|
# Up to 25 rules can be specified per identity provider.
|
1195
1245
|
#
|
@@ -1229,10 +1279,61 @@ module Aws::CognitoIdentity
|
|
1229
1279
|
req.send_request(options)
|
1230
1280
|
end
|
1231
1281
|
|
1232
|
-
#
|
1233
|
-
#
|
1234
|
-
#
|
1235
|
-
#
|
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<String,String>
|
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.
|
1236
1337
|
#
|
1237
1338
|
# Each tag consists of a key and value, both of which you define. A key
|
1238
1339
|
# is a general category for more specific values. For example, if you
|
@@ -1251,8 +1352,7 @@ module Aws::CognitoIdentity
|
|
1251
1352
|
# identity pool can have as many as 50 tags.
|
1252
1353
|
#
|
1253
1354
|
# @option params [required, String] :resource_arn
|
1254
|
-
# The Amazon Resource Name (ARN) of the identity pool
|
1255
|
-
# to.
|
1355
|
+
# The Amazon Resource Name (ARN) of the identity pool.
|
1256
1356
|
#
|
1257
1357
|
# @option params [required, Hash<String,String>] :tags
|
1258
1358
|
# The tags to assign to the identity pool.
|
@@ -1356,12 +1456,11 @@ module Aws::CognitoIdentity
|
|
1356
1456
|
req.send_request(options)
|
1357
1457
|
end
|
1358
1458
|
|
1359
|
-
# Removes the specified tags from
|
1360
|
-
# 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
|
1361
1461
|
#
|
1362
1462
|
# @option params [required, String] :resource_arn
|
1363
|
-
# The Amazon Resource Name (ARN) of the identity pool
|
1364
|
-
# assigned to.
|
1463
|
+
# The Amazon Resource Name (ARN) of the identity pool.
|
1365
1464
|
#
|
1366
1465
|
# @option params [required, Array<String>] :tag_keys
|
1367
1466
|
# The keys of the tags to remove from the user pool.
|
@@ -1413,7 +1512,7 @@ module Aws::CognitoIdentity
|
|
1413
1512
|
# The "domain" by which Cognito will refer to your users.
|
1414
1513
|
#
|
1415
1514
|
# @option params [Array<String>] :open_id_connect_provider_arns
|
1416
|
-
#
|
1515
|
+
# The ARNs of the OpenID Connect providers.
|
1417
1516
|
#
|
1418
1517
|
# @option params [Array<Types::CognitoIdentityProvider>] :cognito_identity_providers
|
1419
1518
|
# A list representing an Amazon Cognito user pool and its client ID.
|
@@ -1508,7 +1607,7 @@ module Aws::CognitoIdentity
|
|
1508
1607
|
params: params,
|
1509
1608
|
config: config)
|
1510
1609
|
context[:gem_name] = 'aws-sdk-cognitoidentity'
|
1511
|
-
context[:gem_version] = '1.
|
1610
|
+
context[:gem_version] = '1.30.0'
|
1512
1611
|
Seahorse::Client::Request.new(handlers, context)
|
1513
1612
|
end
|
1514
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"
|
@@ -566,6 +613,12 @@ module Aws::CognitoIdentity
|
|
566
613
|
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
567
614
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
568
615
|
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
616
|
+
o[:pager] = Aws::Pager.new(
|
617
|
+
limit_key: "max_results",
|
618
|
+
tokens: {
|
619
|
+
"next_token" => "next_token"
|
620
|
+
}
|
621
|
+
)
|
569
622
|
end)
|
570
623
|
|
571
624
|
api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
|
@@ -624,6 +677,19 @@ module Aws::CognitoIdentity
|
|
624
677
|
o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
|
625
678
|
end)
|
626
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
|
+
|
627
693
|
api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
|
628
694
|
o.name = "TagResource"
|
629
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
|
-
#
|
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
|
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]:
|
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
|
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
|
-
#
|
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
|
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
|
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.
|
4
|
+
version: 1.30.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:
|
11
|
+
date: 2021-02-02 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.112.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.112.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|