aws-sdk-cognitoidentity 1.24.0 → 1.29.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 +3 -2
- data/lib/aws-sdk-cognitoidentity/client.rb +139 -25
- 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: 9ee67dac1dcf5d34eec8fe495a7b75dc30cb50030f2c0ee44bdfb1715aaf28ca
|
4
|
+
data.tar.gz: 6f720b295d7a96609387e7d12010e801809d6ce7e3f8824010527f7fe1cb9f80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b0714db6b18344622fe43e5f46c3450c1563a92159e6fc14739935f8ce8c3676c683ef597dcef4d1ac669309df5db9758ab8b3ebd1940b68b34f3c8934ae099
|
7
|
+
data.tar.gz: 740ea9819e64e01a3d5f9bfec7a58229448ff795b533711f60a83fa7b51fb0e2859f0fa3bb5709d1578ba6b1b0022538ee78556e8d5ba892aec5838b807fd163
|
@@ -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
|
|
@@ -44,9 +45,9 @@ require_relative 'aws-sdk-cognitoidentity/customizations'
|
|
44
45
|
#
|
45
46
|
# See {Errors} for more information.
|
46
47
|
#
|
47
|
-
#
|
48
|
+
# @!group service
|
48
49
|
module Aws::CognitoIdentity
|
49
50
|
|
50
|
-
GEM_VERSION = '1.
|
51
|
+
GEM_VERSION = '1.29.0'
|
51
52
|
|
52
53
|
end
|
@@ -85,13 +85,28 @@ module Aws::CognitoIdentity
|
|
85
85
|
# * `Aws::Credentials` - Used for configuring static, non-refreshing
|
86
86
|
# credentials.
|
87
87
|
#
|
88
|
+
# * `Aws::SharedCredentials` - Used for loading static credentials from a
|
89
|
+
# shared file, such as `~/.aws/config`.
|
90
|
+
#
|
91
|
+
# * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
|
92
|
+
#
|
93
|
+
# * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
|
94
|
+
# assume a role after providing credentials via the web.
|
95
|
+
#
|
96
|
+
# * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
|
97
|
+
# access token generated from `aws login`.
|
98
|
+
#
|
99
|
+
# * `Aws::ProcessCredentials` - Used for loading credentials from a
|
100
|
+
# process that outputs to stdout.
|
101
|
+
#
|
88
102
|
# * `Aws::InstanceProfileCredentials` - Used for loading credentials
|
89
103
|
# from an EC2 IMDS on an EC2 instance.
|
90
104
|
#
|
91
|
-
# * `Aws::
|
92
|
-
#
|
105
|
+
# * `Aws::ECSCredentials` - Used for loading credentials from
|
106
|
+
# instances running in ECS.
|
93
107
|
#
|
94
|
-
# * `Aws::
|
108
|
+
# * `Aws::CognitoIdentityCredentials` - Used for loading credentials
|
109
|
+
# from the Cognito Identity service.
|
95
110
|
#
|
96
111
|
# When `:credentials` are not configured directly, the following
|
97
112
|
# locations will be searched for credentials:
|
@@ -101,10 +116,10 @@ module Aws::CognitoIdentity
|
|
101
116
|
# * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
|
102
117
|
# * `~/.aws/credentials`
|
103
118
|
# * `~/.aws/config`
|
104
|
-
# * EC2 IMDS instance profile - When used by default, the timeouts
|
105
|
-
# very aggressive. Construct and pass an instance of
|
106
|
-
# `Aws::InstanceProfileCredentails`
|
107
|
-
# timeouts.
|
119
|
+
# * EC2/ECS IMDS instance profile - When used by default, the timeouts
|
120
|
+
# are very aggressive. Construct and pass an instance of
|
121
|
+
# `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
|
122
|
+
# enable retries and extended timeouts.
|
108
123
|
#
|
109
124
|
# @option options [required, String] :region
|
110
125
|
# The AWS region to connect to. The configured `:region` is
|
@@ -367,7 +382,7 @@ module Aws::CognitoIdentity
|
|
367
382
|
# Please take care in setting this parameter.
|
368
383
|
#
|
369
384
|
# @option params [Array<String>] :open_id_connect_provider_arns
|
370
|
-
#
|
385
|
+
# The Amazon Resource Names (ARN) of the OpenID Connect providers.
|
371
386
|
#
|
372
387
|
# @option params [Array<Types::CognitoIdentityProvider>] :cognito_identity_providers
|
373
388
|
# An array of Amazon Cognito user pools and their client IDs.
|
@@ -619,13 +634,13 @@ module Aws::CognitoIdentity
|
|
619
634
|
# unauthenticated identity.
|
620
635
|
#
|
621
636
|
# The Logins parameter is required when using identities associated with
|
622
|
-
# external identity providers such as
|
637
|
+
# external identity providers such as Facebook. For examples of `Logins`
|
623
638
|
# maps, see the code examples in the [External Identity Providers][1]
|
624
639
|
# section of the Amazon Cognito Developer Guide.
|
625
640
|
#
|
626
641
|
#
|
627
642
|
#
|
628
|
-
# [1]:
|
643
|
+
# [1]: https://docs.aws.amazon.com/cognito/latest/developerguide/external-identity-providers.html
|
629
644
|
#
|
630
645
|
# @option params [String] :custom_role_arn
|
631
646
|
# The Amazon Resource Name (ARN) of the role to be assumed when multiple
|
@@ -768,7 +783,7 @@ module Aws::CognitoIdentity
|
|
768
783
|
# is returned by GetId. You can optionally add additional logins for the
|
769
784
|
# identity. Supplying multiple logins creates an implicit link.
|
770
785
|
#
|
771
|
-
# The
|
786
|
+
# The OpenID token is valid for 10 minutes.
|
772
787
|
#
|
773
788
|
# This is a public API. You do not need any credentials to call this
|
774
789
|
# API.
|
@@ -781,7 +796,7 @@ module Aws::CognitoIdentity
|
|
781
796
|
# tokens. When using graph.facebook.com and www.amazon.com, supply the
|
782
797
|
# access\_token returned from the provider's authflow. For
|
783
798
|
# accounts.google.com, an Amazon Cognito user pool provider, or any
|
784
|
-
# other
|
799
|
+
# other OpenID Connect provider, always include the `id_token`.
|
785
800
|
#
|
786
801
|
# @return [Types::GetOpenIdTokenResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
787
802
|
#
|
@@ -847,6 +862,10 @@ module Aws::CognitoIdentity
|
|
847
862
|
# a user. When you create an identity pool, you can specify the
|
848
863
|
# supported logins.
|
849
864
|
#
|
865
|
+
# @option params [Hash<String,String>] :principal_tags
|
866
|
+
# Use this operation to configure attribute mappings for custom
|
867
|
+
# providers.
|
868
|
+
#
|
850
869
|
# @option params [Integer] :token_duration
|
851
870
|
# The expiration time of the token, in seconds. You can specify a custom
|
852
871
|
# expiration time for the token so that you can cache it. If you don't
|
@@ -876,6 +895,9 @@ module Aws::CognitoIdentity
|
|
876
895
|
# logins: { # required
|
877
896
|
# "IdentityProviderName" => "IdentityProviderToken",
|
878
897
|
# },
|
898
|
+
# principal_tags: {
|
899
|
+
# "PrincipalTagID" => "PrincipalTagValue",
|
900
|
+
# },
|
879
901
|
# token_duration: 1,
|
880
902
|
# })
|
881
903
|
#
|
@@ -893,6 +915,47 @@ module Aws::CognitoIdentity
|
|
893
915
|
req.send_request(options)
|
894
916
|
end
|
895
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
|
+
|
896
959
|
# Lists the identities in an identity pool.
|
897
960
|
#
|
898
961
|
# You must use AWS Developer credentials to call this API.
|
@@ -961,6 +1024,8 @@ module Aws::CognitoIdentity
|
|
961
1024
|
# * {Types::ListIdentityPoolsResponse#identity_pools #identity_pools} => Array<Types::IdentityPoolShortDescription>
|
962
1025
|
# * {Types::ListIdentityPoolsResponse#next_token #next_token} => String
|
963
1026
|
#
|
1027
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1028
|
+
#
|
964
1029
|
# @example Request syntax with placeholder values
|
965
1030
|
#
|
966
1031
|
# resp = client.list_identity_pools({
|
@@ -1174,7 +1239,7 @@ module Aws::CognitoIdentity
|
|
1174
1239
|
# How users for a specific identity provider are to mapped to roles.
|
1175
1240
|
# This is a string to RoleMapping object map. The string identifies the
|
1176
1241
|
# identity provider, for example, "graph.facebook.com" or
|
1177
|
-
# "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".
|
1178
1243
|
#
|
1179
1244
|
# Up to 25 rules can be specified per identity provider.
|
1180
1245
|
#
|
@@ -1214,10 +1279,61 @@ module Aws::CognitoIdentity
|
|
1214
1279
|
req.send_request(options)
|
1215
1280
|
end
|
1216
1281
|
|
1217
|
-
#
|
1218
|
-
#
|
1219
|
-
#
|
1220
|
-
#
|
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.
|
1221
1337
|
#
|
1222
1338
|
# Each tag consists of a key and value, both of which you define. A key
|
1223
1339
|
# is a general category for more specific values. For example, if you
|
@@ -1236,8 +1352,7 @@ module Aws::CognitoIdentity
|
|
1236
1352
|
# identity pool can have as many as 50 tags.
|
1237
1353
|
#
|
1238
1354
|
# @option params [required, String] :resource_arn
|
1239
|
-
# The Amazon Resource Name (ARN) of the identity pool
|
1240
|
-
# to.
|
1355
|
+
# The Amazon Resource Name (ARN) of the identity pool.
|
1241
1356
|
#
|
1242
1357
|
# @option params [required, Hash<String,String>] :tags
|
1243
1358
|
# The tags to assign to the identity pool.
|
@@ -1341,12 +1456,11 @@ module Aws::CognitoIdentity
|
|
1341
1456
|
req.send_request(options)
|
1342
1457
|
end
|
1343
1458
|
|
1344
|
-
# Removes the specified tags from
|
1345
|
-
# 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
|
1346
1461
|
#
|
1347
1462
|
# @option params [required, String] :resource_arn
|
1348
|
-
# The Amazon Resource Name (ARN) of the identity pool
|
1349
|
-
# assigned to.
|
1463
|
+
# The Amazon Resource Name (ARN) of the identity pool.
|
1350
1464
|
#
|
1351
1465
|
# @option params [required, Array<String>] :tag_keys
|
1352
1466
|
# The keys of the tags to remove from the user pool.
|
@@ -1398,7 +1512,7 @@ module Aws::CognitoIdentity
|
|
1398
1512
|
# The "domain" by which Cognito will refer to your users.
|
1399
1513
|
#
|
1400
1514
|
# @option params [Array<String>] :open_id_connect_provider_arns
|
1401
|
-
#
|
1515
|
+
# The ARNs of the OpenID Connect providers.
|
1402
1516
|
#
|
1403
1517
|
# @option params [Array<Types::CognitoIdentityProvider>] :cognito_identity_providers
|
1404
1518
|
# A list representing an Amazon Cognito user pool and its client ID.
|
@@ -1493,7 +1607,7 @@ module Aws::CognitoIdentity
|
|
1493
1607
|
params: params,
|
1494
1608
|
config: config)
|
1495
1609
|
context[:gem_name] = 'aws-sdk-cognitoidentity'
|
1496
|
-
context[:gem_version] = '1.
|
1610
|
+
context[:gem_version] = '1.29.0'
|
1497
1611
|
Seahorse::Client::Request.new(handlers, context)
|
1498
1612
|
end
|
1499
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.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:
|
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
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.109.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.109.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|