@aws-sdk/client-account 3.267.0 → 3.271.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 (64) hide show
  1. package/dist-cjs/Account.js +60 -0
  2. package/dist-cjs/commands/DisableRegionCommand.js +46 -0
  3. package/dist-cjs/commands/EnableRegionCommand.js +46 -0
  4. package/dist-cjs/commands/GetRegionOptStatusCommand.js +46 -0
  5. package/dist-cjs/commands/ListRegionsCommand.js +46 -0
  6. package/dist-cjs/commands/index.js +4 -0
  7. package/dist-cjs/endpoint/ruleset.js +3 -3
  8. package/dist-cjs/index.js +1 -0
  9. package/dist-cjs/models/models_0.js +62 -1
  10. package/dist-cjs/pagination/Interfaces.js +2 -0
  11. package/dist-cjs/pagination/ListRegionsPaginator.js +36 -0
  12. package/dist-cjs/pagination/index.js +5 -0
  13. package/dist-cjs/protocols/Aws_restJson1.js +330 -1
  14. package/dist-es/Account.js +60 -0
  15. package/dist-es/commands/DisableRegionCommand.js +42 -0
  16. package/dist-es/commands/EnableRegionCommand.js +42 -0
  17. package/dist-es/commands/GetRegionOptStatusCommand.js +42 -0
  18. package/dist-es/commands/ListRegionsCommand.js +42 -0
  19. package/dist-es/commands/index.js +4 -0
  20. package/dist-es/endpoint/ruleset.js +3 -3
  21. package/dist-es/index.js +1 -0
  22. package/dist-es/models/models_0.js +52 -0
  23. package/dist-es/pagination/Interfaces.js +1 -0
  24. package/dist-es/pagination/ListRegionsPaginator.js +32 -0
  25. package/dist-es/pagination/index.js +2 -0
  26. package/dist-es/protocols/Aws_restJson1.js +322 -1
  27. package/dist-types/Account.d.ts +38 -8
  28. package/dist-types/AccountClient.d.ts +21 -17
  29. package/dist-types/commands/DeleteAlternateContactCommand.d.ts +2 -2
  30. package/dist-types/commands/DisableRegionCommand.d.ts +37 -0
  31. package/dist-types/commands/EnableRegionCommand.d.ts +37 -0
  32. package/dist-types/commands/GetAlternateContactCommand.d.ts +2 -2
  33. package/dist-types/commands/GetContactInformationCommand.d.ts +1 -1
  34. package/dist-types/commands/GetRegionOptStatusCommand.d.ts +37 -0
  35. package/dist-types/commands/ListRegionsCommand.d.ts +39 -0
  36. package/dist-types/commands/PutAlternateContactCommand.d.ts +2 -2
  37. package/dist-types/commands/PutContactInformationCommand.d.ts +1 -1
  38. package/dist-types/commands/index.d.ts +4 -0
  39. package/dist-types/index.d.ts +1 -0
  40. package/dist-types/models/models_0.d.ts +259 -6
  41. package/dist-types/pagination/Interfaces.d.ts +6 -0
  42. package/dist-types/pagination/ListRegionsPaginator.d.ts +4 -0
  43. package/dist-types/pagination/index.d.ts +2 -0
  44. package/dist-types/protocols/Aws_restJson1.d.ts +12 -0
  45. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  46. package/dist-types/runtimeConfig.d.ts +1 -1
  47. package/dist-types/runtimeConfig.native.d.ts +4 -4
  48. package/dist-types/ts3.4/Account.d.ts +68 -0
  49. package/dist-types/ts3.4/AccountClient.d.ts +28 -4
  50. package/dist-types/ts3.4/commands/DisableRegionCommand.d.ts +32 -0
  51. package/dist-types/ts3.4/commands/EnableRegionCommand.d.ts +32 -0
  52. package/dist-types/ts3.4/commands/GetRegionOptStatusCommand.d.ts +38 -0
  53. package/dist-types/ts3.4/commands/ListRegionsCommand.d.ts +34 -0
  54. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  55. package/dist-types/ts3.4/index.d.ts +1 -0
  56. package/dist-types/ts3.4/models/models_0.d.ts +74 -0
  57. package/dist-types/ts3.4/pagination/Interfaces.d.ts +7 -0
  58. package/dist-types/ts3.4/pagination/ListRegionsPaginator.d.ts +11 -0
  59. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  60. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +48 -0
  61. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  62. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  63. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -4
  64. package/package.json +29 -29
@@ -8,13 +8,17 @@ import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
8
8
  import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
9
9
  import { BodyLengthCalculator as __BodyLengthCalculator, ChecksumConstructor as __ChecksumConstructor, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
10
10
  import { DeleteAlternateContactCommandInput, DeleteAlternateContactCommandOutput } from "./commands/DeleteAlternateContactCommand";
11
+ import { DisableRegionCommandInput, DisableRegionCommandOutput } from "./commands/DisableRegionCommand";
12
+ import { EnableRegionCommandInput, EnableRegionCommandOutput } from "./commands/EnableRegionCommand";
11
13
  import { GetAlternateContactCommandInput, GetAlternateContactCommandOutput } from "./commands/GetAlternateContactCommand";
12
14
  import { GetContactInformationCommandInput, GetContactInformationCommandOutput } from "./commands/GetContactInformationCommand";
15
+ import { GetRegionOptStatusCommandInput, GetRegionOptStatusCommandOutput } from "./commands/GetRegionOptStatusCommand";
16
+ import { ListRegionsCommandInput, ListRegionsCommandOutput } from "./commands/ListRegionsCommand";
13
17
  import { PutAlternateContactCommandInput, PutAlternateContactCommandOutput } from "./commands/PutAlternateContactCommand";
14
18
  import { PutContactInformationCommandInput, PutContactInformationCommandOutput } from "./commands/PutContactInformationCommand";
15
19
  import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
16
- export declare type ServiceInputTypes = DeleteAlternateContactCommandInput | GetAlternateContactCommandInput | GetContactInformationCommandInput | PutAlternateContactCommandInput | PutContactInformationCommandInput;
17
- export declare type ServiceOutputTypes = DeleteAlternateContactCommandOutput | GetAlternateContactCommandOutput | GetContactInformationCommandOutput | PutAlternateContactCommandOutput | PutContactInformationCommandOutput;
20
+ export declare type ServiceInputTypes = DeleteAlternateContactCommandInput | DisableRegionCommandInput | EnableRegionCommandInput | GetAlternateContactCommandInput | GetContactInformationCommandInput | GetRegionOptStatusCommandInput | ListRegionsCommandInput | PutAlternateContactCommandInput | PutContactInformationCommandInput;
21
+ export declare type ServiceOutputTypes = DeleteAlternateContactCommandOutput | DisableRegionCommandOutput | EnableRegionCommandOutput | GetAlternateContactCommandOutput | GetContactInformationCommandOutput | GetRegionOptStatusCommandOutput | ListRegionsCommandOutput | PutAlternateContactCommandOutput | PutContactInformationCommandOutput;
18
22
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
19
23
  /**
20
24
  * The HTTP handler to use. Fetch in browser and Https in Nodejs.
@@ -72,17 +76,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
72
76
  */
73
77
  disableHostPrefix?: boolean;
74
78
  /**
75
- * Value for how many times a request will be made at most in case of retry.
76
- */
77
- maxAttempts?: number | __Provider<number>;
78
- /**
79
- * Specifies which retry algorithm to use.
80
- */
81
- retryMode?: string | __Provider<string>;
82
- /**
83
- * Optional logger for logging debug/info/warn/error.
79
+ * Unique service identifier.
80
+ * @internal
84
81
  */
85
- logger?: __Logger;
82
+ serviceId?: string;
86
83
  /**
87
84
  * Enables IPv6/IPv4 dualstack endpoint.
88
85
  */
@@ -91,11 +88,6 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
91
88
  * Enables FIPS compatible endpoints.
92
89
  */
93
90
  useFipsEndpoint?: boolean | __Provider<boolean>;
94
- /**
95
- * Unique service identifier.
96
- * @internal
97
- */
98
- serviceId?: string;
99
91
  /**
100
92
  * The AWS region to which this client will send requests
101
93
  */
@@ -110,6 +102,18 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
110
102
  * @internal
111
103
  */
112
104
  defaultUserAgentProvider?: Provider<__UserAgent>;
105
+ /**
106
+ * Value for how many times a request will be made at most in case of retry.
107
+ */
108
+ maxAttempts?: number | __Provider<number>;
109
+ /**
110
+ * Specifies which retry algorithm to use.
111
+ */
112
+ retryMode?: string | __Provider<string>;
113
+ /**
114
+ * Optional logger for logging debug/info/warn/error.
115
+ */
116
+ logger?: __Logger;
113
117
  /**
114
118
  * The {@link __DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
115
119
  */
@@ -9,9 +9,9 @@ export interface DeleteAlternateContactCommandOutput extends __MetadataBearer {
9
9
  }
10
10
  /**
11
11
  * <p>Deletes the specified alternate contact from an Amazon Web Services account.</p>
12
- * <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
12
+ * <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
13
13
  * updating the alternate contacts</a>.</p>
14
- * <note>
14
+ * <note>
15
15
  * <p>Before you can update the alternate contact information for an
16
16
  * Amazon Web Services account that is managed by Organizations, you must first enable integration between Amazon Web Services Account Management
17
17
  * 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
@@ -0,0 +1,37 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { AccountClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AccountClient";
5
+ import { DisableRegionRequest } from "../models/models_0";
6
+ export interface DisableRegionCommandInput extends DisableRegionRequest {
7
+ }
8
+ export interface DisableRegionCommandOutput extends __MetadataBearer {
9
+ }
10
+ /**
11
+ * <p>Disables (opts-out) a particular Region for an account.</p>
12
+ * @example
13
+ * Use a bare-bones client and the command you need to make an API call.
14
+ * ```javascript
15
+ * import { AccountClient, DisableRegionCommand } from "@aws-sdk/client-account"; // ES Modules import
16
+ * // const { AccountClient, DisableRegionCommand } = require("@aws-sdk/client-account"); // CommonJS import
17
+ * const client = new AccountClient(config);
18
+ * const command = new DisableRegionCommand(input);
19
+ * const response = await client.send(command);
20
+ * ```
21
+ *
22
+ * @see {@link DisableRegionCommandInput} for command's `input` shape.
23
+ * @see {@link DisableRegionCommandOutput} for command's `response` shape.
24
+ * @see {@link AccountClientResolvedConfig | config} for AccountClient's `config` shape.
25
+ *
26
+ */
27
+ export declare class DisableRegionCommand extends $Command<DisableRegionCommandInput, DisableRegionCommandOutput, AccountClientResolvedConfig> {
28
+ readonly input: DisableRegionCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
30
+ constructor(input: DisableRegionCommandInput);
31
+ /**
32
+ * @internal
33
+ */
34
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: AccountClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DisableRegionCommandInput, DisableRegionCommandOutput>;
35
+ private serialize;
36
+ private deserialize;
37
+ }
@@ -0,0 +1,37 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { AccountClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AccountClient";
5
+ import { EnableRegionRequest } from "../models/models_0";
6
+ export interface EnableRegionCommandInput extends EnableRegionRequest {
7
+ }
8
+ export interface EnableRegionCommandOutput extends __MetadataBearer {
9
+ }
10
+ /**
11
+ * <p>Enables (opts-in) a particular Region for an account.</p>
12
+ * @example
13
+ * Use a bare-bones client and the command you need to make an API call.
14
+ * ```javascript
15
+ * import { AccountClient, EnableRegionCommand } from "@aws-sdk/client-account"; // ES Modules import
16
+ * // const { AccountClient, EnableRegionCommand } = require("@aws-sdk/client-account"); // CommonJS import
17
+ * const client = new AccountClient(config);
18
+ * const command = new EnableRegionCommand(input);
19
+ * const response = await client.send(command);
20
+ * ```
21
+ *
22
+ * @see {@link EnableRegionCommandInput} for command's `input` shape.
23
+ * @see {@link EnableRegionCommandOutput} for command's `response` shape.
24
+ * @see {@link AccountClientResolvedConfig | config} for AccountClient's `config` shape.
25
+ *
26
+ */
27
+ export declare class EnableRegionCommand extends $Command<EnableRegionCommandInput, EnableRegionCommandOutput, AccountClientResolvedConfig> {
28
+ readonly input: EnableRegionCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
30
+ constructor(input: EnableRegionCommandInput);
31
+ /**
32
+ * @internal
33
+ */
34
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: AccountClientResolvedConfig, options?: __HttpHandlerOptions): Handler<EnableRegionCommandInput, EnableRegionCommandOutput>;
35
+ private serialize;
36
+ private deserialize;
37
+ }
@@ -9,9 +9,9 @@ export interface GetAlternateContactCommandOutput extends GetAlternateContactRes
9
9
  }
10
10
  /**
11
11
  * <p>Retrieves the specified alternate contact attached to an Amazon Web Services account.</p>
12
- * <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
12
+ * <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
13
13
  * updating the alternate contacts</a>.</p>
14
- * <note>
14
+ * <note>
15
15
  * <p>Before you can update the alternate contact information for an
16
16
  * Amazon Web Services account that is managed by Organizations, you must first enable integration between Amazon Web Services Account Management
17
17
  * 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
@@ -9,7 +9,7 @@ export interface GetContactInformationCommandOutput extends GetContactInformatio
9
9
  }
10
10
  /**
11
11
  * <p>Retrieves the primary contact information of an Amazon Web Services account.</p>
12
- * <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
12
+ * <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
13
13
  * the primary and alternate contact information</a>.</p>
14
14
  * @example
15
15
  * Use a bare-bones client and the command you need to make an API call.
@@ -0,0 +1,37 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { AccountClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AccountClient";
5
+ import { GetRegionOptStatusRequest, GetRegionOptStatusResponse } from "../models/models_0";
6
+ export interface GetRegionOptStatusCommandInput extends GetRegionOptStatusRequest {
7
+ }
8
+ export interface GetRegionOptStatusCommandOutput extends GetRegionOptStatusResponse, __MetadataBearer {
9
+ }
10
+ /**
11
+ * <p>Retrieves the opt-in status of a particular Region.</p>
12
+ * @example
13
+ * Use a bare-bones client and the command you need to make an API call.
14
+ * ```javascript
15
+ * import { AccountClient, GetRegionOptStatusCommand } from "@aws-sdk/client-account"; // ES Modules import
16
+ * // const { AccountClient, GetRegionOptStatusCommand } = require("@aws-sdk/client-account"); // CommonJS import
17
+ * const client = new AccountClient(config);
18
+ * const command = new GetRegionOptStatusCommand(input);
19
+ * const response = await client.send(command);
20
+ * ```
21
+ *
22
+ * @see {@link GetRegionOptStatusCommandInput} for command's `input` shape.
23
+ * @see {@link GetRegionOptStatusCommandOutput} for command's `response` shape.
24
+ * @see {@link AccountClientResolvedConfig | config} for AccountClient's `config` shape.
25
+ *
26
+ */
27
+ export declare class GetRegionOptStatusCommand extends $Command<GetRegionOptStatusCommandInput, GetRegionOptStatusCommandOutput, AccountClientResolvedConfig> {
28
+ readonly input: GetRegionOptStatusCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
30
+ constructor(input: GetRegionOptStatusCommandInput);
31
+ /**
32
+ * @internal
33
+ */
34
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: AccountClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetRegionOptStatusCommandInput, GetRegionOptStatusCommandOutput>;
35
+ private serialize;
36
+ private deserialize;
37
+ }
@@ -0,0 +1,39 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { AccountClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AccountClient";
5
+ import { ListRegionsRequest, ListRegionsResponse } from "../models/models_0";
6
+ export interface ListRegionsCommandInput extends ListRegionsRequest {
7
+ }
8
+ export interface ListRegionsCommandOutput extends ListRegionsResponse, __MetadataBearer {
9
+ }
10
+ /**
11
+ * <p>Lists all the Regions for a given account and their respective opt-in statuses.
12
+ * Optionally, this list can be filtered by the <code>region-opt-status-contains</code>
13
+ * parameter. </p>
14
+ * @example
15
+ * Use a bare-bones client and the command you need to make an API call.
16
+ * ```javascript
17
+ * import { AccountClient, ListRegionsCommand } from "@aws-sdk/client-account"; // ES Modules import
18
+ * // const { AccountClient, ListRegionsCommand } = require("@aws-sdk/client-account"); // CommonJS import
19
+ * const client = new AccountClient(config);
20
+ * const command = new ListRegionsCommand(input);
21
+ * const response = await client.send(command);
22
+ * ```
23
+ *
24
+ * @see {@link ListRegionsCommandInput} for command's `input` shape.
25
+ * @see {@link ListRegionsCommandOutput} for command's `response` shape.
26
+ * @see {@link AccountClientResolvedConfig | config} for AccountClient's `config` shape.
27
+ *
28
+ */
29
+ export declare class ListRegionsCommand extends $Command<ListRegionsCommandInput, ListRegionsCommandOutput, AccountClientResolvedConfig> {
30
+ readonly input: ListRegionsCommandInput;
31
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
32
+ constructor(input: ListRegionsCommandInput);
33
+ /**
34
+ * @internal
35
+ */
36
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: AccountClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListRegionsCommandInput, ListRegionsCommandOutput>;
37
+ private serialize;
38
+ private deserialize;
39
+ }
@@ -9,9 +9,9 @@ export interface PutAlternateContactCommandOutput extends __MetadataBearer {
9
9
  }
10
10
  /**
11
11
  * <p>Modifies the specified alternate contact attached to an Amazon Web Services account.</p>
12
- * <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
12
+ * <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
13
13
  * updating the alternate contacts</a>.</p>
14
- * <note>
14
+ * <note>
15
15
  * <p>Before you can update the alternate contact information for an
16
16
  * Amazon Web Services account that is managed by Organizations, you must first enable integration between Amazon Web Services Account Management
17
17
  * 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
@@ -9,7 +9,7 @@ export interface PutContactInformationCommandOutput extends __MetadataBearer {
9
9
  }
10
10
  /**
11
11
  * <p>Updates the primary contact information of an Amazon Web Services account.</p>
12
- * <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
12
+ * <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
13
13
  * the primary and alternate contact information</a>.</p>
14
14
  * @example
15
15
  * Use a bare-bones client and the command you need to make an API call.
@@ -1,5 +1,9 @@
1
1
  export * from "./DeleteAlternateContactCommand";
2
+ export * from "./DisableRegionCommand";
3
+ export * from "./EnableRegionCommand";
2
4
  export * from "./GetAlternateContactCommand";
3
5
  export * from "./GetContactInformationCommand";
6
+ export * from "./GetRegionOptStatusCommand";
7
+ export * from "./ListRegionsCommand";
4
8
  export * from "./PutAlternateContactCommand";
5
9
  export * from "./PutContactInformationCommand";
@@ -2,4 +2,5 @@ export * from "./Account";
2
2
  export * from "./AccountClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
+ export * from "./pagination";
5
6
  export { AccountServiceException } from "./models/AccountServiceException";
@@ -83,12 +83,37 @@ export declare class TooManyRequestsException extends __BaseException {
83
83
  */
84
84
  constructor(opts: __ExceptionOptionType<TooManyRequestsException, __BaseException>);
85
85
  }
86
+ /**
87
+ * <p>The input failed to meet the constraints specified by the AWS service in a specified field.</p>
88
+ */
89
+ export interface ValidationExceptionField {
90
+ /**
91
+ * <p>The field name where the invalid entry was detected.</p>
92
+ */
93
+ name: string | undefined;
94
+ /**
95
+ * <p>A message about the validation exception.</p>
96
+ */
97
+ message: string | undefined;
98
+ }
99
+ export declare enum ValidationExceptionReason {
100
+ FIELD_VALIDATION_FAILED = "fieldValidationFailed",
101
+ INVALID_REGION_OPT_TARGET = "invalidRegionOptTarget"
102
+ }
86
103
  /**
87
104
  * <p>The operation failed because one of the input parameters was invalid.</p>
88
105
  */
89
106
  export declare class ValidationException extends __BaseException {
90
107
  readonly name: "ValidationException";
91
108
  readonly $fault: "client";
109
+ /**
110
+ * <p>The reason that validation failed.</p>
111
+ */
112
+ reason?: ValidationExceptionReason | string;
113
+ /**
114
+ * <p>The field where the invalid entry was detected.</p>
115
+ */
116
+ fieldList?: ValidationExceptionField[];
92
117
  /**
93
118
  * @internal
94
119
  */
@@ -208,12 +233,12 @@ export interface GetContactInformationRequest {
208
233
  * enabled</a>, and the organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html">trusted access</a> enabled
209
234
  * for the Account Management service, and optionally a <a href="https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html">delegated admin</a> account
210
235
  * assigned.</p>
211
- * <note>
236
+ * <note>
212
237
  * <p>The management account can't specify its own <code>AccountId</code>. It must call
213
238
  * the operation in standalone context by not including the <code>AccountId</code>
214
239
  * parameter.</p>
215
- * </note>
216
- * <p>To call this operation on an account that is not a member of an organization, don't
240
+ * </note>
241
+ * <p>To call this operation on an account that is not a member of an organization, don't
217
242
  * specify this parameter. Instead, call the operation using an identity belonging to
218
243
  * the account whose contacts you wish to retrieve or modify.</p>
219
244
  */
@@ -294,21 +319,221 @@ export interface PutContactInformationRequest {
294
319
  * enabled</a>, and the organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html">trusted access</a> enabled
295
320
  * for the Account Management service, and optionally a <a href="https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html">delegated admin</a> account
296
321
  * assigned.</p>
297
- * <note>
322
+ * <note>
298
323
  * <p>The management account can't specify its own <code>AccountId</code>. It must call
299
324
  * the operation in standalone context by not including the <code>AccountId</code>
300
325
  * parameter.</p>
301
- * </note>
302
- * <p>To call this operation on an account that is not a member of an organization, don't
326
+ * </note>
327
+ * <p>To call this operation on an account that is not a member of an organization, don't
303
328
  * specify this parameter. Instead, call the operation using an identity belonging to
304
329
  * the account whose contacts you wish to retrieve or modify.</p>
305
330
  */
306
331
  AccountId?: string;
307
332
  }
333
+ /**
334
+ * <p>The request could not be processed because of a conflict in the current status of the
335
+ * resource. For example, this happens if you try to enable a Region that is currently being disabled
336
+ * (in a status of DISABLING).</p>
337
+ */
338
+ export declare class ConflictException extends __BaseException {
339
+ readonly name: "ConflictException";
340
+ readonly $fault: "client";
341
+ /**
342
+ * @internal
343
+ */
344
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
345
+ }
346
+ export interface DisableRegionRequest {
347
+ /**
348
+ * <p>Specifies the 12-digit account ID number of the Amazon Web Services account that you want to access
349
+ * or modify with this operation. If you don't specify this parameter, it defaults to the
350
+ * Amazon Web Services account of the identity used to call the operation. To use this parameter, the
351
+ * caller must be an identity in the <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account">organization's
352
+ * management account</a> or a delegated administrator account. The specified
353
+ * account ID must also be a member account in the same organization. The organization must
354
+ * have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html">all features
355
+ * enabled</a>, and the organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html">trusted access</a> enabled
356
+ * for the Account Management service, and optionally a <a href="https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html">delegated admin</a> account
357
+ * assigned.</p>
358
+ * <note>
359
+ * <p>The management account can't specify its own <code>AccountId</code>. It must call
360
+ * the operation in standalone context by not including the <code>AccountId</code>
361
+ * parameter.</p>
362
+ * </note>
363
+ * <p>To call this operation on an account that is not a member of an organization, don't
364
+ * specify this parameter. Instead, call the operation using an identity belonging to the
365
+ * account whose contacts you wish to retrieve or modify.</p>
366
+ */
367
+ AccountId?: string;
368
+ /**
369
+ * <p>Specifies the Region-code for a given Region name (for example, <code>af-south-1</code>). When
370
+ * you disable a Region, AWS performs actions to deactivate that Region in your account, such
371
+ * as destroying IAM resources in the Region. This process takes a few minutes for most
372
+ * accounts, but this can take several hours. You cannot enable the Region until the
373
+ * disabling process is fully completed.</p>
374
+ */
375
+ RegionName: string | undefined;
376
+ }
377
+ export interface EnableRegionRequest {
378
+ /**
379
+ * <p>Specifies the 12-digit account ID number of the Amazon Web Services account that you want to access
380
+ * or modify with this operation. If you don't specify this parameter, it defaults to the
381
+ * Amazon Web Services account of the identity used to call the operation. To use this parameter, the
382
+ * caller must be an identity in the <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account">organization's
383
+ * management account</a> or a delegated administrator account. The specified
384
+ * account ID must also be a member account in the same organization. The organization must
385
+ * have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html">all features
386
+ * enabled</a>, and the organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html">trusted access</a> enabled
387
+ * for the Account Management service, and optionally a <a href="https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html">delegated admin</a> account
388
+ * assigned.</p>
389
+ * <note>
390
+ * <p>The management account can't specify its own <code>AccountId</code>. It must call
391
+ * the operation in standalone context by not including the <code>AccountId</code>
392
+ * parameter.</p>
393
+ * </note>
394
+ * <p>To call this operation on an account that is not a member of an organization, don't
395
+ * specify this parameter. Instead, call the operation using an identity belonging to the
396
+ * account whose contacts you wish to retrieve or modify.</p>
397
+ */
398
+ AccountId?: string;
399
+ /**
400
+ * <p>Specifies the Region-code for a given Region name (for example, <code>af-south-1</code>). When
401
+ * you enable a Region, AWS performs actions to prepare your account in that Region, such
402
+ * as distributing your IAM resources to the Region. This process takes a few minutes for
403
+ * most accounts, but it can take several hours. You cannot use the Region until this
404
+ * process is complete. Furthermore, you cannot disable the Region until the enabling
405
+ * process is fully completed.</p>
406
+ */
407
+ RegionName: string | undefined;
408
+ }
409
+ export interface GetRegionOptStatusRequest {
410
+ /**
411
+ * <p>Specifies the 12-digit account ID number of the Amazon Web Services account that you want to access
412
+ * or modify with this operation. If you don't specify this parameter, it defaults to the
413
+ * Amazon Web Services account of the identity used to call the operation. To use this parameter, the
414
+ * caller must be an identity in the <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account">organization's
415
+ * management account</a> or a delegated administrator account. The specified
416
+ * account ID must also be a member account in the same organization. The organization must
417
+ * have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html">all features
418
+ * enabled</a>, and the organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html">trusted access</a> enabled
419
+ * for the Account Management service, and optionally a <a href="https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html">delegated admin</a> account
420
+ * assigned.</p>
421
+ * <note>
422
+ * <p>The management account can't specify its own <code>AccountId</code>. It must call
423
+ * the operation in standalone context by not including the <code>AccountId</code>
424
+ * parameter.</p>
425
+ * </note>
426
+ * <p>To call this operation on an account that is not a member of an organization, don't
427
+ * specify this parameter. Instead, call the operation using an identity belonging to the
428
+ * account whose contacts you wish to retrieve or modify.</p>
429
+ */
430
+ AccountId?: string;
431
+ /**
432
+ * <p>Specifies the Region-code for a given Region name (for example, <code>af-south-1</code>). This
433
+ * function will return the status of whatever Region you pass into this parameter. </p>
434
+ */
435
+ RegionName: string | undefined;
436
+ }
437
+ export declare enum RegionOptStatus {
438
+ DISABLED = "DISABLED",
439
+ DISABLING = "DISABLING",
440
+ ENABLED = "ENABLED",
441
+ ENABLED_BY_DEFAULT = "ENABLED_BY_DEFAULT",
442
+ ENABLING = "ENABLING"
443
+ }
444
+ export interface GetRegionOptStatusResponse {
445
+ /**
446
+ * <p>The Region code that was passed in.</p>
447
+ */
448
+ RegionName?: string;
449
+ /**
450
+ * <p>One of the potential statuses a Region can undergo (Enabled, Enabling, Disabled,
451
+ * Disabling, Enabled_By_Default).</p>
452
+ */
453
+ RegionOptStatus?: RegionOptStatus | string;
454
+ }
455
+ export interface ListRegionsRequest {
456
+ /**
457
+ * <p>Specifies the 12-digit account ID number of the Amazon Web Services account that you want to access
458
+ * or modify with this operation. If you don't specify this parameter, it defaults to the
459
+ * Amazon Web Services account of the identity used to call the operation. To use this parameter, the
460
+ * caller must be an identity in the <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account">organization's
461
+ * management account</a> or a delegated administrator account. The specified
462
+ * account ID must also be a member account in the same organization. The organization must
463
+ * have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html">all features
464
+ * enabled</a>, and the organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html">trusted access</a> enabled
465
+ * for the Account Management service, and optionally a <a href="https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html">delegated admin</a> account
466
+ * assigned.</p>
467
+ * <note>
468
+ * <p>The management account can't specify its own <code>AccountId</code>. It must call
469
+ * the operation in standalone context by not including the <code>AccountId</code>
470
+ * parameter.</p>
471
+ * </note>
472
+ * <p>To call this operation on an account that is not a member of an organization, don't
473
+ * specify this parameter. Instead, call the operation using an identity belonging to the
474
+ * account whose contacts you wish to retrieve or modify.</p>
475
+ */
476
+ AccountId?: string;
477
+ /**
478
+ * <p>The total number of items to return in the command’s output. If the total number of
479
+ * items available is more than the value specified, a <code>NextToken</code> is provided
480
+ * in the command’s output. To resume pagination, provide the <code>NextToken</code> value
481
+ * in the <code>starting-token</code> argument of a subsequent command. Do not use the
482
+ * <code>NextToken</code> response element directly outside of the Amazon Web Services CLI. For usage
483
+ * examples, see <a href="http://docs.aws.amazon.com/cli/latest/userguide/pagination.html">Pagination</a> in the <i>Amazon Web Services Command Line Interface User
484
+ * Guide</i>. </p>
485
+ */
486
+ MaxResults?: number;
487
+ /**
488
+ * <p>A token used to specify where to start paginating. This is the <code>NextToken</code>
489
+ * from a previously truncated response. For usage examples, see <a href="http://docs.aws.amazon.com/cli/latest/userguide/pagination.html">Pagination</a> in the
490
+ * <i>Amazon Web Services Command Line Interface User Guide</i>.</p>
491
+ */
492
+ NextToken?: string;
493
+ /**
494
+ * <p>A list of Region statuses (Enabling, Enabled, Disabling, Disabled, Enabled_by_default)
495
+ * to use to filter the list of Regions for a given account. For example, passing in a
496
+ * value of ENABLING will only return a list of Regions with a Region status of
497
+ * ENABLING.</p>
498
+ */
499
+ RegionOptStatusContains?: (RegionOptStatus | string)[];
500
+ }
501
+ /**
502
+ * <p>This is a structure that expresses the Region for a given account, consisting of a
503
+ * name and opt-in status.</p>
504
+ */
505
+ export interface Region {
506
+ /**
507
+ * <p>The Region code of a given Region (for example, <code>us-east-1</code>).</p>
508
+ */
509
+ RegionName?: string;
510
+ /**
511
+ * <p>One of potential statuses a Region can undergo (Enabled, Enabling, Disabled, Disabling,
512
+ * Enabled_By_Default).</p>
513
+ */
514
+ RegionOptStatus?: RegionOptStatus | string;
515
+ }
516
+ export interface ListRegionsResponse {
517
+ /**
518
+ * <p>If there is more data to be returned, this will be populated. It should be passed into
519
+ * the <code>next-token</code> request parameter of <code>list-regions</code>.</p>
520
+ */
521
+ NextToken?: string;
522
+ /**
523
+ * <p>This is a list of Regions for a given account, or if the filtered parameter was used,
524
+ * a list of Regions that match the filter criteria set in the <code>filter</code>
525
+ * parameter.</p>
526
+ */
527
+ Regions?: Region[];
528
+ }
308
529
  /**
309
530
  * @internal
310
531
  */
311
532
  export declare const DeleteAlternateContactRequestFilterSensitiveLog: (obj: DeleteAlternateContactRequest) => any;
533
+ /**
534
+ * @internal
535
+ */
536
+ export declare const ValidationExceptionFieldFilterSensitiveLog: (obj: ValidationExceptionField) => any;
312
537
  /**
313
538
  * @internal
314
539
  */
@@ -341,3 +566,31 @@ export declare const GetContactInformationResponseFilterSensitiveLog: (obj: GetC
341
566
  * @internal
342
567
  */
343
568
  export declare const PutContactInformationRequestFilterSensitiveLog: (obj: PutContactInformationRequest) => any;
569
+ /**
570
+ * @internal
571
+ */
572
+ export declare const DisableRegionRequestFilterSensitiveLog: (obj: DisableRegionRequest) => any;
573
+ /**
574
+ * @internal
575
+ */
576
+ export declare const EnableRegionRequestFilterSensitiveLog: (obj: EnableRegionRequest) => any;
577
+ /**
578
+ * @internal
579
+ */
580
+ export declare const GetRegionOptStatusRequestFilterSensitiveLog: (obj: GetRegionOptStatusRequest) => any;
581
+ /**
582
+ * @internal
583
+ */
584
+ export declare const GetRegionOptStatusResponseFilterSensitiveLog: (obj: GetRegionOptStatusResponse) => any;
585
+ /**
586
+ * @internal
587
+ */
588
+ export declare const ListRegionsRequestFilterSensitiveLog: (obj: ListRegionsRequest) => any;
589
+ /**
590
+ * @internal
591
+ */
592
+ export declare const RegionFilterSensitiveLog: (obj: Region) => any;
593
+ /**
594
+ * @internal
595
+ */
596
+ export declare const ListRegionsResponseFilterSensitiveLog: (obj: ListRegionsResponse) => any;
@@ -0,0 +1,6 @@
1
+ import { PaginationConfiguration } from "@aws-sdk/types";
2
+ import { Account } from "../Account";
3
+ import { AccountClient } from "../AccountClient";
4
+ export interface AccountPaginationConfiguration extends PaginationConfiguration {
5
+ client: Account | AccountClient;
6
+ }
@@ -0,0 +1,4 @@
1
+ import { Paginator } from "@aws-sdk/types";
2
+ import { ListRegionsCommandInput, ListRegionsCommandOutput } from "../commands/ListRegionsCommand";
3
+ import { AccountPaginationConfiguration } from "./Interfaces";
4
+ export declare function paginateListRegions(config: AccountPaginationConfiguration, input: ListRegionsCommandInput, ...additionalArguments: any): Paginator<ListRegionsCommandOutput>;
@@ -0,0 +1,2 @@
1
+ export * from "./Interfaces";
2
+ export * from "./ListRegionsPaginator";