@aws-sdk/client-organizations 3.81.0 → 3.82.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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.82.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.81.0...v3.82.0) (2022-05-02)
7
+
8
+
9
+ ### Features
10
+
11
+ * **client-organizations:** This release adds the INVALID_PAYMENT_INSTRUMENT as a fail reason and an error message. ([00e2222](https://github.com/aws/aws-sdk-js-v3/commit/00e22229adff429913d23f77eebd75e30e0478e2))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.81.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.80.0...v3.81.0) (2022-04-29)
7
18
 
8
19
  **Note:** Version bump only for package @aws-sdk/client-organizations
@@ -379,6 +379,7 @@ var ConstraintViolationExceptionReason;
379
379
  ConstraintViolationExceptionReason["DELEGATED_ADMINISTRATOR_EXISTS_FOR_THIS_SERVICE"] = "DELEGATED_ADMINISTRATOR_EXISTS_FOR_THIS_SERVICE";
380
380
  ConstraintViolationExceptionReason["EMAIL_VERIFICATION_CODE_EXPIRED"] = "EMAIL_VERIFICATION_CODE_EXPIRED";
381
381
  ConstraintViolationExceptionReason["HANDSHAKE_RATE_LIMIT_EXCEEDED"] = "HANDSHAKE_RATE_LIMIT_EXCEEDED";
382
+ ConstraintViolationExceptionReason["INVALID_PAYMENT_INSTRUMENT"] = "INVALID_PAYMENT_INSTRUMENT";
382
383
  ConstraintViolationExceptionReason["MASTER_ACCOUNT_ADDRESS_DOES_NOT_MATCH_MARKETPLACE"] = "MASTER_ACCOUNT_ADDRESS_DOES_NOT_MATCH_MARKETPLACE";
383
384
  ConstraintViolationExceptionReason["MASTER_ACCOUNT_MISSING_BUSINESS_LICENSE"] = "MASTER_ACCOUNT_MISSING_BUSINESS_LICENSE";
384
385
  ConstraintViolationExceptionReason["MASTER_ACCOUNT_MISSING_CONTACT_INFO"] = "MASTER_ACCOUNT_MISSING_CONTACT_INFO";
@@ -553,6 +554,7 @@ var CreateAccountFailureReason;
553
554
  CreateAccountFailureReason["INVALID_ADDRESS"] = "INVALID_ADDRESS";
554
555
  CreateAccountFailureReason["INVALID_EMAIL"] = "INVALID_EMAIL";
555
556
  CreateAccountFailureReason["INVALID_IDENTITY_FOR_BUSINESS_VALIDATION"] = "INVALID_IDENTITY_FOR_BUSINESS_VALIDATION";
557
+ CreateAccountFailureReason["INVALID_PAYMENT_INSTRUMENT"] = "INVALID_PAYMENT_INSTRUMENT";
556
558
  CreateAccountFailureReason["MISSING_BUSINESS_VALIDATION"] = "MISSING_BUSINESS_VALIDATION";
557
559
  CreateAccountFailureReason["MISSING_PAYMENT_INSTRUMENT"] = "MISSING_PAYMENT_INSTRUMENT";
558
560
  CreateAccountFailureReason["PENDING_BUSINESS_VALIDATIONv"] = "PENDING_BUSINESS_VALIDATION";
@@ -346,6 +346,7 @@ export var ConstraintViolationExceptionReason;
346
346
  ConstraintViolationExceptionReason["DELEGATED_ADMINISTRATOR_EXISTS_FOR_THIS_SERVICE"] = "DELEGATED_ADMINISTRATOR_EXISTS_FOR_THIS_SERVICE";
347
347
  ConstraintViolationExceptionReason["EMAIL_VERIFICATION_CODE_EXPIRED"] = "EMAIL_VERIFICATION_CODE_EXPIRED";
348
348
  ConstraintViolationExceptionReason["HANDSHAKE_RATE_LIMIT_EXCEEDED"] = "HANDSHAKE_RATE_LIMIT_EXCEEDED";
349
+ ConstraintViolationExceptionReason["INVALID_PAYMENT_INSTRUMENT"] = "INVALID_PAYMENT_INSTRUMENT";
349
350
  ConstraintViolationExceptionReason["MASTER_ACCOUNT_ADDRESS_DOES_NOT_MATCH_MARKETPLACE"] = "MASTER_ACCOUNT_ADDRESS_DOES_NOT_MATCH_MARKETPLACE";
350
351
  ConstraintViolationExceptionReason["MASTER_ACCOUNT_MISSING_BUSINESS_LICENSE"] = "MASTER_ACCOUNT_MISSING_BUSINESS_LICENSE";
351
352
  ConstraintViolationExceptionReason["MASTER_ACCOUNT_MISSING_CONTACT_INFO"] = "MASTER_ACCOUNT_MISSING_CONTACT_INFO";
@@ -502,6 +503,7 @@ export var CreateAccountFailureReason;
502
503
  CreateAccountFailureReason["INVALID_ADDRESS"] = "INVALID_ADDRESS";
503
504
  CreateAccountFailureReason["INVALID_EMAIL"] = "INVALID_EMAIL";
504
505
  CreateAccountFailureReason["INVALID_IDENTITY_FOR_BUSINESS_VALIDATION"] = "INVALID_IDENTITY_FOR_BUSINESS_VALIDATION";
506
+ CreateAccountFailureReason["INVALID_PAYMENT_INSTRUMENT"] = "INVALID_PAYMENT_INSTRUMENT";
505
507
  CreateAccountFailureReason["MISSING_BUSINESS_VALIDATION"] = "MISSING_BUSINESS_VALIDATION";
506
508
  CreateAccountFailureReason["MISSING_PAYMENT_INSTRUMENT"] = "MISSING_PAYMENT_INSTRUMENT";
507
509
  CreateAccountFailureReason["PENDING_BUSINESS_VALIDATIONv"] = "PENDING_BUSINESS_VALIDATION";
@@ -206,7 +206,53 @@ export declare class Organizations extends OrganizationsClient {
206
206
  cancelHandshake(args: CancelHandshakeCommandInput, cb: (err: any, data?: CancelHandshakeCommandOutput) => void): void;
207
207
  cancelHandshake(args: CancelHandshakeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CancelHandshakeCommandOutput) => void): void;
208
208
  /**
209
- * <p>Closes an Amazon Web Services account that is now a part of an Organizations, either created within the organization, or invited to join the organization.</p>
209
+ * <p>Closes an Amazon Web Services member account within an organization. You can't close the management
210
+ * account with this API. This is an asynchronous request that Amazon Web Services performs in the
211
+ * background. Because <code>CloseAccount</code> operates asynchronously, it can return a
212
+ * successful completion message even though account closure might still be in progress.
213
+ * You need to wait a few minutes before the account is fully closed. To check the status
214
+ * of the request, do one of the following:</p>
215
+ * <ul>
216
+ * <li>
217
+ * <p>Use the <code>AccountId</code> that you sent in the <code>CloseAccount</code>
218
+ * request to provide as a parameter to the <a>DescribeAccount</a>
219
+ * operation. </p>
220
+ * <p>While the close account request is in progress, Account status will indicate
221
+ * PENDING_CLOSURE. When the close account request completes, the status will
222
+ * change to SUSPENDED. </p>
223
+ * </li>
224
+ * <li>
225
+ * <p>Check the CloudTrail log for the <code>CloseAccountResult</code> event that gets
226
+ * published after the account closes successfully. For information on using CloudTrail
227
+ * with Organizations, see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_security_incident-response.html#orgs_cloudtrail-integration">Logging and monitoring in Organizations</a> in the
228
+ * <i>Organizations User Guide.</i>
229
+ * </p>
230
+ * </li>
231
+ * </ul>
232
+ * <note>
233
+ * <ul>
234
+ * <li>
235
+ * <p>You can only close 10% of active member accounts within a rolling 30 day
236
+ * period. This quota is not bound by a calendar month, but starts when you
237
+ * close an account. Within 30 days of that initial account closure, you can't
238
+ * exceed the 10% account closure limit.</p>
239
+ * </li>
240
+ * <li>
241
+ * <p>To reinstate a closed account, contact Amazon Web Services Support within the 90-day
242
+ * grace period while the account is in SUSPENDED status. </p>
243
+ * </li>
244
+ * <li>
245
+ * <p>If the Amazon Web Services account you attempt to close is linked to an Amazon Web Services GovCloud (US)
246
+ * account, the <code>CloseAccount</code> request will close both accounts. To
247
+ * learn important pre-closure details, see <a href="https://docs.aws.amazon.com/govcloud-us/latest/UserGuide/Closing-govcloud-account.html">
248
+ * Closing an Amazon Web Services GovCloud (US) account</a> in the <i>
249
+ * Amazon Web Services GovCloud User Guide</i>.</p>
250
+ * </li>
251
+ * </ul>
252
+ * </note>
253
+ * <p>For more information about closing accounts, see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_close.html">Closing an
254
+ * Amazon Web Services account</a> in the <i>Organizations User Guide.</i>
255
+ * </p>
210
256
  */
211
257
  closeAccount(args: CloseAccountCommandInput, options?: __HttpHandlerOptions): Promise<CloseAccountCommandOutput>;
212
258
  closeAccount(args: CloseAccountCommandInput, cb: (err: any, data?: CloseAccountCommandOutput) => void): void;
@@ -7,7 +7,53 @@ export interface CloseAccountCommandInput extends CloseAccountRequest {
7
7
  export interface CloseAccountCommandOutput extends __MetadataBearer {
8
8
  }
9
9
  /**
10
- * <p>Closes an Amazon Web Services account that is now a part of an Organizations, either created within the organization, or invited to join the organization.</p>
10
+ * <p>Closes an Amazon Web Services member account within an organization. You can't close the management
11
+ * account with this API. This is an asynchronous request that Amazon Web Services performs in the
12
+ * background. Because <code>CloseAccount</code> operates asynchronously, it can return a
13
+ * successful completion message even though account closure might still be in progress.
14
+ * You need to wait a few minutes before the account is fully closed. To check the status
15
+ * of the request, do one of the following:</p>
16
+ * <ul>
17
+ * <li>
18
+ * <p>Use the <code>AccountId</code> that you sent in the <code>CloseAccount</code>
19
+ * request to provide as a parameter to the <a>DescribeAccount</a>
20
+ * operation. </p>
21
+ * <p>While the close account request is in progress, Account status will indicate
22
+ * PENDING_CLOSURE. When the close account request completes, the status will
23
+ * change to SUSPENDED. </p>
24
+ * </li>
25
+ * <li>
26
+ * <p>Check the CloudTrail log for the <code>CloseAccountResult</code> event that gets
27
+ * published after the account closes successfully. For information on using CloudTrail
28
+ * with Organizations, see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_security_incident-response.html#orgs_cloudtrail-integration">Logging and monitoring in Organizations</a> in the
29
+ * <i>Organizations User Guide.</i>
30
+ * </p>
31
+ * </li>
32
+ * </ul>
33
+ * <note>
34
+ * <ul>
35
+ * <li>
36
+ * <p>You can only close 10% of active member accounts within a rolling 30 day
37
+ * period. This quota is not bound by a calendar month, but starts when you
38
+ * close an account. Within 30 days of that initial account closure, you can't
39
+ * exceed the 10% account closure limit.</p>
40
+ * </li>
41
+ * <li>
42
+ * <p>To reinstate a closed account, contact Amazon Web Services Support within the 90-day
43
+ * grace period while the account is in SUSPENDED status. </p>
44
+ * </li>
45
+ * <li>
46
+ * <p>If the Amazon Web Services account you attempt to close is linked to an Amazon Web Services GovCloud (US)
47
+ * account, the <code>CloseAccount</code> request will close both accounts. To
48
+ * learn important pre-closure details, see <a href="https://docs.aws.amazon.com/govcloud-us/latest/UserGuide/Closing-govcloud-account.html">
49
+ * Closing an Amazon Web Services GovCloud (US) account</a> in the <i>
50
+ * Amazon Web Services GovCloud User Guide</i>.</p>
51
+ * </li>
52
+ * </ul>
53
+ * </note>
54
+ * <p>For more information about closing accounts, see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_close.html">Closing an
55
+ * Amazon Web Services account</a> in the <i>Organizations User Guide.</i>
56
+ * </p>
11
57
  * @example
12
58
  * Use a bare-bones client and the command you need to make an API call.
13
59
  * ```javascript
@@ -609,6 +609,7 @@ export declare enum ConstraintViolationExceptionReason {
609
609
  DELEGATED_ADMINISTRATOR_EXISTS_FOR_THIS_SERVICE = "DELEGATED_ADMINISTRATOR_EXISTS_FOR_THIS_SERVICE",
610
610
  EMAIL_VERIFICATION_CODE_EXPIRED = "EMAIL_VERIFICATION_CODE_EXPIRED",
611
611
  HANDSHAKE_RATE_LIMIT_EXCEEDED = "HANDSHAKE_RATE_LIMIT_EXCEEDED",
612
+ INVALID_PAYMENT_INSTRUMENT = "INVALID_PAYMENT_INSTRUMENT",
612
613
  MASTER_ACCOUNT_ADDRESS_DOES_NOT_MATCH_MARKETPLACE = "MASTER_ACCOUNT_ADDRESS_DOES_NOT_MATCH_MARKETPLACE",
613
614
  MASTER_ACCOUNT_MISSING_BUSINESS_LICENSE = "MASTER_ACCOUNT_MISSING_BUSINESS_LICENSE",
614
615
  MASTER_ACCOUNT_MISSING_CONTACT_INFO = "MASTER_ACCOUNT_MISSING_CONTACT_INFO",
@@ -680,12 +681,26 @@ export declare enum ConstraintViolationExceptionReason {
680
681
  * delegated administrator.</p>
681
682
  * </li>
682
683
  * <li>
684
+ * <p>CANNOT_CLOSE_MANAGEMENT_ACCOUNT: You attempted to close the management
685
+ * account. To close the management account for the organization, you must first
686
+ * either remove or close all member accounts in the organization. Follow standard
687
+ * account closure process using root credentials.​ </p>
688
+ * </li>
689
+ * <li>
683
690
  * <p>CANNOT_REMOVE_DELEGATED_ADMINISTRATOR_FROM_ORG: You attempted to remove an
684
691
  * account that is registered as a delegated administrator for a service integrated
685
692
  * with your organization. To complete this operation, you must first deregister
686
693
  * this account as a delegated administrator. </p>
687
694
  * </li>
688
695
  * <li>
696
+ * <p>CLOSE_ACCOUNT_QUOTA_EXCEEDED: You have exceeded close account quota for the
697
+ * past 30 days. </p>
698
+ * </li>
699
+ * <li>
700
+ * <p>CLOSE_ACCOUNT_REQUESTS_LIMIT_EXCEEDED: You attempted to exceed the number of
701
+ * accounts that you can close at a time. ​ </p>
702
+ * </li>
703
+ * <li>
689
704
  * <p>CREATE_ORGANIZATION_IN_BILLING_MODE_UNSUPPORTED_REGION: To create an
690
705
  * organization in the specified region, you must enable all features mode.</p>
691
706
  * </li>
@@ -705,6 +720,13 @@ export declare enum ConstraintViolationExceptionReason {
705
720
  * handshakes that you can send in one day.</p>
706
721
  * </li>
707
722
  * <li>
723
+ * <p>INVALID_PAYMENT_INSTRUMENT: You cannot remove an account because no supported
724
+ * payment method is associated with the account. Amazon Web Services does not support cards
725
+ * issued by financial institutions in Russia or Belarus. For more information, see
726
+ * <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/manage-general.html">Managing your
727
+ * Amazon Web Services payments</a>.</p>
728
+ * </li>
729
+ * <li>
708
730
  * <p>MASTER_ACCOUNT_ADDRESS_DOES_NOT_MATCH_MARKETPLACE: To create an account in
709
731
  * this organization, you first must migrate the organization's management account
710
732
  * to the marketplace that corresponds to the management account's address. For
@@ -787,8 +809,8 @@ export declare enum ConstraintViolationExceptionReason {
787
809
  * </li>
788
810
  * <li>
789
811
  * <p>SERVICE_ACCESS_NOT_ENABLED: You attempted to register a delegated
790
- * administrator before you enabled service access. Call the <code>EnableAWSServiceAccess</code> API
791
- * first.</p>
812
+ * administrator before you enabled service access. Call the
813
+ * <code>EnableAWSServiceAccess</code> API first.</p>
792
814
  * </li>
793
815
  * <li>
794
816
  * <p>TAG_POLICY_VIOLATION: You attempted to create or update a resource with tags
@@ -906,7 +928,8 @@ export declare namespace CancelHandshakeRequest {
906
928
  }
907
929
  export interface CloseAccountRequest {
908
930
  /**
909
- * <p>Retrieves the Amazon Web Services account Id for the current <code>CloseAccount</code> API request. </p>
931
+ * <p>Retrieves the Amazon Web Services account Id for the current <code>CloseAccount</code> API request.
932
+ * </p>
910
933
  */
911
934
  AccountId: string | undefined;
912
935
  }
@@ -917,7 +940,8 @@ export declare namespace CloseAccountRequest {
917
940
  const filterSensitiveLog: (obj: CloseAccountRequest) => any;
918
941
  }
919
942
  /**
920
- * <p>The request failed because it conflicts with the current state of the specified resource.</p>
943
+ * <p>The request failed because it conflicts with the current state of the specified
944
+ * resource.</p>
921
945
  */
922
946
  export declare class ConflictException extends __BaseException {
923
947
  readonly name: "ConflictException";
@@ -1081,6 +1105,7 @@ export declare enum CreateAccountFailureReason {
1081
1105
  INVALID_ADDRESS = "INVALID_ADDRESS",
1082
1106
  INVALID_EMAIL = "INVALID_EMAIL",
1083
1107
  INVALID_IDENTITY_FOR_BUSINESS_VALIDATION = "INVALID_IDENTITY_FOR_BUSINESS_VALIDATION",
1108
+ INVALID_PAYMENT_INSTRUMENT = "INVALID_PAYMENT_INSTRUMENT",
1084
1109
  MISSING_BUSINESS_VALIDATION = "MISSING_BUSINESS_VALIDATION",
1085
1110
  MISSING_PAYMENT_INSTRUMENT = "MISSING_PAYMENT_INSTRUMENT",
1086
1111
  PENDING_BUSINESS_VALIDATIONv = "PENDING_BUSINESS_VALIDATION",
@@ -1170,6 +1195,13 @@ export interface CreateAccountStatus {
1170
1195
  * provided is not valid.</p>
1171
1196
  * </li>
1172
1197
  * <li>
1198
+ * <p>INVALID_PAYMENT_INSTRUMENT: The Amazon Web Services account that owns your organization does
1199
+ * not have a supported payment method associated with the account. Amazon Web Services does not
1200
+ * support cards issued by financial institutions in Russia or Belarus. For more
1201
+ * information, see <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/manage-general.html">Managing your
1202
+ * Amazon Web Services payments</a>.</p>
1203
+ * </li>
1204
+ * <li>
1173
1205
  * <p>INTERNAL_FAILURE: The account could not be created because of an internal
1174
1206
  * failure. Try again later. If the problem persists, contact Amazon Web Services Customer
1175
1207
  * Support.</p>
@@ -1276,7 +1308,9 @@ export interface CreateGovCloudAccountRequest {
1276
1308
  */
1277
1309
  Email: string | undefined;
1278
1310
  /**
1279
- * <p>The friendly name of the member account.</p>
1311
+ * <p>The friendly name of the member account. </p>
1312
+ * <p>The account name can consist of only the characters [a-z],[A-Z],[0-9], hyphen (-), or
1313
+ * dot (.) You can't separate characters with a dash (–).</p>
1280
1314
  */
1281
1315
  AccountName: string | undefined;
1282
1316
  /**
@@ -284,6 +284,7 @@ export declare enum ConstraintViolationExceptionReason {
284
284
  DELEGATED_ADMINISTRATOR_EXISTS_FOR_THIS_SERVICE = "DELEGATED_ADMINISTRATOR_EXISTS_FOR_THIS_SERVICE",
285
285
  EMAIL_VERIFICATION_CODE_EXPIRED = "EMAIL_VERIFICATION_CODE_EXPIRED",
286
286
  HANDSHAKE_RATE_LIMIT_EXCEEDED = "HANDSHAKE_RATE_LIMIT_EXCEEDED",
287
+ INVALID_PAYMENT_INSTRUMENT = "INVALID_PAYMENT_INSTRUMENT",
287
288
  MASTER_ACCOUNT_ADDRESS_DOES_NOT_MATCH_MARKETPLACE = "MASTER_ACCOUNT_ADDRESS_DOES_NOT_MATCH_MARKETPLACE",
288
289
  MASTER_ACCOUNT_MISSING_BUSINESS_LICENSE = "MASTER_ACCOUNT_MISSING_BUSINESS_LICENSE",
289
290
  MASTER_ACCOUNT_MISSING_CONTACT_INFO = "MASTER_ACCOUNT_MISSING_CONTACT_INFO",
@@ -425,6 +426,7 @@ export declare enum CreateAccountFailureReason {
425
426
  INVALID_ADDRESS = "INVALID_ADDRESS",
426
427
  INVALID_EMAIL = "INVALID_EMAIL",
427
428
  INVALID_IDENTITY_FOR_BUSINESS_VALIDATION = "INVALID_IDENTITY_FOR_BUSINESS_VALIDATION",
429
+ INVALID_PAYMENT_INSTRUMENT = "INVALID_PAYMENT_INSTRUMENT",
428
430
  MISSING_BUSINESS_VALIDATION = "MISSING_BUSINESS_VALIDATION",
429
431
  MISSING_PAYMENT_INSTRUMENT = "MISSING_PAYMENT_INSTRUMENT",
430
432
  PENDING_BUSINESS_VALIDATIONv = "PENDING_BUSINESS_VALIDATION",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-organizations",
3
3
  "description": "AWS SDK for JavaScript Organizations Client for Node.js, Browser and React Native",
4
- "version": "3.81.0",
4
+ "version": "3.82.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,9 +18,9 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.81.0",
21
+ "@aws-sdk/client-sts": "3.82.0",
22
22
  "@aws-sdk/config-resolver": "3.80.0",
23
- "@aws-sdk/credential-provider-node": "3.81.0",
23
+ "@aws-sdk/credential-provider-node": "3.82.0",
24
24
  "@aws-sdk/fetch-http-handler": "3.78.0",
25
25
  "@aws-sdk/hash-node": "3.78.0",
26
26
  "@aws-sdk/invalid-dependency": "3.78.0",
@@ -33,7 +33,7 @@
33
33
  "@aws-sdk/middleware-stack": "3.78.0",
34
34
  "@aws-sdk/middleware-user-agent": "3.78.0",
35
35
  "@aws-sdk/node-config-provider": "3.80.0",
36
- "@aws-sdk/node-http-handler": "3.78.0",
36
+ "@aws-sdk/node-http-handler": "3.82.0",
37
37
  "@aws-sdk/protocol-http": "3.78.0",
38
38
  "@aws-sdk/smithy-client": "3.78.0",
39
39
  "@aws-sdk/types": "3.78.0",