@aws-sdk/client-cognito-identity-provider 3.1120.0 → 3.1122.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.
- package/README.md +14 -0
- package/dist-cjs/index.js +58 -1
- package/dist-es/CognitoIdentityProvider.js +4 -0
- package/dist-es/commands/DescribeTermsByClientCommand.js +4 -0
- package/dist-es/commands/GetClientTokenCommand.js +4 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/schemas/schemas_0.js +40 -0
- package/dist-types/CognitoIdentityProvider.d.ts +14 -0
- package/dist-types/CognitoIdentityProviderClient.d.ts +4 -2
- package/dist-types/commands/DescribeTermsByClientCommand.d.ts +134 -0
- package/dist-types/commands/GetClientTokenCommand.d.ts +144 -0
- package/dist-types/commands/SetUserPoolMfaConfigCommand.d.ts +2 -1
- package/dist-types/commands/SetUserSettingsCommand.d.ts +1 -1
- package/dist-types/commands/SignUpCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +122 -203
- package/dist-types/models/models_1.d.ts +204 -1
- package/dist-types/schemas/schemas_0.d.ts +7 -0
- package/dist-types/ts3.4/CognitoIdentityProvider.d.ts +34 -0
- package/dist-types/ts3.4/CognitoIdentityProviderClient.d.ts +12 -0
- package/dist-types/ts3.4/commands/DescribeTermsByClientCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetClientTokenCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/SetUserPoolMfaConfigCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/SetUserSettingsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/SignUpCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +22 -29
- package/dist-types/ts3.4/models/models_1.d.ts +36 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +7 -0
- package/package.json +1 -1
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { GetClientTokenRequest, GetClientTokenResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link GetClientTokenCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface GetClientTokenCommandInput extends GetClientTokenRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link GetClientTokenCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface GetClientTokenCommandOutput extends GetClientTokenResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const GetClientTokenCommand_base: {
|
|
22
|
+
new (input: GetClientTokenCommandInput): import("@smithy/core/client").CommandImpl<GetClientTokenCommandInput, GetClientTokenCommandOutput, import("..").CognitoIdentityProviderClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: GetClientTokenCommandInput): import("@smithy/core/client").CommandImpl<GetClientTokenCommandInput, GetClientTokenCommandOutput, import("..").CognitoIdentityProviderClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Issues an access token for machine-to-machine (M2M) authorization. Your app client
|
|
28
|
+
* provides its client ID and secret, and receives an access token that authorizes requests
|
|
29
|
+
* to your resource servers. <code>GetClientToken</code> provides the same functionality as
|
|
30
|
+
* the OAuth2 client-credentials grant; both authorize an application rather than a user.</p>
|
|
31
|
+
* <p>To use this operation, you must configure the app client with a client secret and
|
|
32
|
+
* enable the <code>ALLOW_CLIENT_TOKEN_AUTH</code> authentication flow. The
|
|
33
|
+
* <code>ALLOW_CLIENT_TOKEN_AUTH</code> flow is mutually exclusive with user authentication
|
|
34
|
+
* flows. It must be the only authentication flow that you configure for the app client. For
|
|
35
|
+
* more information, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-define-resource-servers.html">Scopes, M2M, and resource servers</a>.</p>
|
|
36
|
+
* <note>
|
|
37
|
+
* <p>Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For
|
|
38
|
+
* this operation, you can't use IAM credentials to authorize requests, and you can't
|
|
39
|
+
* grant IAM permissions in policies. For more information about authorization models in
|
|
40
|
+
* Amazon Cognito, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html">Using the Amazon Cognito user pools API and user pool endpoints</a>.</p>
|
|
41
|
+
* </note>
|
|
42
|
+
* @example
|
|
43
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
44
|
+
* ```javascript
|
|
45
|
+
* import { CognitoIdentityProviderClient, GetClientTokenCommand } from "@aws-sdk/client-cognito-identity-provider"; // ES Modules import
|
|
46
|
+
* // const { CognitoIdentityProviderClient, GetClientTokenCommand } = require("@aws-sdk/client-cognito-identity-provider"); // CommonJS import
|
|
47
|
+
* // import type { CognitoIdentityProviderClientConfig } from "@aws-sdk/client-cognito-identity-provider";
|
|
48
|
+
* const config = {}; // type is CognitoIdentityProviderClientConfig
|
|
49
|
+
* const client = new CognitoIdentityProviderClient(config);
|
|
50
|
+
* const input = { // GetClientTokenRequest
|
|
51
|
+
* ClientId: "STRING_VALUE", // required
|
|
52
|
+
* Secret: "STRING_VALUE", // required
|
|
53
|
+
* Scopes: [ // ScopeListType
|
|
54
|
+
* "STRING_VALUE",
|
|
55
|
+
* ],
|
|
56
|
+
* ClientMetadata: { // ClientMetadataType
|
|
57
|
+
* "<keys>": "STRING_VALUE",
|
|
58
|
+
* },
|
|
59
|
+
* };
|
|
60
|
+
* const command = new GetClientTokenCommand(input);
|
|
61
|
+
* const response = await client.send(command);
|
|
62
|
+
* // { // GetClientTokenResponse
|
|
63
|
+
* // ClientAuthenticationResult: { // ClientAuthenticationResultType
|
|
64
|
+
* // AccessToken: "STRING_VALUE",
|
|
65
|
+
* // ExpiresIn: Number("int"),
|
|
66
|
+
* // TokenType: "STRING_VALUE",
|
|
67
|
+
* // },
|
|
68
|
+
* // };
|
|
69
|
+
*
|
|
70
|
+
* ```
|
|
71
|
+
*
|
|
72
|
+
* @param GetClientTokenCommandInput - {@link GetClientTokenCommandInput}
|
|
73
|
+
* @returns {@link GetClientTokenCommandOutput}
|
|
74
|
+
* @see {@link GetClientTokenCommandInput} for command's `input` shape.
|
|
75
|
+
* @see {@link GetClientTokenCommandOutput} for command's `response` shape.
|
|
76
|
+
* @see {@link CognitoIdentityProviderClientResolvedConfig | config} for CognitoIdentityProviderClient's `config` shape.
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
79
|
+
* <p>This exception is thrown when WAF doesn't allow your request based on a web
|
|
80
|
+
* ACL that's associated with your user pool.</p>
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link InternalErrorException} (server fault)
|
|
83
|
+
* <p>This exception is thrown when Amazon Cognito encounters an internal error.</p>
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link InvalidParameterException} (client fault)
|
|
86
|
+
* <p>This exception is thrown when the Amazon Cognito service encounters an invalid
|
|
87
|
+
* parameter.</p>
|
|
88
|
+
*
|
|
89
|
+
* @throws {@link NotAuthorizedException} (client fault)
|
|
90
|
+
* <p>This exception is thrown when a user isn't authorized.</p>
|
|
91
|
+
*
|
|
92
|
+
* @throws {@link OperationNotEnabledException} (client fault)
|
|
93
|
+
* <p>This exception is thrown when an operation is not available in the current region or for the current user pool configuration. This can occur when attempting to perform operations that are not supported in secondary replica regions.</p>
|
|
94
|
+
*
|
|
95
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
96
|
+
* <p>This exception is thrown when the Amazon Cognito service can't find the requested
|
|
97
|
+
* resource.</p>
|
|
98
|
+
*
|
|
99
|
+
* @throws {@link TooManyRequestsException} (client fault)
|
|
100
|
+
* <p>This exception is thrown when the user has made too many requests for a given
|
|
101
|
+
* operation.</p>
|
|
102
|
+
*
|
|
103
|
+
* @throws {@link CognitoIdentityProviderServiceException}
|
|
104
|
+
* <p>Base exception class for all service exceptions from CognitoIdentityProvider service.</p>
|
|
105
|
+
*
|
|
106
|
+
*
|
|
107
|
+
* @example Example – Get an access token for machine-to-machine authorization
|
|
108
|
+
* ```javascript
|
|
109
|
+
* // The following example gets an access token for the app client 1example23456789 with the custom scope solar-system-data/asteroids.add.
|
|
110
|
+
* const input = {
|
|
111
|
+
* ClientId: "1example23456789",
|
|
112
|
+
* Scopes: [
|
|
113
|
+
* "solar-system-data/asteroids.add"
|
|
114
|
+
* ],
|
|
115
|
+
* Secret: "exampleClientSecret123EXAMPLE"
|
|
116
|
+
* };
|
|
117
|
+
* const command = new GetClientTokenCommand(input);
|
|
118
|
+
* const response = await client.send(command);
|
|
119
|
+
* /* response is
|
|
120
|
+
* {
|
|
121
|
+
* ClientAuthenticationResult: {
|
|
122
|
+
* AccessToken: "eyJra456defEXAMPLE",
|
|
123
|
+
* ExpiresIn: 3600,
|
|
124
|
+
* TokenType: "Bearer"
|
|
125
|
+
* }
|
|
126
|
+
* }
|
|
127
|
+
* *\/
|
|
128
|
+
* ```
|
|
129
|
+
*
|
|
130
|
+
* @public
|
|
131
|
+
*/
|
|
132
|
+
export declare class GetClientTokenCommand extends GetClientTokenCommand_base {
|
|
133
|
+
/** @internal type navigation helper, not in runtime. */
|
|
134
|
+
protected static __types: {
|
|
135
|
+
api: {
|
|
136
|
+
input: GetClientTokenRequest;
|
|
137
|
+
output: GetClientTokenResponse;
|
|
138
|
+
};
|
|
139
|
+
sdk: {
|
|
140
|
+
input: GetClientTokenCommandInput;
|
|
141
|
+
output: GetClientTokenCommandOutput;
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
-
import type { SetUserPoolMfaConfigRequest
|
|
2
|
+
import type { SetUserPoolMfaConfigRequest } from "../models/models_0";
|
|
3
|
+
import type { SetUserPoolMfaConfigResponse } from "../models/models_1";
|
|
3
4
|
/**
|
|
4
5
|
* @public
|
|
5
6
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
-
import type { SetUserSettingsRequest, SetUserSettingsResponse } from "../models/
|
|
2
|
+
import type { SetUserSettingsRequest, SetUserSettingsResponse } from "../models/models_1";
|
|
3
3
|
/**
|
|
4
4
|
* @public
|
|
5
5
|
*/
|
|
@@ -62,6 +62,7 @@ export * from "./DescribeManagedLoginBrandingByClientCommand";
|
|
|
62
62
|
export * from "./DescribeManagedLoginBrandingCommand";
|
|
63
63
|
export * from "./DescribeResourceServerCommand";
|
|
64
64
|
export * from "./DescribeRiskConfigurationCommand";
|
|
65
|
+
export * from "./DescribeTermsByClientCommand";
|
|
65
66
|
export * from "./DescribeTermsCommand";
|
|
66
67
|
export * from "./DescribeUserImportJobCommand";
|
|
67
68
|
export * from "./DescribeUserPoolClientCommand";
|
|
@@ -70,6 +71,7 @@ export * from "./DescribeUserPoolDomainCommand";
|
|
|
70
71
|
export * from "./ForgetDeviceCommand";
|
|
71
72
|
export * from "./ForgotPasswordCommand";
|
|
72
73
|
export * from "./GetCSVHeaderCommand";
|
|
74
|
+
export * from "./GetClientTokenCommand";
|
|
73
75
|
export * from "./GetDeviceCommand";
|
|
74
76
|
export * from "./GetGroupCommand";
|
|
75
77
|
export * from "./GetIdentityProviderByIdentifierCommand";
|
|
@@ -7722,6 +7722,38 @@ export interface DescribeTermsResponse {
|
|
|
7722
7722
|
*/
|
|
7723
7723
|
Terms?: TermsType | undefined;
|
|
7724
7724
|
}
|
|
7725
|
+
/**
|
|
7726
|
+
* @public
|
|
7727
|
+
*/
|
|
7728
|
+
export interface DescribeTermsByClientRequest {
|
|
7729
|
+
/**
|
|
7730
|
+
* <p>The ID of the app client that the terms documents are associated with.</p>
|
|
7731
|
+
* @public
|
|
7732
|
+
*/
|
|
7733
|
+
ClientId: string | undefined;
|
|
7734
|
+
/**
|
|
7735
|
+
* <p>The ID of the user pool that contains the terms documents that you want to
|
|
7736
|
+
* describe.</p>
|
|
7737
|
+
* @public
|
|
7738
|
+
*/
|
|
7739
|
+
UserPoolId: string | undefined;
|
|
7740
|
+
/**
|
|
7741
|
+
* <p>The name of the terms documents that you want to describe.</p>
|
|
7742
|
+
* @public
|
|
7743
|
+
*/
|
|
7744
|
+
TermsName: string | undefined;
|
|
7745
|
+
}
|
|
7746
|
+
/**
|
|
7747
|
+
* @public
|
|
7748
|
+
*/
|
|
7749
|
+
export interface DescribeTermsByClientResponse {
|
|
7750
|
+
/**
|
|
7751
|
+
* <p>A summary of the requested terms documents. Includes a unique identifier for later
|
|
7752
|
+
* changes to the terms documents.</p>
|
|
7753
|
+
* @public
|
|
7754
|
+
*/
|
|
7755
|
+
Terms?: TermsType | undefined;
|
|
7756
|
+
}
|
|
7725
7757
|
/**
|
|
7726
7758
|
* <p>Represents the request to describe the user import job.</p>
|
|
7727
7759
|
* @public
|
|
@@ -8015,6 +8047,96 @@ export interface ForgotPasswordResponse {
|
|
|
8015
8047
|
*/
|
|
8016
8048
|
CodeDeliveryDetails?: CodeDeliveryDetailsType | undefined;
|
|
8017
8049
|
}
|
|
8050
|
+
/**
|
|
8051
|
+
* @public
|
|
8052
|
+
*/
|
|
8053
|
+
export interface GetClientTokenRequest {
|
|
8054
|
+
/**
|
|
8055
|
+
* <p>The ID of the app client that requests the access token. The app client must have a
|
|
8056
|
+
* client secret and the <code>ALLOW_CLIENT_TOKEN_AUTH</code> authentication flow.</p>
|
|
8057
|
+
* @public
|
|
8058
|
+
*/
|
|
8059
|
+
ClientId: string | undefined;
|
|
8060
|
+
/**
|
|
8061
|
+
* <p>An active secret for the app client.</p>
|
|
8062
|
+
* @public
|
|
8063
|
+
*/
|
|
8064
|
+
Secret: string | undefined;
|
|
8065
|
+
/**
|
|
8066
|
+
* <p>The custom scopes to authorize in the access token, in the format
|
|
8067
|
+
* <code>resource-server-identifier/scope-name</code>. Each scope must belong to a
|
|
8068
|
+
* resource server in your user pool. If you don't specify any scopes, Amazon Cognito authorizes the
|
|
8069
|
+
* scopes that are configured for the app client.</p>
|
|
8070
|
+
* @public
|
|
8071
|
+
*/
|
|
8072
|
+
Scopes?: string[] | undefined;
|
|
8073
|
+
/**
|
|
8074
|
+
* <p>A map of custom key-value pairs that you can provide as input for any custom workflows
|
|
8075
|
+
* that this action triggers. You create custom workflows by assigning Lambda functions
|
|
8076
|
+
* to user pool triggers.</p>
|
|
8077
|
+
* <p>When Amazon Cognito invokes any of these functions, it passes a JSON payload, which the
|
|
8078
|
+
* function receives as input. This payload contains a <code>clientMetadata</code>
|
|
8079
|
+
* attribute that provides the data that you assigned to the ClientMetadata parameter in
|
|
8080
|
+
* your request. In your function code, you can process the <code>clientMetadata</code>
|
|
8081
|
+
* value to enhance your workflow for your specific needs.</p>
|
|
8082
|
+
* <p>To review the Lambda trigger types that Amazon Cognito invokes at runtime with API requests, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-working-with-lambda-triggers.html#lambda-triggers-by-event">
|
|
8083
|
+
* Connecting API actions to Lambda triggers</a> in the <i>Amazon Cognito Developer Guide</i>.</p>
|
|
8084
|
+
* <note>
|
|
8085
|
+
* <p>When you use the <code>ClientMetadata</code> parameter, note that Amazon Cognito won't do the
|
|
8086
|
+
* following:</p>
|
|
8087
|
+
* <ul>
|
|
8088
|
+
* <li>
|
|
8089
|
+
* <p>Store the <code>ClientMetadata</code> value. This data is available only
|
|
8090
|
+
* to Lambda triggers that are assigned to a user pool to support custom
|
|
8091
|
+
* workflows. If your user pool configuration doesn't include triggers, the
|
|
8092
|
+
* <code>ClientMetadata</code> parameter serves no purpose.</p>
|
|
8093
|
+
* </li>
|
|
8094
|
+
* <li>
|
|
8095
|
+
* <p>Validate the <code>ClientMetadata</code> value.</p>
|
|
8096
|
+
* </li>
|
|
8097
|
+
* <li>
|
|
8098
|
+
* <p>Encrypt the <code>ClientMetadata</code> value. Don't send sensitive
|
|
8099
|
+
* information in this parameter.</p>
|
|
8100
|
+
* </li>
|
|
8101
|
+
* </ul>
|
|
8102
|
+
* </note>
|
|
8103
|
+
* @public
|
|
8104
|
+
*/
|
|
8105
|
+
ClientMetadata?: Record<string, string> | undefined;
|
|
8106
|
+
}
|
|
8107
|
+
/**
|
|
8108
|
+
* <p>The access token and its metadata from a machine-to-machine (M2M) client credentials
|
|
8109
|
+
* grant.</p>
|
|
8110
|
+
* @public
|
|
8111
|
+
*/
|
|
8112
|
+
export interface ClientAuthenticationResultType {
|
|
8113
|
+
/**
|
|
8114
|
+
* <p>The access token for the requested app client. Present this token to a resource server
|
|
8115
|
+
* to authorize a request, using the scopes granted in the token.</p>
|
|
8116
|
+
* @public
|
|
8117
|
+
*/
|
|
8118
|
+
AccessToken?: string | undefined;
|
|
8119
|
+
/**
|
|
8120
|
+
* <p>The number of seconds until the access token expires.</p>
|
|
8121
|
+
* @public
|
|
8122
|
+
*/
|
|
8123
|
+
ExpiresIn?: number | undefined;
|
|
8124
|
+
/**
|
|
8125
|
+
* <p>The type of the token. For example, <code>Bearer</code>.</p>
|
|
8126
|
+
* @public
|
|
8127
|
+
*/
|
|
8128
|
+
TokenType?: string | undefined;
|
|
8129
|
+
}
|
|
8130
|
+
/**
|
|
8131
|
+
* @public
|
|
8132
|
+
*/
|
|
8133
|
+
export interface GetClientTokenResponse {
|
|
8134
|
+
/**
|
|
8135
|
+
* <p>The access token that Amazon Cognito issues for the app client, and its metadata.</p>
|
|
8136
|
+
* @public
|
|
8137
|
+
*/
|
|
8138
|
+
ClientAuthenticationResult?: ClientAuthenticationResultType | undefined;
|
|
8139
|
+
}
|
|
8018
8140
|
/**
|
|
8019
8141
|
* <p>Represents the request to get the header information of the CSV file for the user
|
|
8020
8142
|
* import job.</p>
|
|
@@ -10986,206 +11108,3 @@ export interface SetUserPoolMfaConfigRequest {
|
|
|
10986
11108
|
*/
|
|
10987
11109
|
WebAuthnConfiguration?: WebAuthnConfigurationType | undefined;
|
|
10988
11110
|
}
|
|
10989
|
-
/**
|
|
10990
|
-
* @public
|
|
10991
|
-
*/
|
|
10992
|
-
export interface SetUserPoolMfaConfigResponse {
|
|
10993
|
-
/**
|
|
10994
|
-
* <p>Shows user pool SMS message configuration for MFA and sign-in with SMS-message OTPs.
|
|
10995
|
-
* Includes the message template and the SMS message sending configuration for
|
|
10996
|
-
* Amazon SNS.</p>
|
|
10997
|
-
* @public
|
|
10998
|
-
*/
|
|
10999
|
-
SmsMfaConfiguration?: SmsMfaConfigType | undefined;
|
|
11000
|
-
/**
|
|
11001
|
-
* <p>Shows user pool configuration for time-based one-time password (TOTP) MFA. Includes
|
|
11002
|
-
* TOTP enabled or disabled state.</p>
|
|
11003
|
-
* @public
|
|
11004
|
-
*/
|
|
11005
|
-
SoftwareTokenMfaConfiguration?: SoftwareTokenMfaConfigType | undefined;
|
|
11006
|
-
/**
|
|
11007
|
-
* <p>Shows configuration for user pool email message MFA and sign-in with one-time
|
|
11008
|
-
* passwords (OTPs). Includes the subject and body of the email message template for
|
|
11009
|
-
* sign-in and MFA messages. To activate this setting, your user pool must be in the <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/feature-plans-features-essentials.html">
|
|
11010
|
-
* Essentials tier</a> or higher.</p>
|
|
11011
|
-
* @public
|
|
11012
|
-
*/
|
|
11013
|
-
EmailMfaConfiguration?: EmailMfaConfigType | undefined;
|
|
11014
|
-
/**
|
|
11015
|
-
* <p>Displays multi-factor authentication (MFA) as on, off, or optional. When
|
|
11016
|
-
* <code>ON</code>, all users must set up MFA before they can sign in. When
|
|
11017
|
-
* <code>OPTIONAL</code>, your application must make a client-side determination of
|
|
11018
|
-
* whether a user wants to register an MFA device. For user pools with adaptive
|
|
11019
|
-
* authentication with threat protection, choose <code>OPTIONAL</code>.</p>
|
|
11020
|
-
* <p>When <code>MfaConfiguration</code> is <code>OPTIONAL</code>, managed login
|
|
11021
|
-
* doesn't automatically prompt users to set up MFA. Amazon Cognito generates MFA prompts in
|
|
11022
|
-
* API responses and in managed login for users who have chosen and configured a preferred
|
|
11023
|
-
* MFA factor.</p>
|
|
11024
|
-
* @public
|
|
11025
|
-
*/
|
|
11026
|
-
MfaConfiguration?: UserPoolMfaType | undefined;
|
|
11027
|
-
/**
|
|
11028
|
-
* <p>The configuration of your user pool for passkey, or WebAuthn, sign-in with
|
|
11029
|
-
* authenticators such as biometric and security-key devices. Includes relying-party
|
|
11030
|
-
* configuration and settings for user-verification requirements.</p>
|
|
11031
|
-
* @public
|
|
11032
|
-
*/
|
|
11033
|
-
WebAuthnConfiguration?: WebAuthnConfigurationType | undefined;
|
|
11034
|
-
}
|
|
11035
|
-
/**
|
|
11036
|
-
* <p>Represents the request to set user settings.</p>
|
|
11037
|
-
* @public
|
|
11038
|
-
*/
|
|
11039
|
-
export interface SetUserSettingsRequest {
|
|
11040
|
-
/**
|
|
11041
|
-
* <p>A valid access token that Amazon Cognito issued to the currently signed-in user. Must include a scope claim for
|
|
11042
|
-
* <code>aws.cognito.signin.user.admin</code>.</p>
|
|
11043
|
-
* @public
|
|
11044
|
-
*/
|
|
11045
|
-
AccessToken: string | undefined;
|
|
11046
|
-
/**
|
|
11047
|
-
* <p>You can use this parameter only to set an SMS configuration that uses SMS for
|
|
11048
|
-
* delivery.</p>
|
|
11049
|
-
* @public
|
|
11050
|
-
*/
|
|
11051
|
-
MFAOptions: MFAOptionType[] | undefined;
|
|
11052
|
-
}
|
|
11053
|
-
/**
|
|
11054
|
-
* <p>The response from the server for a set user settings request.</p>
|
|
11055
|
-
* @public
|
|
11056
|
-
*/
|
|
11057
|
-
export interface SetUserSettingsResponse {
|
|
11058
|
-
}
|
|
11059
|
-
/**
|
|
11060
|
-
* <p>Represents the request to register a user.</p>
|
|
11061
|
-
* @public
|
|
11062
|
-
*/
|
|
11063
|
-
export interface SignUpRequest {
|
|
11064
|
-
/**
|
|
11065
|
-
* <p>The ID of the app client where the user wants to sign up.</p>
|
|
11066
|
-
* @public
|
|
11067
|
-
*/
|
|
11068
|
-
ClientId: string | undefined;
|
|
11069
|
-
/**
|
|
11070
|
-
* <p>A keyed-hash message authentication code (HMAC) calculated using the secret key of a
|
|
11071
|
-
* user pool client and username plus the client ID in the message. For more information
|
|
11072
|
-
* about <code>SecretHash</code>, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/signing-up-users-in-your-app.html#cognito-user-pools-computing-secret-hash">Computing secret hash values</a>.</p>
|
|
11073
|
-
* @public
|
|
11074
|
-
*/
|
|
11075
|
-
SecretHash?: string | undefined;
|
|
11076
|
-
/**
|
|
11077
|
-
* <p>The username of the user that you want to sign up. The value of this parameter is
|
|
11078
|
-
* typically a username, but can be any alias attribute in your user pool.</p>
|
|
11079
|
-
* @public
|
|
11080
|
-
*/
|
|
11081
|
-
Username: string | undefined;
|
|
11082
|
-
/**
|
|
11083
|
-
* <p>The user's proposed password. The password must comply with the <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/managing-users-passwords.html">password requirements</a> of your user pool.</p>
|
|
11084
|
-
* <p>Users can sign up without a password when your user pool supports passwordless sign-in
|
|
11085
|
-
* with email or SMS OTPs. To create a user with no password, omit this parameter or submit
|
|
11086
|
-
* a blank value. You can only create a passwordless user when passwordless sign-in is
|
|
11087
|
-
* available.</p>
|
|
11088
|
-
* @public
|
|
11089
|
-
*/
|
|
11090
|
-
Password?: string | undefined;
|
|
11091
|
-
/**
|
|
11092
|
-
* <p>An array of name-value pairs representing user attributes.</p>
|
|
11093
|
-
* <p>For custom attributes, include a <code>custom:</code> prefix in the attribute name,
|
|
11094
|
-
* for example <code>custom:department</code>.</p>
|
|
11095
|
-
* @public
|
|
11096
|
-
*/
|
|
11097
|
-
UserAttributes?: AttributeType[] | undefined;
|
|
11098
|
-
/**
|
|
11099
|
-
* <p>Temporary user attributes that contribute to the outcomes of your pre sign-up Lambda
|
|
11100
|
-
* trigger. This set of key-value pairs are for custom validation of information that you
|
|
11101
|
-
* collect from your users but don't need to retain.</p>
|
|
11102
|
-
* <p>Your Lambda function can analyze this additional data and act on it. Your function
|
|
11103
|
-
* can automatically confirm and verify select users or perform external API operations
|
|
11104
|
-
* like logging user attributes and validation data to Amazon CloudWatch Logs.</p>
|
|
11105
|
-
* <p>For more information about the pre sign-up Lambda trigger, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-sign-up.html">Pre sign-up Lambda trigger</a>.</p>
|
|
11106
|
-
* @public
|
|
11107
|
-
*/
|
|
11108
|
-
ValidationData?: AttributeType[] | undefined;
|
|
11109
|
-
/**
|
|
11110
|
-
* <p>Information that supports analytics outcomes with Amazon Pinpoint, including the
|
|
11111
|
-
* user's endpoint ID. The endpoint ID is a destination for Amazon Pinpoint push notifications, for example a device identifier,
|
|
11112
|
-
* email address, or phone number.</p>
|
|
11113
|
-
* @public
|
|
11114
|
-
*/
|
|
11115
|
-
AnalyticsMetadata?: AnalyticsMetadataType | undefined;
|
|
11116
|
-
/**
|
|
11117
|
-
* <p>Contextual data about your user session like the device fingerprint, IP address, or location. Amazon Cognito threat
|
|
11118
|
-
* protection evaluates the risk of an authentication event based on the context that your app generates and passes to Amazon Cognito
|
|
11119
|
-
* when it makes API requests.</p>
|
|
11120
|
-
* <p>For more information, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-viewing-threat-protection-app.html">Collecting data for threat protection in
|
|
11121
|
-
* applications</a>.</p>
|
|
11122
|
-
* @public
|
|
11123
|
-
*/
|
|
11124
|
-
UserContextData?: UserContextDataType | undefined;
|
|
11125
|
-
/**
|
|
11126
|
-
* <p>A map of custom key-value pairs that you can provide as input for any custom workflows
|
|
11127
|
-
* that this action triggers. You create custom workflows by assigning Lambda functions
|
|
11128
|
-
* to user pool triggers.</p>
|
|
11129
|
-
* <p>When Amazon Cognito invokes any of these functions, it passes a JSON payload, which the
|
|
11130
|
-
* function receives as input. This payload contains a <code>clientMetadata</code>
|
|
11131
|
-
* attribute that provides the data that you assigned to the ClientMetadata parameter in
|
|
11132
|
-
* your request. In your function code, you can process the <code>clientMetadata</code>
|
|
11133
|
-
* value to enhance your workflow for your specific needs.</p>
|
|
11134
|
-
* <p>To review the Lambda trigger types that Amazon Cognito invokes at runtime with API requests, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-working-with-lambda-triggers.html#lambda-triggers-by-event">
|
|
11135
|
-
* Connecting API actions to Lambda triggers</a> in the <i>Amazon Cognito Developer Guide</i>.</p>
|
|
11136
|
-
* <note>
|
|
11137
|
-
* <p>When you use the <code>ClientMetadata</code> parameter, note that Amazon Cognito won't do the
|
|
11138
|
-
* following:</p>
|
|
11139
|
-
* <ul>
|
|
11140
|
-
* <li>
|
|
11141
|
-
* <p>Store the <code>ClientMetadata</code> value. This data is available only
|
|
11142
|
-
* to Lambda triggers that are assigned to a user pool to support custom
|
|
11143
|
-
* workflows. If your user pool configuration doesn't include triggers, the
|
|
11144
|
-
* <code>ClientMetadata</code> parameter serves no purpose.</p>
|
|
11145
|
-
* </li>
|
|
11146
|
-
* <li>
|
|
11147
|
-
* <p>Validate the <code>ClientMetadata</code> value.</p>
|
|
11148
|
-
* </li>
|
|
11149
|
-
* <li>
|
|
11150
|
-
* <p>Encrypt the <code>ClientMetadata</code> value. Don't send sensitive
|
|
11151
|
-
* information in this parameter.</p>
|
|
11152
|
-
* </li>
|
|
11153
|
-
* </ul>
|
|
11154
|
-
* </note>
|
|
11155
|
-
* @public
|
|
11156
|
-
*/
|
|
11157
|
-
ClientMetadata?: Record<string, string> | undefined;
|
|
11158
|
-
}
|
|
11159
|
-
/**
|
|
11160
|
-
* <p>The response from the server for a registration request.</p>
|
|
11161
|
-
* @public
|
|
11162
|
-
*/
|
|
11163
|
-
export interface SignUpResponse {
|
|
11164
|
-
/**
|
|
11165
|
-
* <p>Indicates whether the user was automatically confirmed. You can auto-confirm users
|
|
11166
|
-
* with a <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-sign-up.html">pre sign-up Lambda trigger</a>.</p>
|
|
11167
|
-
* @public
|
|
11168
|
-
*/
|
|
11169
|
-
UserConfirmed: boolean | undefined;
|
|
11170
|
-
/**
|
|
11171
|
-
* <p>In user pools that automatically verify and confirm new users, Amazon Cognito sends users a
|
|
11172
|
-
* message with a code or link that confirms ownership of the phone number or email address
|
|
11173
|
-
* that they entered. The <code>CodeDeliveryDetails</code> object is information about the
|
|
11174
|
-
* delivery destination for that link or code.</p>
|
|
11175
|
-
* @public
|
|
11176
|
-
*/
|
|
11177
|
-
CodeDeliveryDetails?: CodeDeliveryDetailsType | undefined;
|
|
11178
|
-
/**
|
|
11179
|
-
* <p>The unique identifier of the new user, for example
|
|
11180
|
-
* <code>a1b2c3d4-5678-90ab-cdef-EXAMPLE11111</code>.</p>
|
|
11181
|
-
* @public
|
|
11182
|
-
*/
|
|
11183
|
-
UserSub: string | undefined;
|
|
11184
|
-
/**
|
|
11185
|
-
* <p>A session Id that you can pass to <code>ConfirmSignUp</code> when you want to
|
|
11186
|
-
* immediately sign in your user with the <code>USER_AUTH</code> flow after they complete
|
|
11187
|
-
* sign-up.</p>
|
|
11188
|
-
* @public
|
|
11189
|
-
*/
|
|
11190
|
-
Session?: string | undefined;
|
|
11191
|
-
}
|