@aws-sdk/client-medialive 3.645.0 → 3.650.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.
- package/README.md +176 -0
- package/dist-cjs/endpoint/endpointResolver.js +6 -2
- package/dist-cjs/index.js +2364 -442
- package/dist-es/MediaLive.js +44 -0
- package/dist-es/commands/AcceptInputDeviceTransferCommand.js +1 -3
- package/dist-es/commands/BatchDeleteCommand.js +1 -3
- package/dist-es/commands/BatchStartCommand.js +1 -3
- package/dist-es/commands/BatchStopCommand.js +1 -3
- package/dist-es/commands/BatchUpdateScheduleCommand.js +1 -3
- package/dist-es/commands/CancelInputDeviceTransferCommand.js +1 -3
- package/dist-es/commands/ClaimDeviceCommand.js +1 -3
- package/dist-es/commands/CreateChannelCommand.js +1 -3
- package/dist-es/commands/CreateChannelPlacementGroupCommand.js +22 -0
- package/dist-es/commands/CreateCloudWatchAlarmTemplateCommand.js +1 -3
- package/dist-es/commands/CreateCloudWatchAlarmTemplateGroupCommand.js +1 -3
- package/dist-es/commands/CreateClusterCommand.js +22 -0
- package/dist-es/commands/CreateEventBridgeRuleTemplateCommand.js +1 -3
- package/dist-es/commands/CreateEventBridgeRuleTemplateGroupCommand.js +1 -3
- package/dist-es/commands/CreateInputCommand.js +1 -3
- package/dist-es/commands/CreateInputSecurityGroupCommand.js +1 -3
- package/dist-es/commands/CreateMultiplexCommand.js +1 -3
- package/dist-es/commands/CreateMultiplexProgramCommand.js +1 -3
- package/dist-es/commands/CreateNetworkCommand.js +22 -0
- package/dist-es/commands/CreateNodeCommand.js +22 -0
- package/dist-es/commands/CreateNodeRegistrationScriptCommand.js +22 -0
- package/dist-es/commands/CreatePartnerInputCommand.js +1 -3
- package/dist-es/commands/CreateSignalMapCommand.js +1 -3
- package/dist-es/commands/CreateTagsCommand.js +1 -3
- package/dist-es/commands/DeleteChannelCommand.js +1 -3
- package/dist-es/commands/DeleteChannelPlacementGroupCommand.js +22 -0
- package/dist-es/commands/DeleteCloudWatchAlarmTemplateCommand.js +1 -3
- package/dist-es/commands/DeleteCloudWatchAlarmTemplateGroupCommand.js +1 -3
- package/dist-es/commands/DeleteClusterCommand.js +22 -0
- package/dist-es/commands/DeleteEventBridgeRuleTemplateCommand.js +1 -3
- package/dist-es/commands/DeleteEventBridgeRuleTemplateGroupCommand.js +1 -3
- package/dist-es/commands/DeleteInputCommand.js +1 -3
- package/dist-es/commands/DeleteInputSecurityGroupCommand.js +1 -3
- package/dist-es/commands/DeleteMultiplexCommand.js +1 -3
- package/dist-es/commands/DeleteMultiplexProgramCommand.js +1 -3
- package/dist-es/commands/DeleteNetworkCommand.js +22 -0
- package/dist-es/commands/DeleteNodeCommand.js +22 -0
- package/dist-es/commands/DeleteReservationCommand.js +1 -3
- package/dist-es/commands/DeleteScheduleCommand.js +1 -3
- package/dist-es/commands/DeleteSignalMapCommand.js +1 -3
- package/dist-es/commands/DeleteTagsCommand.js +1 -3
- package/dist-es/commands/DescribeAccountConfigurationCommand.js +1 -3
- package/dist-es/commands/DescribeChannelCommand.js +1 -3
- package/dist-es/commands/DescribeChannelPlacementGroupCommand.js +22 -0
- package/dist-es/commands/DescribeClusterCommand.js +22 -0
- package/dist-es/commands/DescribeInputCommand.js +1 -3
- package/dist-es/commands/DescribeInputDeviceCommand.js +1 -3
- package/dist-es/commands/DescribeInputDeviceThumbnailCommand.js +1 -3
- package/dist-es/commands/DescribeInputSecurityGroupCommand.js +1 -3
- package/dist-es/commands/DescribeMultiplexCommand.js +1 -3
- package/dist-es/commands/DescribeMultiplexProgramCommand.js +1 -3
- package/dist-es/commands/DescribeNetworkCommand.js +22 -0
- package/dist-es/commands/DescribeNodeCommand.js +22 -0
- package/dist-es/commands/DescribeOfferingCommand.js +1 -3
- package/dist-es/commands/DescribeReservationCommand.js +1 -3
- package/dist-es/commands/DescribeScheduleCommand.js +1 -3
- package/dist-es/commands/DescribeThumbnailsCommand.js +1 -3
- package/dist-es/commands/GetCloudWatchAlarmTemplateCommand.js +1 -3
- package/dist-es/commands/GetCloudWatchAlarmTemplateGroupCommand.js +1 -3
- package/dist-es/commands/GetEventBridgeRuleTemplateCommand.js +1 -3
- package/dist-es/commands/GetEventBridgeRuleTemplateGroupCommand.js +1 -3
- package/dist-es/commands/GetSignalMapCommand.js +1 -3
- package/dist-es/commands/ListChannelPlacementGroupsCommand.js +22 -0
- package/dist-es/commands/ListChannelsCommand.js +1 -3
- package/dist-es/commands/ListCloudWatchAlarmTemplateGroupsCommand.js +1 -3
- package/dist-es/commands/ListCloudWatchAlarmTemplatesCommand.js +1 -3
- package/dist-es/commands/ListClustersCommand.js +22 -0
- package/dist-es/commands/ListEventBridgeRuleTemplateGroupsCommand.js +1 -3
- package/dist-es/commands/ListEventBridgeRuleTemplatesCommand.js +1 -3
- package/dist-es/commands/ListInputDeviceTransfersCommand.js +1 -3
- package/dist-es/commands/ListInputDevicesCommand.js +1 -3
- package/dist-es/commands/ListInputSecurityGroupsCommand.js +1 -3
- package/dist-es/commands/ListInputsCommand.js +1 -3
- package/dist-es/commands/ListMultiplexProgramsCommand.js +1 -3
- package/dist-es/commands/ListMultiplexesCommand.js +1 -3
- package/dist-es/commands/ListNetworksCommand.js +22 -0
- package/dist-es/commands/ListNodesCommand.js +22 -0
- package/dist-es/commands/ListOfferingsCommand.js +1 -3
- package/dist-es/commands/ListReservationsCommand.js +1 -3
- package/dist-es/commands/ListSignalMapsCommand.js +1 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +1 -3
- package/dist-es/commands/PurchaseOfferingCommand.js +1 -3
- package/dist-es/commands/RebootInputDeviceCommand.js +1 -3
- package/dist-es/commands/RejectInputDeviceTransferCommand.js +1 -3
- package/dist-es/commands/RestartChannelPipelinesCommand.js +1 -3
- package/dist-es/commands/StartChannelCommand.js +1 -3
- package/dist-es/commands/StartDeleteMonitorDeploymentCommand.js +1 -3
- package/dist-es/commands/StartInputDeviceCommand.js +1 -3
- package/dist-es/commands/StartInputDeviceMaintenanceWindowCommand.js +1 -3
- package/dist-es/commands/StartMonitorDeploymentCommand.js +1 -3
- package/dist-es/commands/StartMultiplexCommand.js +1 -3
- package/dist-es/commands/StartUpdateSignalMapCommand.js +1 -3
- package/dist-es/commands/StopChannelCommand.js +1 -3
- package/dist-es/commands/StopInputDeviceCommand.js +1 -3
- package/dist-es/commands/StopMultiplexCommand.js +1 -3
- package/dist-es/commands/TransferInputDeviceCommand.js +1 -3
- package/dist-es/commands/UpdateAccountConfigurationCommand.js +1 -3
- package/dist-es/commands/UpdateChannelClassCommand.js +1 -3
- package/dist-es/commands/UpdateChannelCommand.js +1 -3
- package/dist-es/commands/UpdateChannelPlacementGroupCommand.js +22 -0
- package/dist-es/commands/UpdateCloudWatchAlarmTemplateCommand.js +1 -3
- package/dist-es/commands/UpdateCloudWatchAlarmTemplateGroupCommand.js +1 -3
- package/dist-es/commands/UpdateClusterCommand.js +22 -0
- package/dist-es/commands/UpdateEventBridgeRuleTemplateCommand.js +1 -3
- package/dist-es/commands/UpdateEventBridgeRuleTemplateGroupCommand.js +1 -3
- package/dist-es/commands/UpdateInputCommand.js +1 -3
- package/dist-es/commands/UpdateInputDeviceCommand.js +1 -3
- package/dist-es/commands/UpdateInputSecurityGroupCommand.js +1 -3
- package/dist-es/commands/UpdateMultiplexCommand.js +1 -3
- package/dist-es/commands/UpdateMultiplexProgramCommand.js +1 -3
- package/dist-es/commands/UpdateNetworkCommand.js +22 -0
- package/dist-es/commands/UpdateNodeCommand.js +22 -0
- package/dist-es/commands/UpdateNodeStateCommand.js +22 -0
- package/dist-es/commands/UpdateReservationCommand.js +1 -3
- package/dist-es/commands/index.js +22 -0
- package/dist-es/endpoint/endpointResolver.js +7 -3
- package/dist-es/models/models_0.js +64 -60
- package/dist-es/models/models_1.js +115 -41
- package/dist-es/models/models_2.js +25 -0
- package/dist-es/pagination/ListChannelPlacementGroupsPaginator.js +4 -0
- package/dist-es/pagination/ListClustersPaginator.js +4 -0
- package/dist-es/pagination/ListNetworksPaginator.js +4 -0
- package/dist-es/pagination/ListNodesPaginator.js +4 -0
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/protocols/Aws_restJson1.js +1247 -5
- package/dist-es/waiters/index.js +7 -0
- package/dist-es/waiters/waitForChannelPlacementGroupAssigned.js +43 -0
- package/dist-es/waiters/waitForChannelPlacementGroupDeleted.js +43 -0
- package/dist-es/waiters/waitForChannelPlacementGroupUnassigned.js +43 -0
- package/dist-es/waiters/waitForClusterCreated.js +52 -0
- package/dist-es/waiters/waitForClusterDeleted.js +43 -0
- package/dist-es/waiters/waitForNodeDeregistered.js +52 -0
- package/dist-es/waiters/waitForNodeRegistered.js +55 -0
- package/dist-types/MediaLive.d.ts +158 -0
- package/dist-types/MediaLiveClient.d.ts +24 -2
- package/dist-types/commands/ClaimDeviceCommand.d.ts +1 -1
- package/dist-types/commands/CreateChannelCommand.d.ts +247 -19
- package/dist-types/commands/CreateChannelPlacementGroupCommand.d.ts +99 -0
- package/dist-types/commands/CreateCloudWatchAlarmTemplateCommand.d.ts +1 -1
- package/dist-types/commands/CreateCloudWatchAlarmTemplateGroupCommand.d.ts +1 -1
- package/dist-types/commands/CreateClusterCommand.d.ts +113 -0
- package/dist-types/commands/CreateEventBridgeRuleTemplateCommand.d.ts +1 -1
- package/dist-types/commands/CreateEventBridgeRuleTemplateGroupCommand.d.ts +1 -1
- package/dist-types/commands/CreateInputCommand.d.ts +36 -3
- package/dist-types/commands/CreateInputSecurityGroupCommand.d.ts +1 -1
- package/dist-types/commands/CreateMultiplexCommand.d.ts +1 -1
- package/dist-types/commands/CreateMultiplexProgramCommand.d.ts +1 -1
- package/dist-types/commands/CreateNetworkCommand.d.ts +113 -0
- package/dist-types/commands/CreateNodeCommand.d.ts +111 -0
- package/dist-types/commands/CreateNodeRegistrationScriptCommand.d.ts +92 -0
- package/dist-types/commands/CreatePartnerInputCommand.d.ts +18 -2
- package/dist-types/commands/DeleteChannelCommand.d.ts +123 -9
- package/dist-types/commands/DeleteChannelPlacementGroupCommand.d.ts +95 -0
- package/dist-types/commands/DeleteClusterCommand.d.ts +101 -0
- package/dist-types/commands/DeleteNetworkCommand.d.ts +101 -0
- package/dist-types/commands/DeleteNodeCommand.d.ts +102 -0
- package/dist-types/commands/DeleteReservationCommand.d.ts +1 -1
- package/dist-types/commands/DescribeChannelCommand.d.ts +123 -9
- package/dist-types/commands/DescribeChannelPlacementGroupCommand.d.ts +92 -0
- package/dist-types/commands/DescribeClusterCommand.d.ts +98 -0
- package/dist-types/commands/DescribeInputCommand.d.ts +17 -1
- package/dist-types/commands/DescribeNetworkCommand.d.ts +98 -0
- package/dist-types/commands/DescribeNodeCommand.d.ts +99 -0
- package/dist-types/commands/DescribeOfferingCommand.d.ts +1 -1
- package/dist-types/commands/DescribeReservationCommand.d.ts +1 -1
- package/dist-types/commands/ListChannelPlacementGroupsCommand.d.ts +95 -0
- package/dist-types/commands/ListChannelsCommand.d.ts +18 -1
- package/dist-types/commands/ListClustersCommand.d.ts +101 -0
- package/dist-types/commands/ListInputsCommand.d.ts +17 -1
- package/dist-types/commands/ListNetworksCommand.d.ts +101 -0
- package/dist-types/commands/ListNodesCommand.d.ts +103 -0
- package/dist-types/commands/ListOfferingsCommand.d.ts +1 -1
- package/dist-types/commands/ListReservationsCommand.d.ts +1 -1
- package/dist-types/commands/PurchaseOfferingCommand.d.ts +1 -1
- package/dist-types/commands/RestartChannelPipelinesCommand.d.ts +123 -9
- package/dist-types/commands/StartChannelCommand.d.ts +123 -9
- package/dist-types/commands/StopChannelCommand.d.ts +123 -9
- package/dist-types/commands/UpdateChannelClassCommand.d.ts +130 -9
- package/dist-types/commands/UpdateChannelCommand.d.ts +239 -9
- package/dist-types/commands/UpdateChannelPlacementGroupCommand.d.ts +99 -0
- package/dist-types/commands/UpdateClusterCommand.d.ts +107 -0
- package/dist-types/commands/UpdateInputCommand.d.ts +33 -1
- package/dist-types/commands/UpdateNetworkCommand.d.ts +110 -0
- package/dist-types/commands/UpdateNodeCommand.d.ts +101 -0
- package/dist-types/commands/UpdateNodeStateCommand.d.ts +103 -0
- package/dist-types/commands/UpdateReservationCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +22 -0
- package/dist-types/models/models_0.d.ts +1584 -1537
- package/dist-types/models/models_1.d.ts +3553 -3959
- package/dist-types/models/models_2.d.ts +2877 -65
- package/dist-types/pagination/ListChannelPlacementGroupsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListClustersPaginator.d.ts +7 -0
- package/dist-types/pagination/ListNetworksPaginator.d.ts +7 -0
- package/dist-types/pagination/ListNodesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +198 -0
- package/dist-types/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/runtimeConfig.d.ts +2 -0
- package/dist-types/runtimeConfig.native.d.ts +2 -0
- package/dist-types/ts3.4/MediaLive.d.ts +378 -0
- package/dist-types/ts3.4/MediaLiveClient.d.ts +132 -0
- package/dist-types/ts3.4/commands/ClaimDeviceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreateChannelCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreateChannelPlacementGroupCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/CreateCloudWatchAlarmTemplateCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreateCloudWatchAlarmTemplateGroupCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreateClusterCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/CreateEventBridgeRuleTemplateCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreateEventBridgeRuleTemplateGroupCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreateInputCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreateInputSecurityGroupCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreateMultiplexCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreateMultiplexProgramCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreateNetworkCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/CreateNodeCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/CreateNodeRegistrationScriptCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/CreatePartnerInputCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteChannelPlacementGroupCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/DeleteClusterCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DeleteNetworkCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DeleteNodeCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/DescribeChannelPlacementGroupCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/DescribeClusterCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DescribeNetworkCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DescribeNodeCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/ListChannelPlacementGroupsCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/ListClustersCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/ListNetworksCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/ListNodesCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/UpdateChannelPlacementGroupCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/UpdateClusterCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/UpdateNetworkCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/UpdateNodeCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/UpdateNodeStateCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/index.d.ts +22 -0
- package/dist-types/ts3.4/models/models_0.d.ts +203 -188
- package/dist-types/ts3.4/models/models_1.d.ts +312 -372
- package/dist-types/ts3.4/models/models_2.d.ts +686 -9
- package/dist-types/ts3.4/pagination/ListChannelPlacementGroupsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListClustersPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListNetworksPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListNodesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +264 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
- package/dist-types/ts3.4/waiters/index.d.ts +7 -0
- package/dist-types/ts3.4/waiters/waitForChannelPlacementGroupAssigned.d.ts +11 -0
- package/dist-types/ts3.4/waiters/waitForChannelPlacementGroupDeleted.d.ts +11 -0
- package/dist-types/ts3.4/waiters/waitForChannelPlacementGroupUnassigned.d.ts +11 -0
- package/dist-types/ts3.4/waiters/waitForClusterCreated.d.ts +11 -0
- package/dist-types/ts3.4/waiters/waitForClusterDeleted.d.ts +11 -0
- package/dist-types/ts3.4/waiters/waitForNodeDeregistered.d.ts +11 -0
- package/dist-types/ts3.4/waiters/waitForNodeRegistered.d.ts +11 -0
- package/dist-types/waiters/index.d.ts +7 -0
- package/dist-types/waiters/waitForChannelPlacementGroupAssigned.d.ts +14 -0
- package/dist-types/waiters/waitForChannelPlacementGroupDeleted.d.ts +14 -0
- package/dist-types/waiters/waitForChannelPlacementGroupUnassigned.d.ts +14 -0
- package/dist-types/waiters/waitForClusterCreated.d.ts +14 -0
- package/dist-types/waiters/waitForClusterDeleted.d.ts +14 -0
- package/dist-types/waiters/waitForNodeDeregistered.d.ts +14 -0
- package/dist-types/waiters/waitForNodeRegistered.d.ts +14 -0
- package/package.json +37 -37
package/dist-es/waiters/index.js
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
export * from "./waitForChannelCreated";
|
|
2
2
|
export * from "./waitForChannelDeleted";
|
|
3
|
+
export * from "./waitForChannelPlacementGroupAssigned";
|
|
4
|
+
export * from "./waitForChannelPlacementGroupDeleted";
|
|
5
|
+
export * from "./waitForChannelPlacementGroupUnassigned";
|
|
3
6
|
export * from "./waitForChannelRunning";
|
|
4
7
|
export * from "./waitForChannelStopped";
|
|
8
|
+
export * from "./waitForClusterCreated";
|
|
9
|
+
export * from "./waitForClusterDeleted";
|
|
5
10
|
export * from "./waitForInputAttached";
|
|
6
11
|
export * from "./waitForInputDeleted";
|
|
7
12
|
export * from "./waitForInputDetached";
|
|
@@ -9,6 +14,8 @@ export * from "./waitForMultiplexCreated";
|
|
|
9
14
|
export * from "./waitForMultiplexDeleted";
|
|
10
15
|
export * from "./waitForMultiplexRunning";
|
|
11
16
|
export * from "./waitForMultiplexStopped";
|
|
17
|
+
export * from "./waitForNodeDeregistered";
|
|
18
|
+
export * from "./waitForNodeRegistered";
|
|
12
19
|
export * from "./waitForSignalMapCreated";
|
|
13
20
|
export * from "./waitForSignalMapMonitorDeleted";
|
|
14
21
|
export * from "./waitForSignalMapMonitorDeployed";
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { checkExceptions, createWaiter, WaiterState } from "@smithy/util-waiter";
|
|
2
|
+
import { DescribeChannelPlacementGroupCommand, } from "../commands/DescribeChannelPlacementGroupCommand";
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
const result = await client.send(new DescribeChannelPlacementGroupCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
return result.State;
|
|
11
|
+
};
|
|
12
|
+
if (returnComparator() === "ASSIGNED") {
|
|
13
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
catch (e) { }
|
|
17
|
+
try {
|
|
18
|
+
const returnComparator = () => {
|
|
19
|
+
return result.State;
|
|
20
|
+
};
|
|
21
|
+
if (returnComparator() === "ASSIGNING") {
|
|
22
|
+
return { state: WaiterState.RETRY, reason };
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
catch (e) { }
|
|
26
|
+
}
|
|
27
|
+
catch (exception) {
|
|
28
|
+
reason = exception;
|
|
29
|
+
if (exception.name && exception.name == "InternalServerErrorException") {
|
|
30
|
+
return { state: WaiterState.RETRY, reason };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return { state: WaiterState.RETRY, reason };
|
|
34
|
+
};
|
|
35
|
+
export const waitForChannelPlacementGroupAssigned = async (params, input) => {
|
|
36
|
+
const serviceDefaults = { minDelay: 3, maxDelay: 120 };
|
|
37
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
38
|
+
};
|
|
39
|
+
export const waitUntilChannelPlacementGroupAssigned = async (params, input) => {
|
|
40
|
+
const serviceDefaults = { minDelay: 3, maxDelay: 120 };
|
|
41
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
42
|
+
return checkExceptions(result);
|
|
43
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { checkExceptions, createWaiter, WaiterState } from "@smithy/util-waiter";
|
|
2
|
+
import { DescribeChannelPlacementGroupCommand, } from "../commands/DescribeChannelPlacementGroupCommand";
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
const result = await client.send(new DescribeChannelPlacementGroupCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
return result.State;
|
|
11
|
+
};
|
|
12
|
+
if (returnComparator() === "DELETED") {
|
|
13
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
catch (e) { }
|
|
17
|
+
try {
|
|
18
|
+
const returnComparator = () => {
|
|
19
|
+
return result.State;
|
|
20
|
+
};
|
|
21
|
+
if (returnComparator() === "DELETING") {
|
|
22
|
+
return { state: WaiterState.RETRY, reason };
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
catch (e) { }
|
|
26
|
+
}
|
|
27
|
+
catch (exception) {
|
|
28
|
+
reason = exception;
|
|
29
|
+
if (exception.name && exception.name == "InternalServerErrorException") {
|
|
30
|
+
return { state: WaiterState.RETRY, reason };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return { state: WaiterState.RETRY, reason };
|
|
34
|
+
};
|
|
35
|
+
export const waitForChannelPlacementGroupDeleted = async (params, input) => {
|
|
36
|
+
const serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
37
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
38
|
+
};
|
|
39
|
+
export const waitUntilChannelPlacementGroupDeleted = async (params, input) => {
|
|
40
|
+
const serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
41
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
42
|
+
return checkExceptions(result);
|
|
43
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { checkExceptions, createWaiter, WaiterState } from "@smithy/util-waiter";
|
|
2
|
+
import { DescribeChannelPlacementGroupCommand, } from "../commands/DescribeChannelPlacementGroupCommand";
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
const result = await client.send(new DescribeChannelPlacementGroupCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
return result.State;
|
|
11
|
+
};
|
|
12
|
+
if (returnComparator() === "UNASSIGNED") {
|
|
13
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
catch (e) { }
|
|
17
|
+
try {
|
|
18
|
+
const returnComparator = () => {
|
|
19
|
+
return result.State;
|
|
20
|
+
};
|
|
21
|
+
if (returnComparator() === "UNASSIGNING") {
|
|
22
|
+
return { state: WaiterState.RETRY, reason };
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
catch (e) { }
|
|
26
|
+
}
|
|
27
|
+
catch (exception) {
|
|
28
|
+
reason = exception;
|
|
29
|
+
if (exception.name && exception.name == "InternalServerErrorException") {
|
|
30
|
+
return { state: WaiterState.RETRY, reason };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return { state: WaiterState.RETRY, reason };
|
|
34
|
+
};
|
|
35
|
+
export const waitForChannelPlacementGroupUnassigned = async (params, input) => {
|
|
36
|
+
const serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
37
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
38
|
+
};
|
|
39
|
+
export const waitUntilChannelPlacementGroupUnassigned = async (params, input) => {
|
|
40
|
+
const serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
41
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
42
|
+
return checkExceptions(result);
|
|
43
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { checkExceptions, createWaiter, WaiterState } from "@smithy/util-waiter";
|
|
2
|
+
import { DescribeClusterCommand } from "../commands/DescribeClusterCommand";
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
const result = await client.send(new DescribeClusterCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
return result.State;
|
|
11
|
+
};
|
|
12
|
+
if (returnComparator() === "ACTIVE") {
|
|
13
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
catch (e) { }
|
|
17
|
+
try {
|
|
18
|
+
const returnComparator = () => {
|
|
19
|
+
return result.State;
|
|
20
|
+
};
|
|
21
|
+
if (returnComparator() === "CREATING") {
|
|
22
|
+
return { state: WaiterState.RETRY, reason };
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
catch (e) { }
|
|
26
|
+
try {
|
|
27
|
+
const returnComparator = () => {
|
|
28
|
+
return result.State;
|
|
29
|
+
};
|
|
30
|
+
if (returnComparator() === "CREATE_FAILED") {
|
|
31
|
+
return { state: WaiterState.FAILURE, reason };
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
catch (e) { }
|
|
35
|
+
}
|
|
36
|
+
catch (exception) {
|
|
37
|
+
reason = exception;
|
|
38
|
+
if (exception.name && exception.name == "InternalServerErrorException") {
|
|
39
|
+
return { state: WaiterState.RETRY, reason };
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return { state: WaiterState.RETRY, reason };
|
|
43
|
+
};
|
|
44
|
+
export const waitForClusterCreated = async (params, input) => {
|
|
45
|
+
const serviceDefaults = { minDelay: 3, maxDelay: 120 };
|
|
46
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
47
|
+
};
|
|
48
|
+
export const waitUntilClusterCreated = async (params, input) => {
|
|
49
|
+
const serviceDefaults = { minDelay: 3, maxDelay: 120 };
|
|
50
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
51
|
+
return checkExceptions(result);
|
|
52
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { checkExceptions, createWaiter, WaiterState } from "@smithy/util-waiter";
|
|
2
|
+
import { DescribeClusterCommand } from "../commands/DescribeClusterCommand";
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
const result = await client.send(new DescribeClusterCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
return result.State;
|
|
11
|
+
};
|
|
12
|
+
if (returnComparator() === "DELETED") {
|
|
13
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
catch (e) { }
|
|
17
|
+
try {
|
|
18
|
+
const returnComparator = () => {
|
|
19
|
+
return result.State;
|
|
20
|
+
};
|
|
21
|
+
if (returnComparator() === "DELETING") {
|
|
22
|
+
return { state: WaiterState.RETRY, reason };
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
catch (e) { }
|
|
26
|
+
}
|
|
27
|
+
catch (exception) {
|
|
28
|
+
reason = exception;
|
|
29
|
+
if (exception.name && exception.name == "InternalServerErrorException") {
|
|
30
|
+
return { state: WaiterState.RETRY, reason };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return { state: WaiterState.RETRY, reason };
|
|
34
|
+
};
|
|
35
|
+
export const waitForClusterDeleted = async (params, input) => {
|
|
36
|
+
const serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
37
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
38
|
+
};
|
|
39
|
+
export const waitUntilClusterDeleted = async (params, input) => {
|
|
40
|
+
const serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
41
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
42
|
+
return checkExceptions(result);
|
|
43
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { checkExceptions, createWaiter, WaiterState } from "@smithy/util-waiter";
|
|
2
|
+
import { DescribeNodeCommand } from "../commands/DescribeNodeCommand";
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
const result = await client.send(new DescribeNodeCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
return result.State;
|
|
11
|
+
};
|
|
12
|
+
if (returnComparator() === "DEREGISTERED") {
|
|
13
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
catch (e) { }
|
|
17
|
+
try {
|
|
18
|
+
const returnComparator = () => {
|
|
19
|
+
return result.State;
|
|
20
|
+
};
|
|
21
|
+
if (returnComparator() === "DEREGISTERING") {
|
|
22
|
+
return { state: WaiterState.RETRY, reason };
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
catch (e) { }
|
|
26
|
+
try {
|
|
27
|
+
const returnComparator = () => {
|
|
28
|
+
return result.State;
|
|
29
|
+
};
|
|
30
|
+
if (returnComparator() === "DRAINING") {
|
|
31
|
+
return { state: WaiterState.RETRY, reason };
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
catch (e) { }
|
|
35
|
+
}
|
|
36
|
+
catch (exception) {
|
|
37
|
+
reason = exception;
|
|
38
|
+
if (exception.name && exception.name == "InternalServerErrorException") {
|
|
39
|
+
return { state: WaiterState.RETRY, reason };
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return { state: WaiterState.RETRY, reason };
|
|
43
|
+
};
|
|
44
|
+
export const waitForNodeDeregistered = async (params, input) => {
|
|
45
|
+
const serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
46
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
47
|
+
};
|
|
48
|
+
export const waitUntilNodeDeregistered = async (params, input) => {
|
|
49
|
+
const serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
50
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
51
|
+
return checkExceptions(result);
|
|
52
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { checkExceptions, createWaiter, WaiterState } from "@smithy/util-waiter";
|
|
2
|
+
import { DescribeNodeCommand } from "../commands/DescribeNodeCommand";
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
const result = await client.send(new DescribeNodeCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
return result.State;
|
|
11
|
+
};
|
|
12
|
+
if (returnComparator() === "ACTIVE") {
|
|
13
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
catch (e) { }
|
|
17
|
+
try {
|
|
18
|
+
const returnComparator = () => {
|
|
19
|
+
return result.State;
|
|
20
|
+
};
|
|
21
|
+
if (returnComparator() === "REGISTERING") {
|
|
22
|
+
return { state: WaiterState.RETRY, reason };
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
catch (e) { }
|
|
26
|
+
try {
|
|
27
|
+
const returnComparator = () => {
|
|
28
|
+
return result.State;
|
|
29
|
+
};
|
|
30
|
+
if (returnComparator() === "REGISTRATION_FAILED") {
|
|
31
|
+
return { state: WaiterState.FAILURE, reason };
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
catch (e) { }
|
|
35
|
+
}
|
|
36
|
+
catch (exception) {
|
|
37
|
+
reason = exception;
|
|
38
|
+
if (exception.name && exception.name == "NotFoundException") {
|
|
39
|
+
return { state: WaiterState.RETRY, reason };
|
|
40
|
+
}
|
|
41
|
+
if (exception.name && exception.name == "InternalServerErrorException") {
|
|
42
|
+
return { state: WaiterState.RETRY, reason };
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return { state: WaiterState.RETRY, reason };
|
|
46
|
+
};
|
|
47
|
+
export const waitForNodeRegistered = async (params, input) => {
|
|
48
|
+
const serviceDefaults = { minDelay: 3, maxDelay: 120 };
|
|
49
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
50
|
+
};
|
|
51
|
+
export const waitUntilNodeRegistered = async (params, input) => {
|
|
52
|
+
const serviceDefaults = { minDelay: 3, maxDelay: 120 };
|
|
53
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
54
|
+
return checkExceptions(result);
|
|
55
|
+
};
|