@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
@@ -1,17 +1,29 @@
1
1
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
2
2
  import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
3
3
  import { DeleteAlternateContactCommandInput, DeleteAlternateContactCommandOutput } from "../commands/DeleteAlternateContactCommand";
4
+ import { DisableRegionCommandInput, DisableRegionCommandOutput } from "../commands/DisableRegionCommand";
5
+ import { EnableRegionCommandInput, EnableRegionCommandOutput } from "../commands/EnableRegionCommand";
4
6
  import { GetAlternateContactCommandInput, GetAlternateContactCommandOutput } from "../commands/GetAlternateContactCommand";
5
7
  import { GetContactInformationCommandInput, GetContactInformationCommandOutput } from "../commands/GetContactInformationCommand";
8
+ import { GetRegionOptStatusCommandInput, GetRegionOptStatusCommandOutput } from "../commands/GetRegionOptStatusCommand";
9
+ import { ListRegionsCommandInput, ListRegionsCommandOutput } from "../commands/ListRegionsCommand";
6
10
  import { PutAlternateContactCommandInput, PutAlternateContactCommandOutput } from "../commands/PutAlternateContactCommand";
7
11
  import { PutContactInformationCommandInput, PutContactInformationCommandOutput } from "../commands/PutContactInformationCommand";
8
12
  export declare const serializeAws_restJson1DeleteAlternateContactCommand: (input: DeleteAlternateContactCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
13
+ export declare const serializeAws_restJson1DisableRegionCommand: (input: DisableRegionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
14
+ export declare const serializeAws_restJson1EnableRegionCommand: (input: EnableRegionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
9
15
  export declare const serializeAws_restJson1GetAlternateContactCommand: (input: GetAlternateContactCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
10
16
  export declare const serializeAws_restJson1GetContactInformationCommand: (input: GetContactInformationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
17
+ export declare const serializeAws_restJson1GetRegionOptStatusCommand: (input: GetRegionOptStatusCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
18
+ export declare const serializeAws_restJson1ListRegionsCommand: (input: ListRegionsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
11
19
  export declare const serializeAws_restJson1PutAlternateContactCommand: (input: PutAlternateContactCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
12
20
  export declare const serializeAws_restJson1PutContactInformationCommand: (input: PutContactInformationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
13
21
  export declare const deserializeAws_restJson1DeleteAlternateContactCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteAlternateContactCommandOutput>;
22
+ export declare const deserializeAws_restJson1DisableRegionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DisableRegionCommandOutput>;
23
+ export declare const deserializeAws_restJson1EnableRegionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<EnableRegionCommandOutput>;
14
24
  export declare const deserializeAws_restJson1GetAlternateContactCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetAlternateContactCommandOutput>;
15
25
  export declare const deserializeAws_restJson1GetContactInformationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetContactInformationCommandOutput>;
26
+ export declare const deserializeAws_restJson1GetRegionOptStatusCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetRegionOptStatusCommandOutput>;
27
+ export declare const deserializeAws_restJson1ListRegionsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListRegionsCommandOutput>;
16
28
  export declare const deserializeAws_restJson1PutAlternateContactCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PutAlternateContactCommandOutput>;
17
29
  export declare const deserializeAws_restJson1PutContactInformationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PutContactInformationCommandOutput>;
@@ -24,8 +24,8 @@ export declare const getRuntimeConfig: (config: AccountClientConfig) => {
24
24
  utf8Decoder: import("@aws-sdk/types").Decoder;
25
25
  utf8Encoder: import("@aws-sdk/types").Encoder;
26
26
  disableHostPrefix: boolean;
27
- logger: import("@aws-sdk/types").Logger;
28
27
  serviceId: string;
28
+ logger: import("@aws-sdk/types").Logger;
29
29
  endpoint?: ((string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>) & (string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>)) | undefined;
30
30
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
31
31
  logger?: import("@aws-sdk/types").Logger | undefined;
@@ -24,8 +24,8 @@ export declare const getRuntimeConfig: (config: AccountClientConfig) => {
24
24
  utf8Decoder: import("@aws-sdk/types").Decoder;
25
25
  utf8Encoder: import("@aws-sdk/types").Encoder;
26
26
  disableHostPrefix: boolean;
27
- logger: import("@aws-sdk/types").Logger;
28
27
  serviceId: string;
28
+ logger: import("@aws-sdk/types").Logger;
29
29
  endpoint?: ((string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>) & (string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>)) | undefined;
30
30
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
31
31
  logger?: import("@aws-sdk/types").Logger | undefined;
@@ -15,15 +15,15 @@ export declare const getRuntimeConfig: (config: AccountClientConfig) => {
15
15
  utf8Decoder: import("@aws-sdk/types").Decoder;
16
16
  utf8Encoder: import("@aws-sdk/types").Encoder;
17
17
  disableHostPrefix: boolean;
18
- maxAttempts: number | import("@aws-sdk/types").Provider<number>;
19
- retryMode: string | import("@aws-sdk/types").Provider<string>;
20
- logger: import("@aws-sdk/types").Logger;
18
+ serviceId: string;
21
19
  useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
22
20
  useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
23
- serviceId: string;
24
21
  region: string | import("@aws-sdk/types").Provider<any>;
25
22
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
26
23
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
24
+ maxAttempts: number | import("@aws-sdk/types").Provider<number>;
25
+ retryMode: string | import("@aws-sdk/types").Provider<string>;
26
+ logger: import("@aws-sdk/types").Logger;
27
27
  defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
28
28
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2> | undefined;
29
29
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
@@ -4,6 +4,14 @@ import {
4
4
  DeleteAlternateContactCommandInput,
5
5
  DeleteAlternateContactCommandOutput,
6
6
  } from "./commands/DeleteAlternateContactCommand";
7
+ import {
8
+ DisableRegionCommandInput,
9
+ DisableRegionCommandOutput,
10
+ } from "./commands/DisableRegionCommand";
11
+ import {
12
+ EnableRegionCommandInput,
13
+ EnableRegionCommandOutput,
14
+ } from "./commands/EnableRegionCommand";
7
15
  import {
8
16
  GetAlternateContactCommandInput,
9
17
  GetAlternateContactCommandOutput,
@@ -12,6 +20,14 @@ import {
12
20
  GetContactInformationCommandInput,
13
21
  GetContactInformationCommandOutput,
14
22
  } from "./commands/GetContactInformationCommand";
23
+ import {
24
+ GetRegionOptStatusCommandInput,
25
+ GetRegionOptStatusCommandOutput,
26
+ } from "./commands/GetRegionOptStatusCommand";
27
+ import {
28
+ ListRegionsCommandInput,
29
+ ListRegionsCommandOutput,
30
+ } from "./commands/ListRegionsCommand";
15
31
  import {
16
32
  PutAlternateContactCommandInput,
17
33
  PutAlternateContactCommandOutput,
@@ -34,6 +50,32 @@ export declare class Account extends AccountClient {
34
50
  options: __HttpHandlerOptions,
35
51
  cb: (err: any, data?: DeleteAlternateContactCommandOutput) => void
36
52
  ): void;
53
+ disableRegion(
54
+ args: DisableRegionCommandInput,
55
+ options?: __HttpHandlerOptions
56
+ ): Promise<DisableRegionCommandOutput>;
57
+ disableRegion(
58
+ args: DisableRegionCommandInput,
59
+ cb: (err: any, data?: DisableRegionCommandOutput) => void
60
+ ): void;
61
+ disableRegion(
62
+ args: DisableRegionCommandInput,
63
+ options: __HttpHandlerOptions,
64
+ cb: (err: any, data?: DisableRegionCommandOutput) => void
65
+ ): void;
66
+ enableRegion(
67
+ args: EnableRegionCommandInput,
68
+ options?: __HttpHandlerOptions
69
+ ): Promise<EnableRegionCommandOutput>;
70
+ enableRegion(
71
+ args: EnableRegionCommandInput,
72
+ cb: (err: any, data?: EnableRegionCommandOutput) => void
73
+ ): void;
74
+ enableRegion(
75
+ args: EnableRegionCommandInput,
76
+ options: __HttpHandlerOptions,
77
+ cb: (err: any, data?: EnableRegionCommandOutput) => void
78
+ ): void;
37
79
  getAlternateContact(
38
80
  args: GetAlternateContactCommandInput,
39
81
  options?: __HttpHandlerOptions
@@ -60,6 +102,32 @@ export declare class Account extends AccountClient {
60
102
  options: __HttpHandlerOptions,
61
103
  cb: (err: any, data?: GetContactInformationCommandOutput) => void
62
104
  ): void;
105
+ getRegionOptStatus(
106
+ args: GetRegionOptStatusCommandInput,
107
+ options?: __HttpHandlerOptions
108
+ ): Promise<GetRegionOptStatusCommandOutput>;
109
+ getRegionOptStatus(
110
+ args: GetRegionOptStatusCommandInput,
111
+ cb: (err: any, data?: GetRegionOptStatusCommandOutput) => void
112
+ ): void;
113
+ getRegionOptStatus(
114
+ args: GetRegionOptStatusCommandInput,
115
+ options: __HttpHandlerOptions,
116
+ cb: (err: any, data?: GetRegionOptStatusCommandOutput) => void
117
+ ): void;
118
+ listRegions(
119
+ args: ListRegionsCommandInput,
120
+ options?: __HttpHandlerOptions
121
+ ): Promise<ListRegionsCommandOutput>;
122
+ listRegions(
123
+ args: ListRegionsCommandInput,
124
+ cb: (err: any, data?: ListRegionsCommandOutput) => void
125
+ ): void;
126
+ listRegions(
127
+ args: ListRegionsCommandInput,
128
+ options: __HttpHandlerOptions,
129
+ cb: (err: any, data?: ListRegionsCommandOutput) => void
130
+ ): void;
63
131
  putAlternateContact(
64
132
  args: PutAlternateContactCommandInput,
65
133
  options?: __HttpHandlerOptions
@@ -48,6 +48,14 @@ import {
48
48
  DeleteAlternateContactCommandInput,
49
49
  DeleteAlternateContactCommandOutput,
50
50
  } from "./commands/DeleteAlternateContactCommand";
51
+ import {
52
+ DisableRegionCommandInput,
53
+ DisableRegionCommandOutput,
54
+ } from "./commands/DisableRegionCommand";
55
+ import {
56
+ EnableRegionCommandInput,
57
+ EnableRegionCommandOutput,
58
+ } from "./commands/EnableRegionCommand";
51
59
  import {
52
60
  GetAlternateContactCommandInput,
53
61
  GetAlternateContactCommandOutput,
@@ -56,6 +64,14 @@ import {
56
64
  GetContactInformationCommandInput,
57
65
  GetContactInformationCommandOutput,
58
66
  } from "./commands/GetContactInformationCommand";
67
+ import {
68
+ GetRegionOptStatusCommandInput,
69
+ GetRegionOptStatusCommandOutput,
70
+ } from "./commands/GetRegionOptStatusCommand";
71
+ import {
72
+ ListRegionsCommandInput,
73
+ ListRegionsCommandOutput,
74
+ } from "./commands/ListRegionsCommand";
59
75
  import {
60
76
  PutAlternateContactCommandInput,
61
77
  PutAlternateContactCommandOutput,
@@ -71,14 +87,22 @@ import {
71
87
  } from "./endpoint/EndpointParameters";
72
88
  export declare type ServiceInputTypes =
73
89
  | DeleteAlternateContactCommandInput
90
+ | DisableRegionCommandInput
91
+ | EnableRegionCommandInput
74
92
  | GetAlternateContactCommandInput
75
93
  | GetContactInformationCommandInput
94
+ | GetRegionOptStatusCommandInput
95
+ | ListRegionsCommandInput
76
96
  | PutAlternateContactCommandInput
77
97
  | PutContactInformationCommandInput;
78
98
  export declare type ServiceOutputTypes =
79
99
  | DeleteAlternateContactCommandOutput
100
+ | DisableRegionCommandOutput
101
+ | EnableRegionCommandOutput
80
102
  | GetAlternateContactCommandOutput
81
103
  | GetContactInformationCommandOutput
104
+ | GetRegionOptStatusCommandOutput
105
+ | ListRegionsCommandOutput
82
106
  | PutAlternateContactCommandOutput
83
107
  | PutContactInformationCommandOutput;
84
108
  export interface ClientDefaults
@@ -94,15 +118,15 @@ export interface ClientDefaults
94
118
  utf8Encoder?: __Encoder;
95
119
  runtime?: string;
96
120
  disableHostPrefix?: boolean;
97
- maxAttempts?: number | __Provider<number>;
98
- retryMode?: string | __Provider<string>;
99
- logger?: __Logger;
121
+ serviceId?: string;
100
122
  useDualstackEndpoint?: boolean | __Provider<boolean>;
101
123
  useFipsEndpoint?: boolean | __Provider<boolean>;
102
- serviceId?: string;
103
124
  region?: string | __Provider<string>;
104
125
  credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
105
126
  defaultUserAgentProvider?: Provider<__UserAgent>;
127
+ maxAttempts?: number | __Provider<number>;
128
+ retryMode?: string | __Provider<string>;
129
+ logger?: __Logger;
106
130
  defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
107
131
  }
108
132
  declare type AccountClientConfigType = Partial<
@@ -0,0 +1,32 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@aws-sdk/types";
9
+ import {
10
+ AccountClientResolvedConfig,
11
+ ServiceInputTypes,
12
+ ServiceOutputTypes,
13
+ } from "../AccountClient";
14
+ import { DisableRegionRequest } from "../models/models_0";
15
+ export interface DisableRegionCommandInput extends DisableRegionRequest {}
16
+ export interface DisableRegionCommandOutput extends __MetadataBearer {}
17
+ export declare class DisableRegionCommand extends $Command<
18
+ DisableRegionCommandInput,
19
+ DisableRegionCommandOutput,
20
+ AccountClientResolvedConfig
21
+ > {
22
+ readonly input: DisableRegionCommandInput;
23
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
24
+ constructor(input: DisableRegionCommandInput);
25
+ resolveMiddleware(
26
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
27
+ configuration: AccountClientResolvedConfig,
28
+ options?: __HttpHandlerOptions
29
+ ): Handler<DisableRegionCommandInput, DisableRegionCommandOutput>;
30
+ private serialize;
31
+ private deserialize;
32
+ }
@@ -0,0 +1,32 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@aws-sdk/types";
9
+ import {
10
+ AccountClientResolvedConfig,
11
+ ServiceInputTypes,
12
+ ServiceOutputTypes,
13
+ } from "../AccountClient";
14
+ import { EnableRegionRequest } from "../models/models_0";
15
+ export interface EnableRegionCommandInput extends EnableRegionRequest {}
16
+ export interface EnableRegionCommandOutput extends __MetadataBearer {}
17
+ export declare class EnableRegionCommand extends $Command<
18
+ EnableRegionCommandInput,
19
+ EnableRegionCommandOutput,
20
+ AccountClientResolvedConfig
21
+ > {
22
+ readonly input: EnableRegionCommandInput;
23
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
24
+ constructor(input: EnableRegionCommandInput);
25
+ resolveMiddleware(
26
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
27
+ configuration: AccountClientResolvedConfig,
28
+ options?: __HttpHandlerOptions
29
+ ): Handler<EnableRegionCommandInput, EnableRegionCommandOutput>;
30
+ private serialize;
31
+ private deserialize;
32
+ }
@@ -0,0 +1,38 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@aws-sdk/types";
9
+ import {
10
+ AccountClientResolvedConfig,
11
+ ServiceInputTypes,
12
+ ServiceOutputTypes,
13
+ } from "../AccountClient";
14
+ import {
15
+ GetRegionOptStatusRequest,
16
+ GetRegionOptStatusResponse,
17
+ } from "../models/models_0";
18
+ export interface GetRegionOptStatusCommandInput
19
+ extends GetRegionOptStatusRequest {}
20
+ export interface GetRegionOptStatusCommandOutput
21
+ extends GetRegionOptStatusResponse,
22
+ __MetadataBearer {}
23
+ export declare class GetRegionOptStatusCommand extends $Command<
24
+ GetRegionOptStatusCommandInput,
25
+ GetRegionOptStatusCommandOutput,
26
+ AccountClientResolvedConfig
27
+ > {
28
+ readonly input: GetRegionOptStatusCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
30
+ constructor(input: GetRegionOptStatusCommandInput);
31
+ resolveMiddleware(
32
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
33
+ configuration: AccountClientResolvedConfig,
34
+ options?: __HttpHandlerOptions
35
+ ): Handler<GetRegionOptStatusCommandInput, GetRegionOptStatusCommandOutput>;
36
+ private serialize;
37
+ private deserialize;
38
+ }
@@ -0,0 +1,34 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@aws-sdk/types";
9
+ import {
10
+ AccountClientResolvedConfig,
11
+ ServiceInputTypes,
12
+ ServiceOutputTypes,
13
+ } from "../AccountClient";
14
+ import { ListRegionsRequest, ListRegionsResponse } from "../models/models_0";
15
+ export interface ListRegionsCommandInput extends ListRegionsRequest {}
16
+ export interface ListRegionsCommandOutput
17
+ extends ListRegionsResponse,
18
+ __MetadataBearer {}
19
+ export declare class ListRegionsCommand extends $Command<
20
+ ListRegionsCommandInput,
21
+ ListRegionsCommandOutput,
22
+ AccountClientResolvedConfig
23
+ > {
24
+ readonly input: ListRegionsCommandInput;
25
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
26
+ constructor(input: ListRegionsCommandInput);
27
+ resolveMiddleware(
28
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
29
+ configuration: AccountClientResolvedConfig,
30
+ options?: __HttpHandlerOptions
31
+ ): Handler<ListRegionsCommandInput, ListRegionsCommandOutput>;
32
+ private serialize;
33
+ private deserialize;
34
+ }
@@ -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";
@@ -41,9 +41,19 @@ export declare class TooManyRequestsException extends __BaseException {
41
41
  opts: __ExceptionOptionType<TooManyRequestsException, __BaseException>
42
42
  );
43
43
  }
44
+ export interface ValidationExceptionField {
45
+ name: string | undefined;
46
+ message: string | undefined;
47
+ }
48
+ export declare enum ValidationExceptionReason {
49
+ FIELD_VALIDATION_FAILED = "fieldValidationFailed",
50
+ INVALID_REGION_OPT_TARGET = "invalidRegionOptTarget",
51
+ }
44
52
  export declare class ValidationException extends __BaseException {
45
53
  readonly name: "ValidationException";
46
54
  readonly $fault: "client";
55
+ reason?: ValidationExceptionReason | string;
56
+ fieldList?: ValidationExceptionField[];
47
57
  constructor(
48
58
  opts: __ExceptionOptionType<ValidationException, __BaseException>
49
59
  );
@@ -94,9 +104,54 @@ export interface PutContactInformationRequest {
94
104
  ContactInformation: ContactInformation | undefined;
95
105
  AccountId?: string;
96
106
  }
107
+ export declare class ConflictException extends __BaseException {
108
+ readonly name: "ConflictException";
109
+ readonly $fault: "client";
110
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
111
+ }
112
+ export interface DisableRegionRequest {
113
+ AccountId?: string;
114
+ RegionName: string | undefined;
115
+ }
116
+ export interface EnableRegionRequest {
117
+ AccountId?: string;
118
+ RegionName: string | undefined;
119
+ }
120
+ export interface GetRegionOptStatusRequest {
121
+ AccountId?: string;
122
+ RegionName: string | undefined;
123
+ }
124
+ export declare enum RegionOptStatus {
125
+ DISABLED = "DISABLED",
126
+ DISABLING = "DISABLING",
127
+ ENABLED = "ENABLED",
128
+ ENABLED_BY_DEFAULT = "ENABLED_BY_DEFAULT",
129
+ ENABLING = "ENABLING",
130
+ }
131
+ export interface GetRegionOptStatusResponse {
132
+ RegionName?: string;
133
+ RegionOptStatus?: RegionOptStatus | string;
134
+ }
135
+ export interface ListRegionsRequest {
136
+ AccountId?: string;
137
+ MaxResults?: number;
138
+ NextToken?: string;
139
+ RegionOptStatusContains?: (RegionOptStatus | string)[];
140
+ }
141
+ export interface Region {
142
+ RegionName?: string;
143
+ RegionOptStatus?: RegionOptStatus | string;
144
+ }
145
+ export interface ListRegionsResponse {
146
+ NextToken?: string;
147
+ Regions?: Region[];
148
+ }
97
149
  export declare const DeleteAlternateContactRequestFilterSensitiveLog: (
98
150
  obj: DeleteAlternateContactRequest
99
151
  ) => any;
152
+ export declare const ValidationExceptionFieldFilterSensitiveLog: (
153
+ obj: ValidationExceptionField
154
+ ) => any;
100
155
  export declare const GetAlternateContactRequestFilterSensitiveLog: (
101
156
  obj: GetAlternateContactRequest
102
157
  ) => any;
@@ -121,3 +176,22 @@ export declare const GetContactInformationResponseFilterSensitiveLog: (
121
176
  export declare const PutContactInformationRequestFilterSensitiveLog: (
122
177
  obj: PutContactInformationRequest
123
178
  ) => any;
179
+ export declare const DisableRegionRequestFilterSensitiveLog: (
180
+ obj: DisableRegionRequest
181
+ ) => any;
182
+ export declare const EnableRegionRequestFilterSensitiveLog: (
183
+ obj: EnableRegionRequest
184
+ ) => any;
185
+ export declare const GetRegionOptStatusRequestFilterSensitiveLog: (
186
+ obj: GetRegionOptStatusRequest
187
+ ) => any;
188
+ export declare const GetRegionOptStatusResponseFilterSensitiveLog: (
189
+ obj: GetRegionOptStatusResponse
190
+ ) => any;
191
+ export declare const ListRegionsRequestFilterSensitiveLog: (
192
+ obj: ListRegionsRequest
193
+ ) => any;
194
+ export declare const RegionFilterSensitiveLog: (obj: Region) => any;
195
+ export declare const ListRegionsResponseFilterSensitiveLog: (
196
+ obj: ListRegionsResponse
197
+ ) => any;
@@ -0,0 +1,7 @@
1
+ import { PaginationConfiguration } from "@aws-sdk/types";
2
+ import { Account } from "../Account";
3
+ import { AccountClient } from "../AccountClient";
4
+ export interface AccountPaginationConfiguration
5
+ extends PaginationConfiguration {
6
+ client: Account | AccountClient;
7
+ }
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@aws-sdk/types";
2
+ import {
3
+ ListRegionsCommandInput,
4
+ ListRegionsCommandOutput,
5
+ } from "../commands/ListRegionsCommand";
6
+ import { AccountPaginationConfiguration } from "./Interfaces";
7
+ export declare function paginateListRegions(
8
+ config: AccountPaginationConfiguration,
9
+ input: ListRegionsCommandInput,
10
+ ...additionalArguments: any
11
+ ): Paginator<ListRegionsCommandOutput>;
@@ -0,0 +1,2 @@
1
+ export * from "./Interfaces";
2
+ export * from "./ListRegionsPaginator";
@@ -7,6 +7,14 @@ import {
7
7
  DeleteAlternateContactCommandInput,
8
8
  DeleteAlternateContactCommandOutput,
9
9
  } from "../commands/DeleteAlternateContactCommand";
10
+ import {
11
+ DisableRegionCommandInput,
12
+ DisableRegionCommandOutput,
13
+ } from "../commands/DisableRegionCommand";
14
+ import {
15
+ EnableRegionCommandInput,
16
+ EnableRegionCommandOutput,
17
+ } from "../commands/EnableRegionCommand";
10
18
  import {
11
19
  GetAlternateContactCommandInput,
12
20
  GetAlternateContactCommandOutput,
@@ -15,6 +23,14 @@ import {
15
23
  GetContactInformationCommandInput,
16
24
  GetContactInformationCommandOutput,
17
25
  } from "../commands/GetContactInformationCommand";
26
+ import {
27
+ GetRegionOptStatusCommandInput,
28
+ GetRegionOptStatusCommandOutput,
29
+ } from "../commands/GetRegionOptStatusCommand";
30
+ import {
31
+ ListRegionsCommandInput,
32
+ ListRegionsCommandOutput,
33
+ } from "../commands/ListRegionsCommand";
18
34
  import {
19
35
  PutAlternateContactCommandInput,
20
36
  PutAlternateContactCommandOutput,
@@ -27,6 +43,14 @@ export declare const serializeAws_restJson1DeleteAlternateContactCommand: (
27
43
  input: DeleteAlternateContactCommandInput,
28
44
  context: __SerdeContext
29
45
  ) => Promise<__HttpRequest>;
46
+ export declare const serializeAws_restJson1DisableRegionCommand: (
47
+ input: DisableRegionCommandInput,
48
+ context: __SerdeContext
49
+ ) => Promise<__HttpRequest>;
50
+ export declare const serializeAws_restJson1EnableRegionCommand: (
51
+ input: EnableRegionCommandInput,
52
+ context: __SerdeContext
53
+ ) => Promise<__HttpRequest>;
30
54
  export declare const serializeAws_restJson1GetAlternateContactCommand: (
31
55
  input: GetAlternateContactCommandInput,
32
56
  context: __SerdeContext
@@ -35,6 +59,14 @@ export declare const serializeAws_restJson1GetContactInformationCommand: (
35
59
  input: GetContactInformationCommandInput,
36
60
  context: __SerdeContext
37
61
  ) => Promise<__HttpRequest>;
62
+ export declare const serializeAws_restJson1GetRegionOptStatusCommand: (
63
+ input: GetRegionOptStatusCommandInput,
64
+ context: __SerdeContext
65
+ ) => Promise<__HttpRequest>;
66
+ export declare const serializeAws_restJson1ListRegionsCommand: (
67
+ input: ListRegionsCommandInput,
68
+ context: __SerdeContext
69
+ ) => Promise<__HttpRequest>;
38
70
  export declare const serializeAws_restJson1PutAlternateContactCommand: (
39
71
  input: PutAlternateContactCommandInput,
40
72
  context: __SerdeContext
@@ -47,6 +79,14 @@ export declare const deserializeAws_restJson1DeleteAlternateContactCommand: (
47
79
  output: __HttpResponse,
48
80
  context: __SerdeContext
49
81
  ) => Promise<DeleteAlternateContactCommandOutput>;
82
+ export declare const deserializeAws_restJson1DisableRegionCommand: (
83
+ output: __HttpResponse,
84
+ context: __SerdeContext
85
+ ) => Promise<DisableRegionCommandOutput>;
86
+ export declare const deserializeAws_restJson1EnableRegionCommand: (
87
+ output: __HttpResponse,
88
+ context: __SerdeContext
89
+ ) => Promise<EnableRegionCommandOutput>;
50
90
  export declare const deserializeAws_restJson1GetAlternateContactCommand: (
51
91
  output: __HttpResponse,
52
92
  context: __SerdeContext
@@ -55,6 +95,14 @@ export declare const deserializeAws_restJson1GetContactInformationCommand: (
55
95
  output: __HttpResponse,
56
96
  context: __SerdeContext
57
97
  ) => Promise<GetContactInformationCommandOutput>;
98
+ export declare const deserializeAws_restJson1GetRegionOptStatusCommand: (
99
+ output: __HttpResponse,
100
+ context: __SerdeContext
101
+ ) => Promise<GetRegionOptStatusCommandOutput>;
102
+ export declare const deserializeAws_restJson1ListRegionsCommand: (
103
+ output: __HttpResponse,
104
+ context: __SerdeContext
105
+ ) => Promise<ListRegionsCommandOutput>;
58
106
  export declare const deserializeAws_restJson1PutAlternateContactCommand: (
59
107
  output: __HttpResponse,
60
108
  context: __SerdeContext
@@ -34,8 +34,8 @@ export declare const getRuntimeConfig: (config: AccountClientConfig) => {
34
34
  utf8Decoder: import("@aws-sdk/types").Decoder;
35
35
  utf8Encoder: import("@aws-sdk/types").Encoder;
36
36
  disableHostPrefix: boolean;
37
- logger: import("@aws-sdk/types").Logger;
38
37
  serviceId: string;
38
+ logger: import("@aws-sdk/types").Logger;
39
39
  endpoint?:
40
40
  | ((
41
41
  | string
@@ -34,8 +34,8 @@ export declare const getRuntimeConfig: (config: AccountClientConfig) => {
34
34
  utf8Decoder: import("@aws-sdk/types").Decoder;
35
35
  utf8Encoder: import("@aws-sdk/types").Encoder;
36
36
  disableHostPrefix: boolean;
37
- logger: import("@aws-sdk/types").Logger;
38
37
  serviceId: string;
38
+ logger: import("@aws-sdk/types").Logger;
39
39
  endpoint?:
40
40
  | ((
41
41
  | string
@@ -19,12 +19,9 @@ export declare const getRuntimeConfig: (config: AccountClientConfig) => {
19
19
  utf8Decoder: import("@aws-sdk/types").Decoder;
20
20
  utf8Encoder: import("@aws-sdk/types").Encoder;
21
21
  disableHostPrefix: boolean;
22
- maxAttempts: number | import("@aws-sdk/types").Provider<number>;
23
- retryMode: string | import("@aws-sdk/types").Provider<string>;
24
- logger: import("@aws-sdk/types").Logger;
22
+ serviceId: string;
25
23
  useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
26
24
  useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
27
- serviceId: string;
28
25
  region: string | import("@aws-sdk/types").Provider<any>;
29
26
  credentialDefaultProvider: (
30
27
  input: any
@@ -32,6 +29,9 @@ export declare const getRuntimeConfig: (config: AccountClientConfig) => {
32
29
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<
33
30
  import("@aws-sdk/types").UserAgent
34
31
  >;
32
+ maxAttempts: number | import("@aws-sdk/types").Provider<number>;
33
+ retryMode: string | import("@aws-sdk/types").Provider<string>;
34
+ logger: import("@aws-sdk/types").Logger;
35
35
  defaultsMode:
36
36
  | import("@aws-sdk/smithy-client").DefaultsMode
37
37
  | import("@aws-sdk/types").Provider<