@aws-sdk/client-account 3.787.0 → 3.796.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.
Files changed (35) hide show
  1. package/README.md +16 -0
  2. package/dist-cjs/index.js +152 -5
  3. package/dist-es/Account.js +4 -0
  4. package/dist-es/commands/GetAccountInformationCommand.js +23 -0
  5. package/dist-es/commands/PutAccountNameCommand.js +23 -0
  6. package/dist-es/commands/index.js +2 -0
  7. package/dist-es/models/models_0.js +18 -0
  8. package/dist-es/protocols/Aws_restJson1.js +71 -6
  9. package/dist-types/Account.d.ts +15 -0
  10. package/dist-types/AccountClient.d.ts +4 -2
  11. package/dist-types/commands/AcceptPrimaryEmailUpdateCommand.d.ts +5 -11
  12. package/dist-types/commands/DeleteAlternateContactCommand.d.ts +4 -15
  13. package/dist-types/commands/DisableRegionCommand.d.ts +5 -14
  14. package/dist-types/commands/EnableRegionCommand.d.ts +4 -9
  15. package/dist-types/commands/GetAccountInformationCommand.d.ts +86 -0
  16. package/dist-types/commands/GetAlternateContactCommand.d.ts +4 -15
  17. package/dist-types/commands/GetContactInformationCommand.d.ts +4 -9
  18. package/dist-types/commands/GetPrimaryEmailCommand.d.ts +3 -6
  19. package/dist-types/commands/GetRegionOptStatusCommand.d.ts +3 -6
  20. package/dist-types/commands/ListRegionsCommand.d.ts +4 -9
  21. package/dist-types/commands/PutAccountNameCommand.d.ts +83 -0
  22. package/dist-types/commands/PutAlternateContactCommand.d.ts +4 -15
  23. package/dist-types/commands/PutContactInformationCommand.d.ts +4 -9
  24. package/dist-types/commands/StartPrimaryEmailUpdateCommand.d.ts +5 -11
  25. package/dist-types/commands/index.d.ts +2 -0
  26. package/dist-types/models/models_0.d.ts +116 -278
  27. package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
  28. package/dist-types/ts3.4/Account.d.ts +35 -0
  29. package/dist-types/ts3.4/AccountClient.d.ts +12 -0
  30. package/dist-types/ts3.4/commands/GetAccountInformationCommand.d.ts +51 -0
  31. package/dist-types/ts3.4/commands/PutAccountNameCommand.d.ts +45 -0
  32. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  33. package/dist-types/ts3.4/models/models_0.d.ts +23 -0
  34. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
  35. package/package.json +5 -5
@@ -0,0 +1,83 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { AccountClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AccountClient";
4
+ import { PutAccountNameRequest } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link PutAccountNameCommand}.
14
+ */
15
+ export interface PutAccountNameCommandInput extends PutAccountNameRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link PutAccountNameCommand}.
21
+ */
22
+ export interface PutAccountNameCommandOutput extends __MetadataBearer {
23
+ }
24
+ declare const PutAccountNameCommand_base: {
25
+ new (input: PutAccountNameCommandInput): import("@smithy/smithy-client").CommandImpl<PutAccountNameCommandInput, PutAccountNameCommandOutput, AccountClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: PutAccountNameCommandInput): import("@smithy/smithy-client").CommandImpl<PutAccountNameCommandInput, PutAccountNameCommandOutput, AccountClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Updates the account name of the specified account. To use this API, IAM principals must have the <code>account:PutAccountName</code> IAM permission. </p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { AccountClient, PutAccountNameCommand } from "@aws-sdk/client-account"; // ES Modules import
35
+ * // const { AccountClient, PutAccountNameCommand } = require("@aws-sdk/client-account"); // CommonJS import
36
+ * const client = new AccountClient(config);
37
+ * const input = { // PutAccountNameRequest
38
+ * AccountName: "STRING_VALUE", // required
39
+ * AccountId: "STRING_VALUE",
40
+ * };
41
+ * const command = new PutAccountNameCommand(input);
42
+ * const response = await client.send(command);
43
+ * // {};
44
+ *
45
+ * ```
46
+ *
47
+ * @param PutAccountNameCommandInput - {@link PutAccountNameCommandInput}
48
+ * @returns {@link PutAccountNameCommandOutput}
49
+ * @see {@link PutAccountNameCommandInput} for command's `input` shape.
50
+ * @see {@link PutAccountNameCommandOutput} for command's `response` shape.
51
+ * @see {@link AccountClientResolvedConfig | config} for AccountClient's `config` shape.
52
+ *
53
+ * @throws {@link AccessDeniedException} (client fault)
54
+ * <p>The operation failed because the calling identity doesn't have the minimum required permissions.</p>
55
+ *
56
+ * @throws {@link InternalServerException} (server fault)
57
+ * <p>The operation failed because of an error internal to Amazon Web Services. Try your operation again later.</p>
58
+ *
59
+ * @throws {@link TooManyRequestsException} (client fault)
60
+ * <p>The operation failed because it was called too frequently and exceeded a throttle limit.</p>
61
+ *
62
+ * @throws {@link ValidationException} (client fault)
63
+ * <p>The operation failed because one of the input parameters was invalid.</p>
64
+ *
65
+ * @throws {@link AccountServiceException}
66
+ * <p>Base exception class for all service exceptions from Account service.</p>
67
+ *
68
+ *
69
+ * @public
70
+ */
71
+ export declare class PutAccountNameCommand extends PutAccountNameCommand_base {
72
+ /** @internal type navigation helper, not in runtime. */
73
+ protected static __types: {
74
+ api: {
75
+ input: PutAccountNameRequest;
76
+ output: {};
77
+ };
78
+ sdk: {
79
+ input: PutAccountNameCommandInput;
80
+ output: PutAccountNameCommandOutput;
81
+ };
82
+ };
83
+ }
@@ -27,15 +27,7 @@ declare const PutAlternateContactCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Modifies the specified alternate contact attached to an Amazon Web Services account.</p>
31
- * <p>For complete details about how to use the alternate contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">Access or
32
- * updating the alternate contacts</a>.</p>
33
- * <note>
34
- * <p>Before you can update the alternate contact information for an
35
- * Amazon Web Services account that is managed by Organizations, you must first enable integration between Amazon Web Services Account Management
36
- * and Organizations. For more information, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/using-orgs-trusted-access.html">Enabling trusted access for
37
- * Amazon Web Services Account Management</a>.</p>
38
- * </note>
30
+ * <p>Modifies the specified alternate contact attached to an Amazon Web Services account.</p> <p>For complete details about how to use the alternate contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">Access or updating the alternate contacts</a>.</p> <note> <p>Before you can update the alternate contact information for an Amazon Web Services account that is managed by Organizations, you must first enable integration between Amazon Web Services Account Management and Organizations. For more information, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/using-orgs-trusted-access.html">Enabling trusted access for Amazon Web Services Account Management</a>.</p> </note>
39
31
  * @example
40
32
  * Use a bare-bones client and the command you need to make an API call.
41
33
  * ```javascript
@@ -63,16 +55,13 @@ declare const PutAlternateContactCommand_base: {
63
55
  * @see {@link AccountClientResolvedConfig | config} for AccountClient's `config` shape.
64
56
  *
65
57
  * @throws {@link AccessDeniedException} (client fault)
66
- * <p>The operation failed because the calling identity doesn't have the minimum required
67
- * permissions.</p>
58
+ * <p>The operation failed because the calling identity doesn't have the minimum required permissions.</p>
68
59
  *
69
60
  * @throws {@link InternalServerException} (server fault)
70
- * <p>The operation failed because of an error internal to Amazon Web Services. Try your operation again
71
- * later.</p>
61
+ * <p>The operation failed because of an error internal to Amazon Web Services. Try your operation again later.</p>
72
62
  *
73
63
  * @throws {@link TooManyRequestsException} (client fault)
74
- * <p>The operation failed because it was called too frequently and exceeded a throttle
75
- * limit.</p>
64
+ * <p>The operation failed because it was called too frequently and exceeded a throttle limit.</p>
76
65
  *
77
66
  * @throws {@link ValidationException} (client fault)
78
67
  * <p>The operation failed because one of the input parameters was invalid.</p>
@@ -27,9 +27,7 @@ declare const PutContactInformationCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Updates the primary contact information of an Amazon Web Services account.</p>
31
- * <p>For complete details about how to use the primary contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">Update
32
- * the primary and alternate contact information</a>.</p>
30
+ * <p>Updates the primary contact information of an Amazon Web Services account.</p> <p>For complete details about how to use the primary contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">Update the primary and alternate contact information</a>.</p>
33
31
  * @example
34
32
  * Use a bare-bones client and the command you need to make an API call.
35
33
  * ```javascript
@@ -66,16 +64,13 @@ declare const PutContactInformationCommand_base: {
66
64
  * @see {@link AccountClientResolvedConfig | config} for AccountClient's `config` shape.
67
65
  *
68
66
  * @throws {@link AccessDeniedException} (client fault)
69
- * <p>The operation failed because the calling identity doesn't have the minimum required
70
- * permissions.</p>
67
+ * <p>The operation failed because the calling identity doesn't have the minimum required permissions.</p>
71
68
  *
72
69
  * @throws {@link InternalServerException} (server fault)
73
- * <p>The operation failed because of an error internal to Amazon Web Services. Try your operation again
74
- * later.</p>
70
+ * <p>The operation failed because of an error internal to Amazon Web Services. Try your operation again later.</p>
75
71
  *
76
72
  * @throws {@link TooManyRequestsException} (client fault)
77
- * <p>The operation failed because it was called too frequently and exceeded a throttle
78
- * limit.</p>
73
+ * <p>The operation failed because it was called too frequently and exceeded a throttle limit.</p>
79
74
  *
80
75
  * @throws {@link ValidationException} (client fault)
81
76
  * <p>The operation failed because one of the input parameters was invalid.</p>
@@ -27,8 +27,7 @@ declare const StartPrimaryEmailUpdateCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Starts the process to update the primary email address for the specified
31
- * account.</p>
30
+ * <p>Starts the process to update the primary email address for the specified account.</p>
32
31
  * @example
33
32
  * Use a bare-bones client and the command you need to make an API call.
34
33
  * ```javascript
@@ -54,24 +53,19 @@ declare const StartPrimaryEmailUpdateCommand_base: {
54
53
  * @see {@link AccountClientResolvedConfig | config} for AccountClient's `config` shape.
55
54
  *
56
55
  * @throws {@link AccessDeniedException} (client fault)
57
- * <p>The operation failed because the calling identity doesn't have the minimum required
58
- * permissions.</p>
56
+ * <p>The operation failed because the calling identity doesn't have the minimum required permissions.</p>
59
57
  *
60
58
  * @throws {@link ConflictException} (client fault)
61
- * <p>The request could not be processed because of a conflict in the current status of the
62
- * resource. For example, this happens if you try to enable a Region that is currently being disabled
63
- * (in a status of DISABLING).</p>
59
+ * <p>The request could not be processed because of a conflict in the current status of the resource. For example, this happens if you try to enable a Region that is currently being disabled (in a status of DISABLING) or if you try to change an account’s root user email to an email address which is already in use.</p>
64
60
  *
65
61
  * @throws {@link InternalServerException} (server fault)
66
- * <p>The operation failed because of an error internal to Amazon Web Services. Try your operation again
67
- * later.</p>
62
+ * <p>The operation failed because of an error internal to Amazon Web Services. Try your operation again later.</p>
68
63
  *
69
64
  * @throws {@link ResourceNotFoundException} (client fault)
70
65
  * <p>The operation failed because it specified a resource that can't be found.</p>
71
66
  *
72
67
  * @throws {@link TooManyRequestsException} (client fault)
73
- * <p>The operation failed because it was called too frequently and exceeded a throttle
74
- * limit.</p>
68
+ * <p>The operation failed because it was called too frequently and exceeded a throttle limit.</p>
75
69
  *
76
70
  * @throws {@link ValidationException} (client fault)
77
71
  * <p>The operation failed because one of the input parameters was invalid.</p>
@@ -2,11 +2,13 @@ export * from "./AcceptPrimaryEmailUpdateCommand";
2
2
  export * from "./DeleteAlternateContactCommand";
3
3
  export * from "./DisableRegionCommand";
4
4
  export * from "./EnableRegionCommand";
5
+ export * from "./GetAccountInformationCommand";
5
6
  export * from "./GetAlternateContactCommand";
6
7
  export * from "./GetContactInformationCommand";
7
8
  export * from "./GetPrimaryEmailCommand";
8
9
  export * from "./GetRegionOptStatusCommand";
9
10
  export * from "./ListRegionsCommand";
11
+ export * from "./PutAccountNameCommand";
10
12
  export * from "./PutAlternateContactCommand";
11
13
  export * from "./PutContactInformationCommand";
12
14
  export * from "./StartPrimaryEmailUpdateCommand";