@aws-sdk/client-cognito-identity-provider 3.864.0 → 3.872.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 +40 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +4 -0
- package/dist-cjs/index.js +361 -58
- package/dist-es/CognitoIdentityProvider.js +10 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +4 -0
- package/dist-es/commands/CreateTermsCommand.js +23 -0
- package/dist-es/commands/DeleteTermsCommand.js +22 -0
- package/dist-es/commands/DescribeTermsCommand.js +23 -0
- package/dist-es/commands/GetTokensFromRefreshTokenCommand.js +2 -1
- package/dist-es/commands/GetUICustomizationCommand.js +1 -1
- package/dist-es/commands/GetUserAttributeVerificationCodeCommand.js +1 -1
- package/dist-es/commands/GetUserCommand.js +1 -1
- package/dist-es/commands/ListTermsCommand.js +22 -0
- package/dist-es/commands/UpdateTermsCommand.js +23 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/models_0.js +34 -45
- package/dist-es/models/models_1.js +50 -1
- package/dist-es/protocols/Aws_json1_1.js +157 -2
- package/dist-types/CognitoIdentityProvider.d.ts +35 -0
- package/dist-types/CognitoIdentityProviderClient.d.ts +7 -2
- package/dist-types/commands/AdminResetUserPasswordCommand.d.ts +6 -2
- package/dist-types/commands/CreateManagedLoginBrandingCommand.d.ts +1 -1
- package/dist-types/commands/CreateTermsCommand.d.ts +151 -0
- package/dist-types/commands/DeleteTermsCommand.d.ts +113 -0
- package/dist-types/commands/DescribeTermsCommand.d.ts +123 -0
- package/dist-types/commands/ForgotPasswordCommand.d.ts +6 -3
- package/dist-types/commands/GetTokensFromRefreshTokenCommand.d.ts +2 -1
- package/dist-types/commands/GetUICustomizationCommand.d.ts +1 -1
- package/dist-types/commands/GetUserAttributeVerificationCodeCommand.d.ts +1 -1
- package/dist-types/commands/GetUserCommand.d.ts +1 -1
- package/dist-types/commands/ListTermsCommand.d.ts +121 -0
- package/dist-types/commands/UpdateAuthEventFeedbackCommand.d.ts +1 -1
- package/dist-types/commands/UpdateManagedLoginBrandingCommand.d.ts +1 -1
- package/dist-types/commands/UpdateTermsCommand.d.ts +147 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +485 -366
- package/dist-types/models/models_1.d.ts +600 -119
- package/dist-types/protocols/Aws_json1_1.d.ts +45 -0
- package/dist-types/ts3.4/CognitoIdentityProvider.d.ts +85 -0
- package/dist-types/ts3.4/CognitoIdentityProviderClient.d.ts +30 -0
- package/dist-types/ts3.4/commands/CreateTermsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/DeleteTermsCommand.d.ts +45 -0
- package/dist-types/ts3.4/commands/DescribeTermsCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/GetTokensFromRefreshTokenCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/GetUICustomizationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetUserAttributeVerificationCodeCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetUserCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListTermsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UpdateTermsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +60 -65
- package/dist-types/ts3.4/models/models_1.d.ts +98 -1
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +60 -0
- package/package.json +2 -2
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { CognitoIdentityProviderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoIdentityProviderClient";
|
|
4
|
+
import { UpdateTermsRequest, UpdateTermsResponse } from "../models/models_1";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link UpdateTermsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateTermsCommandInput extends UpdateTermsRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdateTermsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateTermsCommandOutput extends UpdateTermsResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const UpdateTermsCommand_base: {
|
|
25
|
+
new (input: UpdateTermsCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateTermsCommandInput, UpdateTermsCommandOutput, CognitoIdentityProviderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: UpdateTermsCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateTermsCommandInput, UpdateTermsCommandOutput, CognitoIdentityProviderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Modifies existing terms documents for the requested app client. When Terms and
|
|
31
|
+
* conditions and Privacy policy documents are configured, the app client displays links to
|
|
32
|
+
* them in the sign-up page of managed login for the app client.</p>
|
|
33
|
+
* <p>You can provide URLs for terms documents in the languages that are supported by <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-managed-login.html#managed-login-localization">managed login localization</a>. Amazon Cognito directs users to the terms documents for
|
|
34
|
+
* their current language, with fallback to <code>default</code> if no document exists for
|
|
35
|
+
* the language.</p>
|
|
36
|
+
* <p>Each request accepts one type of terms document and a map of language-to-link for that
|
|
37
|
+
* document type. You must provide both types of terms documents in at least one language
|
|
38
|
+
* before Amazon Cognito displays your terms documents. Supply each type in separate
|
|
39
|
+
* requests.</p>
|
|
40
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-managed-login.html#managed-login-terms-documents">Terms documents</a>.</p>
|
|
41
|
+
* <note>
|
|
42
|
+
* <p>Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For
|
|
43
|
+
* this operation, you must use IAM credentials to authorize requests, and you must
|
|
44
|
+
* grant yourself the corresponding IAM permission in a policy.</p>
|
|
45
|
+
* <p class="title">
|
|
46
|
+
* <b>Learn more</b>
|
|
47
|
+
* </p>
|
|
48
|
+
* <ul>
|
|
49
|
+
* <li>
|
|
50
|
+
* <p>
|
|
51
|
+
* <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html">Signing Amazon Web Services API Requests</a>
|
|
52
|
+
* </p>
|
|
53
|
+
* </li>
|
|
54
|
+
* <li>
|
|
55
|
+
* <p>
|
|
56
|
+
* <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>
|
|
57
|
+
* </p>
|
|
58
|
+
* </li>
|
|
59
|
+
* </ul>
|
|
60
|
+
* </note>
|
|
61
|
+
* @example
|
|
62
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
63
|
+
* ```javascript
|
|
64
|
+
* import { CognitoIdentityProviderClient, UpdateTermsCommand } from "@aws-sdk/client-cognito-identity-provider"; // ES Modules import
|
|
65
|
+
* // const { CognitoIdentityProviderClient, UpdateTermsCommand } = require("@aws-sdk/client-cognito-identity-provider"); // CommonJS import
|
|
66
|
+
* const client = new CognitoIdentityProviderClient(config);
|
|
67
|
+
* const input = { // UpdateTermsRequest
|
|
68
|
+
* TermsId: "STRING_VALUE", // required
|
|
69
|
+
* UserPoolId: "STRING_VALUE", // required
|
|
70
|
+
* TermsName: "STRING_VALUE",
|
|
71
|
+
* TermsSource: "LINK",
|
|
72
|
+
* Enforcement: "NONE",
|
|
73
|
+
* Links: { // LinksType
|
|
74
|
+
* "<keys>": "STRING_VALUE",
|
|
75
|
+
* },
|
|
76
|
+
* };
|
|
77
|
+
* const command = new UpdateTermsCommand(input);
|
|
78
|
+
* const response = await client.send(command);
|
|
79
|
+
* // { // UpdateTermsResponse
|
|
80
|
+
* // Terms: { // TermsType
|
|
81
|
+
* // TermsId: "STRING_VALUE", // required
|
|
82
|
+
* // UserPoolId: "STRING_VALUE", // required
|
|
83
|
+
* // ClientId: "STRING_VALUE", // required
|
|
84
|
+
* // TermsName: "STRING_VALUE", // required
|
|
85
|
+
* // TermsSource: "LINK", // required
|
|
86
|
+
* // Enforcement: "NONE", // required
|
|
87
|
+
* // Links: { // LinksType // required
|
|
88
|
+
* // "<keys>": "STRING_VALUE",
|
|
89
|
+
* // },
|
|
90
|
+
* // CreationDate: new Date("TIMESTAMP"), // required
|
|
91
|
+
* // LastModifiedDate: new Date("TIMESTAMP"), // required
|
|
92
|
+
* // },
|
|
93
|
+
* // };
|
|
94
|
+
*
|
|
95
|
+
* ```
|
|
96
|
+
*
|
|
97
|
+
* @param UpdateTermsCommandInput - {@link UpdateTermsCommandInput}
|
|
98
|
+
* @returns {@link UpdateTermsCommandOutput}
|
|
99
|
+
* @see {@link UpdateTermsCommandInput} for command's `input` shape.
|
|
100
|
+
* @see {@link UpdateTermsCommandOutput} for command's `response` shape.
|
|
101
|
+
* @see {@link CognitoIdentityProviderClientResolvedConfig | config} for CognitoIdentityProviderClient's `config` shape.
|
|
102
|
+
*
|
|
103
|
+
* @throws {@link ConcurrentModificationException} (client fault)
|
|
104
|
+
* <p>This exception is thrown if two or more modifications are happening
|
|
105
|
+
* concurrently.</p>
|
|
106
|
+
*
|
|
107
|
+
* @throws {@link InternalErrorException} (server fault)
|
|
108
|
+
* <p>This exception is thrown when Amazon Cognito encounters an internal error.</p>
|
|
109
|
+
*
|
|
110
|
+
* @throws {@link InvalidParameterException} (client fault)
|
|
111
|
+
* <p>This exception is thrown when the Amazon Cognito service encounters an invalid
|
|
112
|
+
* parameter.</p>
|
|
113
|
+
*
|
|
114
|
+
* @throws {@link NotAuthorizedException} (client fault)
|
|
115
|
+
* <p>This exception is thrown when a user isn't authorized.</p>
|
|
116
|
+
*
|
|
117
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
118
|
+
* <p>This exception is thrown when the Amazon Cognito service can't find the requested
|
|
119
|
+
* resource.</p>
|
|
120
|
+
*
|
|
121
|
+
* @throws {@link TermsExistsException} (client fault)
|
|
122
|
+
* <p>Terms document names must be unique to the app client. This exception is thrown when
|
|
123
|
+
* you attempt to create terms documents with a duplicate <code>TermsName</code>.</p>
|
|
124
|
+
*
|
|
125
|
+
* @throws {@link TooManyRequestsException} (client fault)
|
|
126
|
+
* <p>This exception is thrown when the user has made too many requests for a given
|
|
127
|
+
* operation.</p>
|
|
128
|
+
*
|
|
129
|
+
* @throws {@link CognitoIdentityProviderServiceException}
|
|
130
|
+
* <p>Base exception class for all service exceptions from CognitoIdentityProvider service.</p>
|
|
131
|
+
*
|
|
132
|
+
*
|
|
133
|
+
* @public
|
|
134
|
+
*/
|
|
135
|
+
export declare class UpdateTermsCommand extends UpdateTermsCommand_base {
|
|
136
|
+
/** @internal type navigation helper, not in runtime. */
|
|
137
|
+
protected static __types: {
|
|
138
|
+
api: {
|
|
139
|
+
input: UpdateTermsRequest;
|
|
140
|
+
output: UpdateTermsResponse;
|
|
141
|
+
};
|
|
142
|
+
sdk: {
|
|
143
|
+
input: UpdateTermsCommandInput;
|
|
144
|
+
output: UpdateTermsCommandOutput;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
}
|
|
@@ -35,6 +35,7 @@ export * from "./CreateGroupCommand";
|
|
|
35
35
|
export * from "./CreateIdentityProviderCommand";
|
|
36
36
|
export * from "./CreateManagedLoginBrandingCommand";
|
|
37
37
|
export * from "./CreateResourceServerCommand";
|
|
38
|
+
export * from "./CreateTermsCommand";
|
|
38
39
|
export * from "./CreateUserImportJobCommand";
|
|
39
40
|
export * from "./CreateUserPoolClientCommand";
|
|
40
41
|
export * from "./CreateUserPoolCommand";
|
|
@@ -43,6 +44,7 @@ export * from "./DeleteGroupCommand";
|
|
|
43
44
|
export * from "./DeleteIdentityProviderCommand";
|
|
44
45
|
export * from "./DeleteManagedLoginBrandingCommand";
|
|
45
46
|
export * from "./DeleteResourceServerCommand";
|
|
47
|
+
export * from "./DeleteTermsCommand";
|
|
46
48
|
export * from "./DeleteUserAttributesCommand";
|
|
47
49
|
export * from "./DeleteUserCommand";
|
|
48
50
|
export * from "./DeleteUserPoolClientCommand";
|
|
@@ -54,6 +56,7 @@ export * from "./DescribeManagedLoginBrandingByClientCommand";
|
|
|
54
56
|
export * from "./DescribeManagedLoginBrandingCommand";
|
|
55
57
|
export * from "./DescribeResourceServerCommand";
|
|
56
58
|
export * from "./DescribeRiskConfigurationCommand";
|
|
59
|
+
export * from "./DescribeTermsCommand";
|
|
57
60
|
export * from "./DescribeUserImportJobCommand";
|
|
58
61
|
export * from "./DescribeUserPoolClientCommand";
|
|
59
62
|
export * from "./DescribeUserPoolCommand";
|
|
@@ -79,6 +82,7 @@ export * from "./ListGroupsCommand";
|
|
|
79
82
|
export * from "./ListIdentityProvidersCommand";
|
|
80
83
|
export * from "./ListResourceServersCommand";
|
|
81
84
|
export * from "./ListTagsForResourceCommand";
|
|
85
|
+
export * from "./ListTermsCommand";
|
|
82
86
|
export * from "./ListUserImportJobsCommand";
|
|
83
87
|
export * from "./ListUserPoolClientsCommand";
|
|
84
88
|
export * from "./ListUserPoolsCommand";
|
|
@@ -106,6 +110,7 @@ export * from "./UpdateGroupCommand";
|
|
|
106
110
|
export * from "./UpdateIdentityProviderCommand";
|
|
107
111
|
export * from "./UpdateManagedLoginBrandingCommand";
|
|
108
112
|
export * from "./UpdateResourceServerCommand";
|
|
113
|
+
export * from "./UpdateTermsCommand";
|
|
109
114
|
export * from "./UpdateUserAttributesCommand";
|
|
110
115
|
export * from "./UpdateUserPoolClientCommand";
|
|
111
116
|
export * from "./UpdateUserPoolCommand";
|