@aws-sdk/client-docdb-elastic 3.682.0 → 3.686.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 (32) hide show
  1. package/README.md +25 -1
  2. package/dist-cjs/index.js +203 -54
  3. package/dist-es/DocDBElastic.js +6 -0
  4. package/dist-es/commands/ApplyPendingMaintenanceActionCommand.js +22 -0
  5. package/dist-es/commands/GetPendingMaintenanceActionCommand.js +22 -0
  6. package/dist-es/commands/ListPendingMaintenanceActionsCommand.js +22 -0
  7. package/dist-es/commands/index.js +3 -0
  8. package/dist-es/models/models_0.js +48 -40
  9. package/dist-es/pagination/ListPendingMaintenanceActionsPaginator.js +4 -0
  10. package/dist-es/pagination/index.js +1 -0
  11. package/dist-es/protocols/Aws_restJson1.js +83 -3
  12. package/dist-types/DocDBElastic.d.ts +22 -0
  13. package/dist-types/DocDBElasticClient.d.ts +5 -2
  14. package/dist-types/commands/ApplyPendingMaintenanceActionCommand.d.ts +104 -0
  15. package/dist-types/commands/GetPendingMaintenanceActionCommand.d.ts +101 -0
  16. package/dist-types/commands/ListPendingMaintenanceActionsCommand.d.ts +99 -0
  17. package/dist-types/commands/index.d.ts +3 -0
  18. package/dist-types/models/models_0.d.ts +300 -110
  19. package/dist-types/pagination/ListPendingMaintenanceActionsPaginator.d.ts +7 -0
  20. package/dist-types/pagination/index.d.ts +1 -0
  21. package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
  22. package/dist-types/ts3.4/DocDBElastic.d.ts +52 -0
  23. package/dist-types/ts3.4/DocDBElasticClient.d.ts +18 -0
  24. package/dist-types/ts3.4/commands/ApplyPendingMaintenanceActionCommand.d.ts +51 -0
  25. package/dist-types/ts3.4/commands/GetPendingMaintenanceActionCommand.d.ts +51 -0
  26. package/dist-types/ts3.4/commands/ListPendingMaintenanceActionsCommand.d.ts +51 -0
  27. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  28. package/dist-types/ts3.4/models/models_0.d.ts +101 -51
  29. package/dist-types/ts3.4/pagination/ListPendingMaintenanceActionsPaginator.d.ts +11 -0
  30. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  31. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -0
  32. package/package.json +35 -35
@@ -12,9 +12,11 @@ export class AccessDeniedException extends __BaseException {
12
12
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
13
13
  }
14
14
  }
15
- export const Auth = {
16
- PLAIN_TEXT: "PLAIN_TEXT",
17
- SECRET_ARN: "SECRET_ARN",
15
+ export const OptInType = {
16
+ APPLY_ON: "APPLY_ON",
17
+ IMMEDIATE: "IMMEDIATE",
18
+ NEXT_MAINTENANCE: "NEXT_MAINTENANCE",
19
+ UNDO_OPT_IN: "UNDO_OPT_IN",
18
20
  };
19
21
  export class ConflictException extends __BaseException {
20
22
  constructor(opts) {
@@ -30,31 +32,6 @@ export class ConflictException extends __BaseException {
30
32
  this.resourceType = opts.resourceType;
31
33
  }
32
34
  }
33
- export const SnapshotType = {
34
- AUTOMATED: "AUTOMATED",
35
- MANUAL: "MANUAL",
36
- };
37
- export const Status = {
38
- ACTIVE: "ACTIVE",
39
- COPYING: "COPYING",
40
- CREATING: "CREATING",
41
- DELETING: "DELETING",
42
- INACCESSIBLE_ENCRYPTION_CREDS: "INACCESSIBLE_ENCRYPTION_CREDS",
43
- INACCESSIBLE_SECRET_ARN: "INACCESSIBLE_SECRET_ARN",
44
- INACCESSIBLE_VPC_ENDPOINT: "INACCESSIBLE_VPC_ENDPOINT",
45
- INCOMPATIBLE_NETWORK: "INCOMPATIBLE_NETWORK",
46
- INVALID_SECURITY_GROUP_ID: "INVALID_SECURITY_GROUP_ID",
47
- INVALID_SUBNET_ID: "INVALID_SUBNET_ID",
48
- IP_ADDRESS_LIMIT_EXCEEDED: "IP_ADDRESS_LIMIT_EXCEEDED",
49
- MERGING: "MERGING",
50
- MODIFYING: "MODIFYING",
51
- SPLITTING: "SPLITTING",
52
- STARTING: "STARTING",
53
- STOPPED: "STOPPED",
54
- STOPPING: "STOPPING",
55
- UPDATING: "UPDATING",
56
- VPC_ENDPOINT_LIMIT_EXCEEDED: "VPC_ENDPOINT_LIMIT_EXCEEDED",
57
- };
58
35
  export class InternalServerException extends __BaseException {
59
36
  constructor(opts) {
60
37
  super({
@@ -82,18 +59,6 @@ export class ResourceNotFoundException extends __BaseException {
82
59
  this.resourceType = opts.resourceType;
83
60
  }
84
61
  }
85
- export class ServiceQuotaExceededException extends __BaseException {
86
- constructor(opts) {
87
- super({
88
- name: "ServiceQuotaExceededException",
89
- $fault: "client",
90
- ...opts,
91
- });
92
- this.name = "ServiceQuotaExceededException";
93
- this.$fault = "client";
94
- Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
95
- }
96
- }
97
62
  export class ThrottlingException extends __BaseException {
98
63
  constructor(opts) {
99
64
  super({
@@ -128,6 +93,49 @@ export class ValidationException extends __BaseException {
128
93
  this.fieldList = opts.fieldList;
129
94
  }
130
95
  }
96
+ export const Auth = {
97
+ PLAIN_TEXT: "PLAIN_TEXT",
98
+ SECRET_ARN: "SECRET_ARN",
99
+ };
100
+ export const SnapshotType = {
101
+ AUTOMATED: "AUTOMATED",
102
+ MANUAL: "MANUAL",
103
+ };
104
+ export const Status = {
105
+ ACTIVE: "ACTIVE",
106
+ COPYING: "COPYING",
107
+ CREATING: "CREATING",
108
+ DELETING: "DELETING",
109
+ INACCESSIBLE_ENCRYPTION_CREDENTIALS_RECOVERABLE: "INACCESSIBLE_ENCRYPTION_CREDENTIALS_RECOVERABLE",
110
+ INACCESSIBLE_ENCRYPTION_CREDS: "INACCESSIBLE_ENCRYPTION_CREDS",
111
+ INACCESSIBLE_SECRET_ARN: "INACCESSIBLE_SECRET_ARN",
112
+ INACCESSIBLE_VPC_ENDPOINT: "INACCESSIBLE_VPC_ENDPOINT",
113
+ INCOMPATIBLE_NETWORK: "INCOMPATIBLE_NETWORK",
114
+ INVALID_SECURITY_GROUP_ID: "INVALID_SECURITY_GROUP_ID",
115
+ INVALID_SUBNET_ID: "INVALID_SUBNET_ID",
116
+ IP_ADDRESS_LIMIT_EXCEEDED: "IP_ADDRESS_LIMIT_EXCEEDED",
117
+ MAINTENANCE: "MAINTENANCE",
118
+ MERGING: "MERGING",
119
+ MODIFYING: "MODIFYING",
120
+ SPLITTING: "SPLITTING",
121
+ STARTING: "STARTING",
122
+ STOPPED: "STOPPED",
123
+ STOPPING: "STOPPING",
124
+ UPDATING: "UPDATING",
125
+ VPC_ENDPOINT_LIMIT_EXCEEDED: "VPC_ENDPOINT_LIMIT_EXCEEDED",
126
+ };
127
+ export class ServiceQuotaExceededException extends __BaseException {
128
+ constructor(opts) {
129
+ super({
130
+ name: "ServiceQuotaExceededException",
131
+ $fault: "client",
132
+ ...opts,
133
+ });
134
+ this.name = "ServiceQuotaExceededException";
135
+ this.$fault = "client";
136
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
137
+ }
138
+ }
131
139
  export const CreateClusterInputFilterSensitiveLog = (obj) => ({
132
140
  ...obj,
133
141
  ...(obj.adminUserPassword && { adminUserPassword: SENSITIVE_STRING }),
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListPendingMaintenanceActionsCommand, } from "../commands/ListPendingMaintenanceActionsCommand";
3
+ import { DocDBElasticClient } from "../DocDBElasticClient";
4
+ export const paginateListPendingMaintenanceActions = createPaginator(DocDBElasticClient, ListPendingMaintenanceActionsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,3 +1,4 @@
1
1
  export * from "./Interfaces";
2
2
  export * from "./ListClusterSnapshotsPaginator";
3
3
  export * from "./ListClustersPaginator";
4
+ export * from "./ListPendingMaintenanceActionsPaginator";
@@ -4,6 +4,22 @@ import { _json, collectBody, decorateServiceException as __decorateServiceExcept
4
4
  import { v4 as generateIdempotencyToken } from "uuid";
5
5
  import { DocDBElasticServiceException as __BaseException } from "../models/DocDBElasticServiceException";
6
6
  import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
7
+ export const se_ApplyPendingMaintenanceActionCommand = async (input, context) => {
8
+ const b = rb(input, context);
9
+ const headers = {
10
+ "content-type": "application/json",
11
+ };
12
+ b.bp("/pending-action");
13
+ let body;
14
+ body = JSON.stringify(take(input, {
15
+ applyAction: [],
16
+ applyOn: [],
17
+ optInType: [],
18
+ resourceArn: [],
19
+ }));
20
+ b.m("POST").h(headers).b(body);
21
+ return b.build();
22
+ };
7
23
  export const se_CopyClusterSnapshotCommand = async (input, context) => {
8
24
  const b = rb(input, context);
9
25
  const headers = {
@@ -99,6 +115,15 @@ export const se_GetClusterSnapshotCommand = async (input, context) => {
99
115
  b.m("GET").h(headers).b(body);
100
116
  return b.build();
101
117
  };
118
+ export const se_GetPendingMaintenanceActionCommand = async (input, context) => {
119
+ const b = rb(input, context);
120
+ const headers = {};
121
+ b.bp("/pending-action/{resourceArn}");
122
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
123
+ let body;
124
+ b.m("GET").h(headers).b(body);
125
+ return b.build();
126
+ };
102
127
  export const se_ListClustersCommand = async (input, context) => {
103
128
  const b = rb(input, context);
104
129
  const headers = {};
@@ -125,6 +150,18 @@ export const se_ListClusterSnapshotsCommand = async (input, context) => {
125
150
  b.m("GET").h(headers).q(query).b(body);
126
151
  return b.build();
127
152
  };
153
+ export const se_ListPendingMaintenanceActionsCommand = async (input, context) => {
154
+ const b = rb(input, context);
155
+ const headers = {};
156
+ b.bp("/pending-actions");
157
+ const query = map({
158
+ [_nT]: [, input[_nT]],
159
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
160
+ });
161
+ let body;
162
+ b.m("GET").h(headers).q(query).b(body);
163
+ return b.build();
164
+ };
128
165
  export const se_ListTagsForResourceCommand = async (input, context) => {
129
166
  const b = rb(input, context);
130
167
  const headers = {};
@@ -222,6 +259,20 @@ export const se_UpdateClusterCommand = async (input, context) => {
222
259
  b.m("PUT").h(headers).b(body);
223
260
  return b.build();
224
261
  };
262
+ export const de_ApplyPendingMaintenanceActionCommand = async (output, context) => {
263
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
264
+ return de_CommandError(output, context);
265
+ }
266
+ const contents = map({
267
+ $metadata: deserializeMetadata(output),
268
+ });
269
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
270
+ const doc = take(data, {
271
+ resourcePendingMaintenanceAction: _json,
272
+ });
273
+ Object.assign(contents, doc);
274
+ return contents;
275
+ };
225
276
  export const de_CopyClusterSnapshotCommand = async (output, context) => {
226
277
  if (output.statusCode !== 200 && output.statusCode >= 300) {
227
278
  return de_CommandError(output, context);
@@ -320,6 +371,20 @@ export const de_GetClusterSnapshotCommand = async (output, context) => {
320
371
  Object.assign(contents, doc);
321
372
  return contents;
322
373
  };
374
+ export const de_GetPendingMaintenanceActionCommand = async (output, context) => {
375
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
376
+ return de_CommandError(output, context);
377
+ }
378
+ const contents = map({
379
+ $metadata: deserializeMetadata(output),
380
+ });
381
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
382
+ const doc = take(data, {
383
+ resourcePendingMaintenanceAction: _json,
384
+ });
385
+ Object.assign(contents, doc);
386
+ return contents;
387
+ };
323
388
  export const de_ListClustersCommand = async (output, context) => {
324
389
  if (output.statusCode !== 200 && output.statusCode >= 300) {
325
390
  return de_CommandError(output, context);
@@ -350,6 +415,21 @@ export const de_ListClusterSnapshotsCommand = async (output, context) => {
350
415
  Object.assign(contents, doc);
351
416
  return contents;
352
417
  };
418
+ export const de_ListPendingMaintenanceActionsCommand = async (output, context) => {
419
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
420
+ return de_CommandError(output, context);
421
+ }
422
+ const contents = map({
423
+ $metadata: deserializeMetadata(output),
424
+ });
425
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
426
+ const doc = take(data, {
427
+ nextToken: __expectString,
428
+ resourcePendingMaintenanceActions: _json,
429
+ });
430
+ Object.assign(contents, doc);
431
+ return contents;
432
+ };
353
433
  export const de_ListTagsForResourceCommand = async (output, context) => {
354
434
  if (output.statusCode !== 200 && output.statusCode >= 300) {
355
435
  return de_CommandError(output, context);
@@ -459,15 +539,15 @@ const de_CommandError = async (output, context) => {
459
539
  case "ResourceNotFoundException":
460
540
  case "com.amazonaws.docdbelastic#ResourceNotFoundException":
461
541
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
462
- case "ServiceQuotaExceededException":
463
- case "com.amazonaws.docdbelastic#ServiceQuotaExceededException":
464
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
465
542
  case "ThrottlingException":
466
543
  case "com.amazonaws.docdbelastic#ThrottlingException":
467
544
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
468
545
  case "ValidationException":
469
546
  case "com.amazonaws.docdbelastic#ValidationException":
470
547
  throw await de_ValidationExceptionRes(parsedOutput, context);
548
+ case "ServiceQuotaExceededException":
549
+ case "com.amazonaws.docdbelastic#ServiceQuotaExceededException":
550
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
471
551
  default:
472
552
  const parsedBody = parsedOutput.body;
473
553
  return throwDefaultError({
@@ -1,4 +1,5 @@
1
1
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
+ import { ApplyPendingMaintenanceActionCommandInput, ApplyPendingMaintenanceActionCommandOutput } from "./commands/ApplyPendingMaintenanceActionCommand";
2
3
  import { CopyClusterSnapshotCommandInput, CopyClusterSnapshotCommandOutput } from "./commands/CopyClusterSnapshotCommand";
3
4
  import { CreateClusterCommandInput, CreateClusterCommandOutput } from "./commands/CreateClusterCommand";
4
5
  import { CreateClusterSnapshotCommandInput, CreateClusterSnapshotCommandOutput } from "./commands/CreateClusterSnapshotCommand";
@@ -6,8 +7,10 @@ import { DeleteClusterCommandInput, DeleteClusterCommandOutput } from "./command
6
7
  import { DeleteClusterSnapshotCommandInput, DeleteClusterSnapshotCommandOutput } from "./commands/DeleteClusterSnapshotCommand";
7
8
  import { GetClusterCommandInput, GetClusterCommandOutput } from "./commands/GetClusterCommand";
8
9
  import { GetClusterSnapshotCommandInput, GetClusterSnapshotCommandOutput } from "./commands/GetClusterSnapshotCommand";
10
+ import { GetPendingMaintenanceActionCommandInput, GetPendingMaintenanceActionCommandOutput } from "./commands/GetPendingMaintenanceActionCommand";
9
11
  import { ListClustersCommandInput, ListClustersCommandOutput } from "./commands/ListClustersCommand";
10
12
  import { ListClusterSnapshotsCommandInput, ListClusterSnapshotsCommandOutput } from "./commands/ListClusterSnapshotsCommand";
13
+ import { ListPendingMaintenanceActionsCommandInput, ListPendingMaintenanceActionsCommandOutput } from "./commands/ListPendingMaintenanceActionsCommand";
11
14
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
12
15
  import { RestoreClusterFromSnapshotCommandInput, RestoreClusterFromSnapshotCommandOutput } from "./commands/RestoreClusterFromSnapshotCommand";
13
16
  import { StartClusterCommandInput, StartClusterCommandOutput } from "./commands/StartClusterCommand";
@@ -17,6 +20,12 @@ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./command
17
20
  import { UpdateClusterCommandInput, UpdateClusterCommandOutput } from "./commands/UpdateClusterCommand";
18
21
  import { DocDBElasticClient } from "./DocDBElasticClient";
19
22
  export interface DocDBElastic {
23
+ /**
24
+ * @see {@link ApplyPendingMaintenanceActionCommand}
25
+ */
26
+ applyPendingMaintenanceAction(args: ApplyPendingMaintenanceActionCommandInput, options?: __HttpHandlerOptions): Promise<ApplyPendingMaintenanceActionCommandOutput>;
27
+ applyPendingMaintenanceAction(args: ApplyPendingMaintenanceActionCommandInput, cb: (err: any, data?: ApplyPendingMaintenanceActionCommandOutput) => void): void;
28
+ applyPendingMaintenanceAction(args: ApplyPendingMaintenanceActionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ApplyPendingMaintenanceActionCommandOutput) => void): void;
20
29
  /**
21
30
  * @see {@link CopyClusterSnapshotCommand}
22
31
  */
@@ -59,6 +68,12 @@ export interface DocDBElastic {
59
68
  getClusterSnapshot(args: GetClusterSnapshotCommandInput, options?: __HttpHandlerOptions): Promise<GetClusterSnapshotCommandOutput>;
60
69
  getClusterSnapshot(args: GetClusterSnapshotCommandInput, cb: (err: any, data?: GetClusterSnapshotCommandOutput) => void): void;
61
70
  getClusterSnapshot(args: GetClusterSnapshotCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetClusterSnapshotCommandOutput) => void): void;
71
+ /**
72
+ * @see {@link GetPendingMaintenanceActionCommand}
73
+ */
74
+ getPendingMaintenanceAction(args: GetPendingMaintenanceActionCommandInput, options?: __HttpHandlerOptions): Promise<GetPendingMaintenanceActionCommandOutput>;
75
+ getPendingMaintenanceAction(args: GetPendingMaintenanceActionCommandInput, cb: (err: any, data?: GetPendingMaintenanceActionCommandOutput) => void): void;
76
+ getPendingMaintenanceAction(args: GetPendingMaintenanceActionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPendingMaintenanceActionCommandOutput) => void): void;
62
77
  /**
63
78
  * @see {@link ListClustersCommand}
64
79
  */
@@ -73,6 +88,13 @@ export interface DocDBElastic {
73
88
  listClusterSnapshots(args: ListClusterSnapshotsCommandInput, options?: __HttpHandlerOptions): Promise<ListClusterSnapshotsCommandOutput>;
74
89
  listClusterSnapshots(args: ListClusterSnapshotsCommandInput, cb: (err: any, data?: ListClusterSnapshotsCommandOutput) => void): void;
75
90
  listClusterSnapshots(args: ListClusterSnapshotsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListClusterSnapshotsCommandOutput) => void): void;
91
+ /**
92
+ * @see {@link ListPendingMaintenanceActionsCommand}
93
+ */
94
+ listPendingMaintenanceActions(): Promise<ListPendingMaintenanceActionsCommandOutput>;
95
+ listPendingMaintenanceActions(args: ListPendingMaintenanceActionsCommandInput, options?: __HttpHandlerOptions): Promise<ListPendingMaintenanceActionsCommandOutput>;
96
+ listPendingMaintenanceActions(args: ListPendingMaintenanceActionsCommandInput, cb: (err: any, data?: ListPendingMaintenanceActionsCommandOutput) => void): void;
97
+ listPendingMaintenanceActions(args: ListPendingMaintenanceActionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListPendingMaintenanceActionsCommandOutput) => void): void;
76
98
  /**
77
99
  * @see {@link ListTagsForResourceCommand}
78
100
  */
@@ -7,6 +7,7 @@ import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol
7
7
  import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
8
8
  import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, 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 "@smithy/types";
9
9
  import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
10
+ import { ApplyPendingMaintenanceActionCommandInput, ApplyPendingMaintenanceActionCommandOutput } from "./commands/ApplyPendingMaintenanceActionCommand";
10
11
  import { CopyClusterSnapshotCommandInput, CopyClusterSnapshotCommandOutput } from "./commands/CopyClusterSnapshotCommand";
11
12
  import { CreateClusterCommandInput, CreateClusterCommandOutput } from "./commands/CreateClusterCommand";
12
13
  import { CreateClusterSnapshotCommandInput, CreateClusterSnapshotCommandOutput } from "./commands/CreateClusterSnapshotCommand";
@@ -14,8 +15,10 @@ import { DeleteClusterCommandInput, DeleteClusterCommandOutput } from "./command
14
15
  import { DeleteClusterSnapshotCommandInput, DeleteClusterSnapshotCommandOutput } from "./commands/DeleteClusterSnapshotCommand";
15
16
  import { GetClusterCommandInput, GetClusterCommandOutput } from "./commands/GetClusterCommand";
16
17
  import { GetClusterSnapshotCommandInput, GetClusterSnapshotCommandOutput } from "./commands/GetClusterSnapshotCommand";
18
+ import { GetPendingMaintenanceActionCommandInput, GetPendingMaintenanceActionCommandOutput } from "./commands/GetPendingMaintenanceActionCommand";
17
19
  import { ListClustersCommandInput, ListClustersCommandOutput } from "./commands/ListClustersCommand";
18
20
  import { ListClusterSnapshotsCommandInput, ListClusterSnapshotsCommandOutput } from "./commands/ListClusterSnapshotsCommand";
21
+ import { ListPendingMaintenanceActionsCommandInput, ListPendingMaintenanceActionsCommandOutput } from "./commands/ListPendingMaintenanceActionsCommand";
19
22
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
20
23
  import { RestoreClusterFromSnapshotCommandInput, RestoreClusterFromSnapshotCommandOutput } from "./commands/RestoreClusterFromSnapshotCommand";
21
24
  import { StartClusterCommandInput, StartClusterCommandOutput } from "./commands/StartClusterCommand";
@@ -29,11 +32,11 @@ export { __Client };
29
32
  /**
30
33
  * @public
31
34
  */
32
- export type ServiceInputTypes = CopyClusterSnapshotCommandInput | CreateClusterCommandInput | CreateClusterSnapshotCommandInput | DeleteClusterCommandInput | DeleteClusterSnapshotCommandInput | GetClusterCommandInput | GetClusterSnapshotCommandInput | ListClusterSnapshotsCommandInput | ListClustersCommandInput | ListTagsForResourceCommandInput | RestoreClusterFromSnapshotCommandInput | StartClusterCommandInput | StopClusterCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateClusterCommandInput;
35
+ export type ServiceInputTypes = ApplyPendingMaintenanceActionCommandInput | CopyClusterSnapshotCommandInput | CreateClusterCommandInput | CreateClusterSnapshotCommandInput | DeleteClusterCommandInput | DeleteClusterSnapshotCommandInput | GetClusterCommandInput | GetClusterSnapshotCommandInput | GetPendingMaintenanceActionCommandInput | ListClusterSnapshotsCommandInput | ListClustersCommandInput | ListPendingMaintenanceActionsCommandInput | ListTagsForResourceCommandInput | RestoreClusterFromSnapshotCommandInput | StartClusterCommandInput | StopClusterCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateClusterCommandInput;
33
36
  /**
34
37
  * @public
35
38
  */
36
- export type ServiceOutputTypes = CopyClusterSnapshotCommandOutput | CreateClusterCommandOutput | CreateClusterSnapshotCommandOutput | DeleteClusterCommandOutput | DeleteClusterSnapshotCommandOutput | GetClusterCommandOutput | GetClusterSnapshotCommandOutput | ListClusterSnapshotsCommandOutput | ListClustersCommandOutput | ListTagsForResourceCommandOutput | RestoreClusterFromSnapshotCommandOutput | StartClusterCommandOutput | StopClusterCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateClusterCommandOutput;
39
+ export type ServiceOutputTypes = ApplyPendingMaintenanceActionCommandOutput | CopyClusterSnapshotCommandOutput | CreateClusterCommandOutput | CreateClusterSnapshotCommandOutput | DeleteClusterCommandOutput | DeleteClusterSnapshotCommandOutput | GetClusterCommandOutput | GetClusterSnapshotCommandOutput | GetPendingMaintenanceActionCommandOutput | ListClusterSnapshotsCommandOutput | ListClustersCommandOutput | ListPendingMaintenanceActionsCommandOutput | ListTagsForResourceCommandOutput | RestoreClusterFromSnapshotCommandOutput | StartClusterCommandOutput | StopClusterCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateClusterCommandOutput;
37
40
  /**
38
41
  * @public
39
42
  */
@@ -0,0 +1,104 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { DocDBElasticClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DocDBElasticClient";
4
+ import { ApplyPendingMaintenanceActionInput, ApplyPendingMaintenanceActionOutput } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ApplyPendingMaintenanceActionCommand}.
14
+ */
15
+ export interface ApplyPendingMaintenanceActionCommandInput extends ApplyPendingMaintenanceActionInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ApplyPendingMaintenanceActionCommand}.
21
+ */
22
+ export interface ApplyPendingMaintenanceActionCommandOutput extends ApplyPendingMaintenanceActionOutput, __MetadataBearer {
23
+ }
24
+ declare const ApplyPendingMaintenanceActionCommand_base: {
25
+ new (input: ApplyPendingMaintenanceActionCommandInput): import("@smithy/smithy-client").CommandImpl<ApplyPendingMaintenanceActionCommandInput, ApplyPendingMaintenanceActionCommandOutput, DocDBElasticClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: ApplyPendingMaintenanceActionCommandInput): import("@smithy/smithy-client").CommandImpl<ApplyPendingMaintenanceActionCommandInput, ApplyPendingMaintenanceActionCommandOutput, DocDBElasticClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>The type of pending maintenance action to be applied to the resource.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { DocDBElasticClient, ApplyPendingMaintenanceActionCommand } from "@aws-sdk/client-docdb-elastic"; // ES Modules import
35
+ * // const { DocDBElasticClient, ApplyPendingMaintenanceActionCommand } = require("@aws-sdk/client-docdb-elastic"); // CommonJS import
36
+ * const client = new DocDBElasticClient(config);
37
+ * const input = { // ApplyPendingMaintenanceActionInput
38
+ * resourceArn: "STRING_VALUE", // required
39
+ * applyAction: "STRING_VALUE", // required
40
+ * optInType: "STRING_VALUE", // required
41
+ * applyOn: "STRING_VALUE",
42
+ * };
43
+ * const command = new ApplyPendingMaintenanceActionCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // ApplyPendingMaintenanceActionOutput
46
+ * // resourcePendingMaintenanceAction: { // ResourcePendingMaintenanceAction
47
+ * // resourceArn: "STRING_VALUE",
48
+ * // pendingMaintenanceActionDetails: [ // PendingMaintenanceActionDetailsList
49
+ * // { // PendingMaintenanceActionDetails
50
+ * // action: "STRING_VALUE", // required
51
+ * // autoAppliedAfterDate: "STRING_VALUE",
52
+ * // forcedApplyDate: "STRING_VALUE",
53
+ * // optInStatus: "STRING_VALUE",
54
+ * // currentApplyDate: "STRING_VALUE",
55
+ * // description: "STRING_VALUE",
56
+ * // },
57
+ * // ],
58
+ * // },
59
+ * // };
60
+ *
61
+ * ```
62
+ *
63
+ * @param ApplyPendingMaintenanceActionCommandInput - {@link ApplyPendingMaintenanceActionCommandInput}
64
+ * @returns {@link ApplyPendingMaintenanceActionCommandOutput}
65
+ * @see {@link ApplyPendingMaintenanceActionCommandInput} for command's `input` shape.
66
+ * @see {@link ApplyPendingMaintenanceActionCommandOutput} for command's `response` shape.
67
+ * @see {@link DocDBElasticClientResolvedConfig | config} for DocDBElasticClient's `config` shape.
68
+ *
69
+ * @throws {@link AccessDeniedException} (client fault)
70
+ * <p>An exception that occurs when there are not sufficient permissions to perform an action.</p>
71
+ *
72
+ * @throws {@link ConflictException} (client fault)
73
+ * <p>There was an access conflict.</p>
74
+ *
75
+ * @throws {@link InternalServerException} (server fault)
76
+ * <p>There was an internal server error.</p>
77
+ *
78
+ * @throws {@link ResourceNotFoundException} (client fault)
79
+ * <p>The specified resource could not be located.</p>
80
+ *
81
+ * @throws {@link ThrottlingException} (client fault)
82
+ * <p>ThrottlingException will be thrown when request was denied due to request throttling.</p>
83
+ *
84
+ * @throws {@link ValidationException} (client fault)
85
+ * <p>A structure defining a validation exception.</p>
86
+ *
87
+ * @throws {@link DocDBElasticServiceException}
88
+ * <p>Base exception class for all service exceptions from DocDBElastic service.</p>
89
+ *
90
+ * @public
91
+ */
92
+ export declare class ApplyPendingMaintenanceActionCommand extends ApplyPendingMaintenanceActionCommand_base {
93
+ /** @internal type navigation helper, not in runtime. */
94
+ protected static __types: {
95
+ api: {
96
+ input: ApplyPendingMaintenanceActionInput;
97
+ output: ApplyPendingMaintenanceActionOutput;
98
+ };
99
+ sdk: {
100
+ input: ApplyPendingMaintenanceActionCommandInput;
101
+ output: ApplyPendingMaintenanceActionCommandOutput;
102
+ };
103
+ };
104
+ }
@@ -0,0 +1,101 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { DocDBElasticClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DocDBElasticClient";
4
+ import { GetPendingMaintenanceActionInput, GetPendingMaintenanceActionOutput } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetPendingMaintenanceActionCommand}.
14
+ */
15
+ export interface GetPendingMaintenanceActionCommandInput extends GetPendingMaintenanceActionInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetPendingMaintenanceActionCommand}.
21
+ */
22
+ export interface GetPendingMaintenanceActionCommandOutput extends GetPendingMaintenanceActionOutput, __MetadataBearer {
23
+ }
24
+ declare const GetPendingMaintenanceActionCommand_base: {
25
+ new (input: GetPendingMaintenanceActionCommandInput): import("@smithy/smithy-client").CommandImpl<GetPendingMaintenanceActionCommandInput, GetPendingMaintenanceActionCommandOutput, DocDBElasticClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: GetPendingMaintenanceActionCommandInput): import("@smithy/smithy-client").CommandImpl<GetPendingMaintenanceActionCommandInput, GetPendingMaintenanceActionCommandOutput, DocDBElasticClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Retrieves all maintenance actions that are pending.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { DocDBElasticClient, GetPendingMaintenanceActionCommand } from "@aws-sdk/client-docdb-elastic"; // ES Modules import
35
+ * // const { DocDBElasticClient, GetPendingMaintenanceActionCommand } = require("@aws-sdk/client-docdb-elastic"); // CommonJS import
36
+ * const client = new DocDBElasticClient(config);
37
+ * const input = { // GetPendingMaintenanceActionInput
38
+ * resourceArn: "STRING_VALUE", // required
39
+ * };
40
+ * const command = new GetPendingMaintenanceActionCommand(input);
41
+ * const response = await client.send(command);
42
+ * // { // GetPendingMaintenanceActionOutput
43
+ * // resourcePendingMaintenanceAction: { // ResourcePendingMaintenanceAction
44
+ * // resourceArn: "STRING_VALUE",
45
+ * // pendingMaintenanceActionDetails: [ // PendingMaintenanceActionDetailsList
46
+ * // { // PendingMaintenanceActionDetails
47
+ * // action: "STRING_VALUE", // required
48
+ * // autoAppliedAfterDate: "STRING_VALUE",
49
+ * // forcedApplyDate: "STRING_VALUE",
50
+ * // optInStatus: "STRING_VALUE",
51
+ * // currentApplyDate: "STRING_VALUE",
52
+ * // description: "STRING_VALUE",
53
+ * // },
54
+ * // ],
55
+ * // },
56
+ * // };
57
+ *
58
+ * ```
59
+ *
60
+ * @param GetPendingMaintenanceActionCommandInput - {@link GetPendingMaintenanceActionCommandInput}
61
+ * @returns {@link GetPendingMaintenanceActionCommandOutput}
62
+ * @see {@link GetPendingMaintenanceActionCommandInput} for command's `input` shape.
63
+ * @see {@link GetPendingMaintenanceActionCommandOutput} for command's `response` shape.
64
+ * @see {@link DocDBElasticClientResolvedConfig | config} for DocDBElasticClient's `config` shape.
65
+ *
66
+ * @throws {@link AccessDeniedException} (client fault)
67
+ * <p>An exception that occurs when there are not sufficient permissions to perform an action.</p>
68
+ *
69
+ * @throws {@link ConflictException} (client fault)
70
+ * <p>There was an access conflict.</p>
71
+ *
72
+ * @throws {@link InternalServerException} (server fault)
73
+ * <p>There was an internal server error.</p>
74
+ *
75
+ * @throws {@link ResourceNotFoundException} (client fault)
76
+ * <p>The specified resource could not be located.</p>
77
+ *
78
+ * @throws {@link ThrottlingException} (client fault)
79
+ * <p>ThrottlingException will be thrown when request was denied due to request throttling.</p>
80
+ *
81
+ * @throws {@link ValidationException} (client fault)
82
+ * <p>A structure defining a validation exception.</p>
83
+ *
84
+ * @throws {@link DocDBElasticServiceException}
85
+ * <p>Base exception class for all service exceptions from DocDBElastic service.</p>
86
+ *
87
+ * @public
88
+ */
89
+ export declare class GetPendingMaintenanceActionCommand extends GetPendingMaintenanceActionCommand_base {
90
+ /** @internal type navigation helper, not in runtime. */
91
+ protected static __types: {
92
+ api: {
93
+ input: GetPendingMaintenanceActionInput;
94
+ output: GetPendingMaintenanceActionOutput;
95
+ };
96
+ sdk: {
97
+ input: GetPendingMaintenanceActionCommandInput;
98
+ output: GetPendingMaintenanceActionCommandOutput;
99
+ };
100
+ };
101
+ }