@aws-sdk/client-redshift-serverless 3.462.0 → 3.465.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 (82) hide show
  1. package/README.md +80 -0
  2. package/dist-cjs/RedshiftServerless.js +20 -0
  3. package/dist-cjs/commands/CreateScheduledActionCommand.js +51 -0
  4. package/dist-cjs/commands/CreateSnapshotCopyConfigurationCommand.js +51 -0
  5. package/dist-cjs/commands/DeleteScheduledActionCommand.js +51 -0
  6. package/dist-cjs/commands/DeleteSnapshotCopyConfigurationCommand.js +51 -0
  7. package/dist-cjs/commands/GetScheduledActionCommand.js +51 -0
  8. package/dist-cjs/commands/ListScheduledActionsCommand.js +51 -0
  9. package/dist-cjs/commands/ListSnapshotCopyConfigurationsCommand.js +51 -0
  10. package/dist-cjs/commands/RestoreTableFromRecoveryPointCommand.js +51 -0
  11. package/dist-cjs/commands/UpdateScheduledActionCommand.js +51 -0
  12. package/dist-cjs/commands/UpdateSnapshotCopyConfigurationCommand.js +51 -0
  13. package/dist-cjs/commands/index.js +10 -0
  14. package/dist-cjs/models/models_0.js +23 -1
  15. package/dist-cjs/pagination/ListScheduledActionsPaginator.js +29 -0
  16. package/dist-cjs/pagination/ListSnapshotCopyConfigurationsPaginator.js +29 -0
  17. package/dist-cjs/pagination/index.js +2 -0
  18. package/dist-cjs/protocols/Aws_json1_1.js +596 -2
  19. package/dist-es/RedshiftServerless.js +20 -0
  20. package/dist-es/commands/CreateScheduledActionCommand.js +47 -0
  21. package/dist-es/commands/CreateSnapshotCopyConfigurationCommand.js +47 -0
  22. package/dist-es/commands/DeleteScheduledActionCommand.js +47 -0
  23. package/dist-es/commands/DeleteSnapshotCopyConfigurationCommand.js +47 -0
  24. package/dist-es/commands/GetScheduledActionCommand.js +47 -0
  25. package/dist-es/commands/ListScheduledActionsCommand.js +47 -0
  26. package/dist-es/commands/ListSnapshotCopyConfigurationsCommand.js +47 -0
  27. package/dist-es/commands/RestoreTableFromRecoveryPointCommand.js +47 -0
  28. package/dist-es/commands/UpdateScheduledActionCommand.js +47 -0
  29. package/dist-es/commands/UpdateSnapshotCopyConfigurationCommand.js +47 -0
  30. package/dist-es/commands/index.js +10 -0
  31. package/dist-es/models/models_0.js +22 -0
  32. package/dist-es/pagination/ListScheduledActionsPaginator.js +25 -0
  33. package/dist-es/pagination/ListSnapshotCopyConfigurationsPaginator.js +25 -0
  34. package/dist-es/pagination/index.js +2 -0
  35. package/dist-es/protocols/Aws_json1_1.js +574 -1
  36. package/dist-types/RedshiftServerless.d.ts +70 -0
  37. package/dist-types/RedshiftServerlessClient.d.ts +12 -2
  38. package/dist-types/commands/CreateEndpointAccessCommand.d.ts +1 -0
  39. package/dist-types/commands/CreateScheduledActionCommand.d.ts +138 -0
  40. package/dist-types/commands/CreateSnapshotCopyConfigurationCommand.d.ts +101 -0
  41. package/dist-types/commands/CreateWorkgroupCommand.d.ts +3 -0
  42. package/dist-types/commands/DeleteScheduledActionCommand.d.ts +111 -0
  43. package/dist-types/commands/DeleteSnapshotCopyConfigurationCommand.d.ts +95 -0
  44. package/dist-types/commands/DeleteWorkgroupCommand.d.ts +3 -0
  45. package/dist-types/commands/GetScheduledActionCommand.d.ts +111 -0
  46. package/dist-types/commands/GetTableRestoreStatusCommand.d.ts +1 -0
  47. package/dist-types/commands/GetWorkgroupCommand.d.ts +3 -0
  48. package/dist-types/commands/ListEndpointAccessCommand.d.ts +1 -0
  49. package/dist-types/commands/ListScheduledActionsCommand.d.ts +90 -0
  50. package/dist-types/commands/ListSnapshotCopyConfigurationsCommand.d.ts +100 -0
  51. package/dist-types/commands/ListTableRestoreStatusCommand.d.ts +1 -0
  52. package/dist-types/commands/ListWorkgroupsCommand.d.ts +4 -0
  53. package/dist-types/commands/RestoreTableFromRecoveryPointCommand.d.ts +111 -0
  54. package/dist-types/commands/RestoreTableFromSnapshotCommand.d.ts +1 -0
  55. package/dist-types/commands/UpdateScheduledActionCommand.d.ts +136 -0
  56. package/dist-types/commands/UpdateSnapshotCopyConfigurationCommand.d.ts +96 -0
  57. package/dist-types/commands/UpdateWorkgroupCommand.d.ts +3 -0
  58. package/dist-types/commands/index.d.ts +10 -0
  59. package/dist-types/models/models_0.d.ts +648 -8
  60. package/dist-types/pagination/ListScheduledActionsPaginator.d.ts +7 -0
  61. package/dist-types/pagination/ListSnapshotCopyConfigurationsPaginator.d.ts +7 -0
  62. package/dist-types/pagination/index.d.ts +2 -0
  63. package/dist-types/protocols/Aws_json1_1.d.ts +90 -0
  64. package/dist-types/ts3.4/RedshiftServerless.d.ts +170 -0
  65. package/dist-types/ts3.4/RedshiftServerlessClient.d.ts +60 -0
  66. package/dist-types/ts3.4/commands/CreateScheduledActionCommand.d.ts +42 -0
  67. package/dist-types/ts3.4/commands/CreateSnapshotCopyConfigurationCommand.d.ts +42 -0
  68. package/dist-types/ts3.4/commands/DeleteScheduledActionCommand.d.ts +42 -0
  69. package/dist-types/ts3.4/commands/DeleteSnapshotCopyConfigurationCommand.d.ts +42 -0
  70. package/dist-types/ts3.4/commands/GetScheduledActionCommand.d.ts +39 -0
  71. package/dist-types/ts3.4/commands/ListScheduledActionsCommand.d.ts +42 -0
  72. package/dist-types/ts3.4/commands/ListSnapshotCopyConfigurationsCommand.d.ts +42 -0
  73. package/dist-types/ts3.4/commands/RestoreTableFromRecoveryPointCommand.d.ts +42 -0
  74. package/dist-types/ts3.4/commands/UpdateScheduledActionCommand.d.ts +42 -0
  75. package/dist-types/ts3.4/commands/UpdateSnapshotCopyConfigurationCommand.d.ts +42 -0
  76. package/dist-types/ts3.4/commands/index.d.ts +10 -0
  77. package/dist-types/ts3.4/models/models_0.d.ts +176 -0
  78. package/dist-types/ts3.4/pagination/ListScheduledActionsPaginator.d.ts +11 -0
  79. package/dist-types/ts3.4/pagination/ListSnapshotCopyConfigurationsPaginator.d.ts +11 -0
  80. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  81. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +120 -0
  82. package/package.json +14 -16
@@ -0,0 +1,136 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { UpdateScheduledActionRequest, UpdateScheduledActionResponse } from "../models/models_0";
5
+ import { RedshiftServerlessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftServerlessClient";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdateScheduledActionCommand}.
14
+ */
15
+ export interface UpdateScheduledActionCommandInput extends UpdateScheduledActionRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateScheduledActionCommand}.
21
+ */
22
+ export interface UpdateScheduledActionCommandOutput extends UpdateScheduledActionResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Updates a scheduled action.</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { RedshiftServerlessClient, UpdateScheduledActionCommand } from "@aws-sdk/client-redshift-serverless"; // ES Modules import
31
+ * // const { RedshiftServerlessClient, UpdateScheduledActionCommand } = require("@aws-sdk/client-redshift-serverless"); // CommonJS import
32
+ * const client = new RedshiftServerlessClient(config);
33
+ * const input = { // UpdateScheduledActionRequest
34
+ * scheduledActionName: "STRING_VALUE", // required
35
+ * targetAction: { // TargetAction Union: only one key present
36
+ * createSnapshot: { // CreateSnapshotScheduleActionParameters
37
+ * namespaceName: "STRING_VALUE", // required
38
+ * snapshotNamePrefix: "STRING_VALUE", // required
39
+ * retentionPeriod: Number("int"),
40
+ * tags: [ // TagList
41
+ * { // Tag
42
+ * key: "STRING_VALUE", // required
43
+ * value: "STRING_VALUE", // required
44
+ * },
45
+ * ],
46
+ * },
47
+ * },
48
+ * schedule: { // Schedule Union: only one key present
49
+ * at: new Date("TIMESTAMP"),
50
+ * cron: "STRING_VALUE",
51
+ * },
52
+ * roleArn: "STRING_VALUE",
53
+ * enabled: true || false,
54
+ * scheduledActionDescription: "STRING_VALUE",
55
+ * startTime: new Date("TIMESTAMP"),
56
+ * endTime: new Date("TIMESTAMP"),
57
+ * };
58
+ * const command = new UpdateScheduledActionCommand(input);
59
+ * const response = await client.send(command);
60
+ * // { // UpdateScheduledActionResponse
61
+ * // scheduledAction: { // ScheduledActionResponse
62
+ * // scheduledActionName: "STRING_VALUE",
63
+ * // schedule: { // Schedule Union: only one key present
64
+ * // at: new Date("TIMESTAMP"),
65
+ * // cron: "STRING_VALUE",
66
+ * // },
67
+ * // scheduledActionDescription: "STRING_VALUE",
68
+ * // nextInvocations: [ // NextInvocationsList
69
+ * // new Date("TIMESTAMP"),
70
+ * // ],
71
+ * // roleArn: "STRING_VALUE",
72
+ * // state: "STRING_VALUE",
73
+ * // startTime: new Date("TIMESTAMP"),
74
+ * // endTime: new Date("TIMESTAMP"),
75
+ * // targetAction: { // TargetAction Union: only one key present
76
+ * // createSnapshot: { // CreateSnapshotScheduleActionParameters
77
+ * // namespaceName: "STRING_VALUE", // required
78
+ * // snapshotNamePrefix: "STRING_VALUE", // required
79
+ * // retentionPeriod: Number("int"),
80
+ * // tags: [ // TagList
81
+ * // { // Tag
82
+ * // key: "STRING_VALUE", // required
83
+ * // value: "STRING_VALUE", // required
84
+ * // },
85
+ * // ],
86
+ * // },
87
+ * // },
88
+ * // namespaceName: "STRING_VALUE",
89
+ * // scheduledActionUuid: "STRING_VALUE",
90
+ * // },
91
+ * // };
92
+ *
93
+ * ```
94
+ *
95
+ * @param UpdateScheduledActionCommandInput - {@link UpdateScheduledActionCommandInput}
96
+ * @returns {@link UpdateScheduledActionCommandOutput}
97
+ * @see {@link UpdateScheduledActionCommandInput} for command's `input` shape.
98
+ * @see {@link UpdateScheduledActionCommandOutput} for command's `response` shape.
99
+ * @see {@link RedshiftServerlessClientResolvedConfig | config} for RedshiftServerlessClient's `config` shape.
100
+ *
101
+ * @throws {@link ConflictException} (client fault)
102
+ * <p>The submitted action has conflicts.</p>
103
+ *
104
+ * @throws {@link InternalServerException} (server fault)
105
+ * <p>The request processing has failed because of an unknown error, exception or failure.</p>
106
+ *
107
+ * @throws {@link ResourceNotFoundException} (client fault)
108
+ * <p>The resource could not be found.</p>
109
+ *
110
+ * @throws {@link ValidationException} (client fault)
111
+ * <p>The input failed to satisfy the constraints specified by an AWS service.</p>
112
+ *
113
+ * @throws {@link RedshiftServerlessServiceException}
114
+ * <p>Base exception class for all service exceptions from RedshiftServerless service.</p>
115
+ *
116
+ */
117
+ export declare class UpdateScheduledActionCommand extends $Command<UpdateScheduledActionCommandInput, UpdateScheduledActionCommandOutput, RedshiftServerlessClientResolvedConfig> {
118
+ readonly input: UpdateScheduledActionCommandInput;
119
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
120
+ /**
121
+ * @public
122
+ */
123
+ constructor(input: UpdateScheduledActionCommandInput);
124
+ /**
125
+ * @internal
126
+ */
127
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: RedshiftServerlessClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateScheduledActionCommandInput, UpdateScheduledActionCommandOutput>;
128
+ /**
129
+ * @internal
130
+ */
131
+ private serialize;
132
+ /**
133
+ * @internal
134
+ */
135
+ private deserialize;
136
+ }
@@ -0,0 +1,96 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { UpdateSnapshotCopyConfigurationRequest, UpdateSnapshotCopyConfigurationResponse } from "../models/models_0";
5
+ import { RedshiftServerlessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftServerlessClient";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdateSnapshotCopyConfigurationCommand}.
14
+ */
15
+ export interface UpdateSnapshotCopyConfigurationCommandInput extends UpdateSnapshotCopyConfigurationRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateSnapshotCopyConfigurationCommand}.
21
+ */
22
+ export interface UpdateSnapshotCopyConfigurationCommandOutput extends UpdateSnapshotCopyConfigurationResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Updates a snapshot copy configuration.</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { RedshiftServerlessClient, UpdateSnapshotCopyConfigurationCommand } from "@aws-sdk/client-redshift-serverless"; // ES Modules import
31
+ * // const { RedshiftServerlessClient, UpdateSnapshotCopyConfigurationCommand } = require("@aws-sdk/client-redshift-serverless"); // CommonJS import
32
+ * const client = new RedshiftServerlessClient(config);
33
+ * const input = { // UpdateSnapshotCopyConfigurationRequest
34
+ * snapshotCopyConfigurationId: "STRING_VALUE", // required
35
+ * snapshotRetentionPeriod: Number("int"),
36
+ * };
37
+ * const command = new UpdateSnapshotCopyConfigurationCommand(input);
38
+ * const response = await client.send(command);
39
+ * // { // UpdateSnapshotCopyConfigurationResponse
40
+ * // snapshotCopyConfiguration: { // SnapshotCopyConfiguration
41
+ * // snapshotCopyConfigurationId: "STRING_VALUE",
42
+ * // snapshotCopyConfigurationArn: "STRING_VALUE",
43
+ * // namespaceName: "STRING_VALUE",
44
+ * // destinationRegion: "STRING_VALUE",
45
+ * // snapshotRetentionPeriod: Number("int"),
46
+ * // destinationKmsKeyId: "STRING_VALUE",
47
+ * // },
48
+ * // };
49
+ *
50
+ * ```
51
+ *
52
+ * @param UpdateSnapshotCopyConfigurationCommandInput - {@link UpdateSnapshotCopyConfigurationCommandInput}
53
+ * @returns {@link UpdateSnapshotCopyConfigurationCommandOutput}
54
+ * @see {@link UpdateSnapshotCopyConfigurationCommandInput} for command's `input` shape.
55
+ * @see {@link UpdateSnapshotCopyConfigurationCommandOutput} for command's `response` shape.
56
+ * @see {@link RedshiftServerlessClientResolvedConfig | config} for RedshiftServerlessClient's `config` shape.
57
+ *
58
+ * @throws {@link AccessDeniedException} (client fault)
59
+ * <p>You do not have sufficient access to perform this action.</p>
60
+ *
61
+ * @throws {@link ConflictException} (client fault)
62
+ * <p>The submitted action has conflicts.</p>
63
+ *
64
+ * @throws {@link InternalServerException} (server fault)
65
+ * <p>The request processing has failed because of an unknown error, exception or failure.</p>
66
+ *
67
+ * @throws {@link ResourceNotFoundException} (client fault)
68
+ * <p>The resource could not be found.</p>
69
+ *
70
+ * @throws {@link ValidationException} (client fault)
71
+ * <p>The input failed to satisfy the constraints specified by an AWS service.</p>
72
+ *
73
+ * @throws {@link RedshiftServerlessServiceException}
74
+ * <p>Base exception class for all service exceptions from RedshiftServerless service.</p>
75
+ *
76
+ */
77
+ export declare class UpdateSnapshotCopyConfigurationCommand extends $Command<UpdateSnapshotCopyConfigurationCommandInput, UpdateSnapshotCopyConfigurationCommandOutput, RedshiftServerlessClientResolvedConfig> {
78
+ readonly input: UpdateSnapshotCopyConfigurationCommandInput;
79
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
80
+ /**
81
+ * @public
82
+ */
83
+ constructor(input: UpdateSnapshotCopyConfigurationCommandInput);
84
+ /**
85
+ * @internal
86
+ */
87
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: RedshiftServerlessClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateSnapshotCopyConfigurationCommandInput, UpdateSnapshotCopyConfigurationCommandOutput>;
88
+ /**
89
+ * @internal
90
+ */
91
+ private serialize;
92
+ /**
93
+ * @internal
94
+ */
95
+ private deserialize;
96
+ }
@@ -101,6 +101,9 @@ export interface UpdateWorkgroupCommandOutput extends UpdateWorkgroupResponse, _
101
101
  * // workgroupVersion: "STRING_VALUE",
102
102
  * // patchVersion: "STRING_VALUE",
103
103
  * // maxCapacity: Number("int"),
104
+ * // crossAccountVpcs: [ // VpcIds
105
+ * // "STRING_VALUE",
106
+ * // ],
104
107
  * // },
105
108
  * // };
106
109
  *
@@ -2,14 +2,18 @@ export * from "./ConvertRecoveryPointToSnapshotCommand";
2
2
  export * from "./CreateCustomDomainAssociationCommand";
3
3
  export * from "./CreateEndpointAccessCommand";
4
4
  export * from "./CreateNamespaceCommand";
5
+ export * from "./CreateScheduledActionCommand";
5
6
  export * from "./CreateSnapshotCommand";
7
+ export * from "./CreateSnapshotCopyConfigurationCommand";
6
8
  export * from "./CreateUsageLimitCommand";
7
9
  export * from "./CreateWorkgroupCommand";
8
10
  export * from "./DeleteCustomDomainAssociationCommand";
9
11
  export * from "./DeleteEndpointAccessCommand";
10
12
  export * from "./DeleteNamespaceCommand";
11
13
  export * from "./DeleteResourcePolicyCommand";
14
+ export * from "./DeleteScheduledActionCommand";
12
15
  export * from "./DeleteSnapshotCommand";
16
+ export * from "./DeleteSnapshotCopyConfigurationCommand";
13
17
  export * from "./DeleteUsageLimitCommand";
14
18
  export * from "./DeleteWorkgroupCommand";
15
19
  export * from "./GetCredentialsCommand";
@@ -18,6 +22,7 @@ export * from "./GetEndpointAccessCommand";
18
22
  export * from "./GetNamespaceCommand";
19
23
  export * from "./GetRecoveryPointCommand";
20
24
  export * from "./GetResourcePolicyCommand";
25
+ export * from "./GetScheduledActionCommand";
21
26
  export * from "./GetSnapshotCommand";
22
27
  export * from "./GetTableRestoreStatusCommand";
23
28
  export * from "./GetUsageLimitCommand";
@@ -26,6 +31,8 @@ export * from "./ListCustomDomainAssociationsCommand";
26
31
  export * from "./ListEndpointAccessCommand";
27
32
  export * from "./ListNamespacesCommand";
28
33
  export * from "./ListRecoveryPointsCommand";
34
+ export * from "./ListScheduledActionsCommand";
35
+ export * from "./ListSnapshotCopyConfigurationsCommand";
29
36
  export * from "./ListSnapshotsCommand";
30
37
  export * from "./ListTableRestoreStatusCommand";
31
38
  export * from "./ListTagsForResourceCommand";
@@ -34,12 +41,15 @@ export * from "./ListWorkgroupsCommand";
34
41
  export * from "./PutResourcePolicyCommand";
35
42
  export * from "./RestoreFromRecoveryPointCommand";
36
43
  export * from "./RestoreFromSnapshotCommand";
44
+ export * from "./RestoreTableFromRecoveryPointCommand";
37
45
  export * from "./RestoreTableFromSnapshotCommand";
38
46
  export * from "./TagResourceCommand";
39
47
  export * from "./UntagResourceCommand";
40
48
  export * from "./UpdateCustomDomainAssociationCommand";
41
49
  export * from "./UpdateEndpointAccessCommand";
42
50
  export * from "./UpdateNamespaceCommand";
51
+ export * from "./UpdateScheduledActionCommand";
43
52
  export * from "./UpdateSnapshotCommand";
53
+ export * from "./UpdateSnapshotCopyConfigurationCommand";
44
54
  export * from "./UpdateUsageLimitCommand";
45
55
  export * from "./UpdateWorkgroupCommand";