123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726 |
- {
- "version": 2,
- "waiters": {
- "InstanceExists": {
- "delay": 5,
- "maxAttempts": 40,
- "operation": "DescribeInstances",
- "acceptors": [
- {
- "matcher": "path",
- "expected": true,
- "argument": "length(Reservations[]) > `0`",
- "state": "success"
- },
- {
- "matcher": "error",
- "expected": "InvalidInstanceID.NotFound",
- "state": "retry"
- }
- ]
- },
- "BundleTaskComplete": {
- "delay": 15,
- "operation": "DescribeBundleTasks",
- "maxAttempts": 40,
- "acceptors": [
- {
- "expected": "complete",
- "matcher": "pathAll",
- "state": "success",
- "argument": "BundleTasks[].State"
- },
- {
- "expected": "failed",
- "matcher": "pathAny",
- "state": "failure",
- "argument": "BundleTasks[].State"
- }
- ]
- },
- "ConversionTaskCancelled": {
- "delay": 15,
- "operation": "DescribeConversionTasks",
- "maxAttempts": 40,
- "acceptors": [
- {
- "expected": "cancelled",
- "matcher": "pathAll",
- "state": "success",
- "argument": "ConversionTasks[].State"
- }
- ]
- },
- "ConversionTaskCompleted": {
- "delay": 15,
- "operation": "DescribeConversionTasks",
- "maxAttempts": 40,
- "acceptors": [
- {
- "expected": "completed",
- "matcher": "pathAll",
- "state": "success",
- "argument": "ConversionTasks[].State"
- },
- {
- "expected": "cancelled",
- "matcher": "pathAny",
- "state": "failure",
- "argument": "ConversionTasks[].State"
- },
- {
- "expected": "cancelling",
- "matcher": "pathAny",
- "state": "failure",
- "argument": "ConversionTasks[].State"
- }
- ]
- },
- "ConversionTaskDeleted": {
- "delay": 15,
- "operation": "DescribeConversionTasks",
- "maxAttempts": 40,
- "acceptors": [
- {
- "expected": "deleted",
- "matcher": "pathAll",
- "state": "success",
- "argument": "ConversionTasks[].State"
- }
- ]
- },
- "CustomerGatewayAvailable": {
- "delay": 15,
- "operation": "DescribeCustomerGateways",
- "maxAttempts": 40,
- "acceptors": [
- {
- "expected": "available",
- "matcher": "pathAll",
- "state": "success",
- "argument": "CustomerGateways[].State"
- },
- {
- "expected": "deleted",
- "matcher": "pathAny",
- "state": "failure",
- "argument": "CustomerGateways[].State"
- },
- {
- "expected": "deleting",
- "matcher": "pathAny",
- "state": "failure",
- "argument": "CustomerGateways[].State"
- }
- ]
- },
- "ExportTaskCancelled": {
- "delay": 15,
- "operation": "DescribeExportTasks",
- "maxAttempts": 40,
- "acceptors": [
- {
- "expected": "cancelled",
- "matcher": "pathAll",
- "state": "success",
- "argument": "ExportTasks[].State"
- }
- ]
- },
- "ExportTaskCompleted": {
- "delay": 15,
- "operation": "DescribeExportTasks",
- "maxAttempts": 40,
- "acceptors": [
- {
- "expected": "completed",
- "matcher": "pathAll",
- "state": "success",
- "argument": "ExportTasks[].State"
- }
- ]
- },
- "ImageExists": {
- "operation": "DescribeImages",
- "maxAttempts": 40,
- "delay": 15,
- "acceptors": [
- {
- "matcher": "path",
- "expected": true,
- "argument": "length(Images[]) > `0`",
- "state": "success"
- },
- {
- "matcher": "error",
- "expected": "InvalidAMIID.NotFound",
- "state": "retry"
- }
- ]
- },
- "ImageAvailable": {
- "operation": "DescribeImages",
- "maxAttempts": 40,
- "delay": 15,
- "acceptors": [
- {
- "state": "success",
- "matcher": "pathAll",
- "argument": "Images[].State",
- "expected": "available"
- },
- {
- "state": "failure",
- "matcher": "pathAny",
- "argument": "Images[].State",
- "expected": "failed"
- }
- ]
- },
- "InstanceRunning": {
- "delay": 15,
- "operation": "DescribeInstances",
- "maxAttempts": 40,
- "acceptors": [
- {
- "expected": "running",
- "matcher": "pathAll",
- "state": "success",
- "argument": "Reservations[].Instances[].State.Name"
- },
- {
- "expected": "shutting-down",
- "matcher": "pathAny",
- "state": "failure",
- "argument": "Reservations[].Instances[].State.Name"
- },
- {
- "expected": "terminated",
- "matcher": "pathAny",
- "state": "failure",
- "argument": "Reservations[].Instances[].State.Name"
- },
- {
- "expected": "stopping",
- "matcher": "pathAny",
- "state": "failure",
- "argument": "Reservations[].Instances[].State.Name"
- },
- {
- "matcher": "error",
- "expected": "InvalidInstanceID.NotFound",
- "state": "retry"
- }
- ]
- },
- "InstanceStatusOk": {
- "operation": "DescribeInstanceStatus",
- "maxAttempts": 40,
- "delay": 15,
- "acceptors": [
- {
- "state": "success",
- "matcher": "pathAll",
- "argument": "InstanceStatuses[].InstanceStatus.Status",
- "expected": "ok"
- },
- {
- "matcher": "error",
- "expected": "InvalidInstanceID.NotFound",
- "state": "retry"
- }
- ]
- },
- "InstanceStopped": {
- "delay": 15,
- "operation": "DescribeInstances",
- "maxAttempts": 40,
- "acceptors": [
- {
- "expected": "stopped",
- "matcher": "pathAll",
- "state": "success",
- "argument": "Reservations[].Instances[].State.Name"
- },
- {
- "expected": "pending",
- "matcher": "pathAny",
- "state": "failure",
- "argument": "Reservations[].Instances[].State.Name"
- },
- {
- "expected": "terminated",
- "matcher": "pathAny",
- "state": "failure",
- "argument": "Reservations[].Instances[].State.Name"
- }
- ]
- },
- "InstanceTerminated": {
- "delay": 15,
- "operation": "DescribeInstances",
- "maxAttempts": 40,
- "acceptors": [
- {
- "expected": "terminated",
- "matcher": "pathAll",
- "state": "success",
- "argument": "Reservations[].Instances[].State.Name"
- },
- {
- "expected": "pending",
- "matcher": "pathAny",
- "state": "failure",
- "argument": "Reservations[].Instances[].State.Name"
- },
- {
- "expected": "stopping",
- "matcher": "pathAny",
- "state": "failure",
- "argument": "Reservations[].Instances[].State.Name"
- }
- ]
- },
- "InternetGatewayExists": {
- "operation": "DescribeInternetGateways",
- "delay": 5,
- "maxAttempts": 6,
- "acceptors": [
- {
- "expected": true,
- "matcher": "path",
- "state": "success",
- "argument": "length(InternetGateways[].InternetGatewayId) > `0`"
- },
- {
- "expected": "InvalidInternetGateway.NotFound",
- "matcher": "error",
- "state": "retry"
- }
- ]
- },
- "KeyPairExists": {
- "operation": "DescribeKeyPairs",
- "delay": 5,
- "maxAttempts": 6,
- "acceptors": [
- {
- "expected": true,
- "matcher": "path",
- "state": "success",
- "argument": "length(KeyPairs[].KeyName) > `0`"
- },
- {
- "expected": "InvalidKeyPair.NotFound",
- "matcher": "error",
- "state": "retry"
- }
- ]
- },
- "NatGatewayAvailable": {
- "operation": "DescribeNatGateways",
- "delay": 15,
- "maxAttempts": 40,
- "acceptors": [
- {
- "state": "success",
- "matcher": "pathAll",
- "argument": "NatGateways[].State",
- "expected": "available"
- },
- {
- "state": "failure",
- "matcher": "pathAny",
- "argument": "NatGateways[].State",
- "expected": "failed"
- },
- {
- "state": "failure",
- "matcher": "pathAny",
- "argument": "NatGateways[].State",
- "expected": "deleting"
- },
- {
- "state": "failure",
- "matcher": "pathAny",
- "argument": "NatGateways[].State",
- "expected": "deleted"
- },
- {
- "state": "retry",
- "matcher": "error",
- "expected": "NatGatewayNotFound"
- }
- ]
- },
- "NatGatewayDeleted": {
- "operation": "DescribeNatGateways",
- "delay": 15,
- "maxAttempts": 40,
- "acceptors": [
- {
- "state": "success",
- "matcher": "pathAll",
- "argument": "NatGateways[].State",
- "expected": "deleted"
- },
- {
- "state": "success",
- "matcher": "error",
- "expected": "NatGatewayNotFound"
- }
- ]
- },
- "NetworkInterfaceAvailable": {
- "operation": "DescribeNetworkInterfaces",
- "delay": 20,
- "maxAttempts": 10,
- "acceptors": [
- {
- "expected": "available",
- "matcher": "pathAll",
- "state": "success",
- "argument": "NetworkInterfaces[].Status"
- },
- {
- "expected": "InvalidNetworkInterfaceID.NotFound",
- "matcher": "error",
- "state": "failure"
- }
- ]
- },
- "PasswordDataAvailable": {
- "operation": "GetPasswordData",
- "maxAttempts": 40,
- "delay": 15,
- "acceptors": [
- {
- "state": "success",
- "matcher": "path",
- "argument": "length(PasswordData) > `0`",
- "expected": true
- }
- ]
- },
- "SnapshotCompleted": {
- "delay": 15,
- "operation": "DescribeSnapshots",
- "maxAttempts": 40,
- "acceptors": [
- {
- "expected": "completed",
- "matcher": "pathAll",
- "state": "success",
- "argument": "Snapshots[].State"
- },
- {
- "expected": "error",
- "matcher": "pathAny",
- "state": "failure",
- "argument": "Snapshots[].State"
- }
- ]
- },
- "SnapshotImported": {
- "delay": 15,
- "operation": "DescribeImportSnapshotTasks",
- "maxAttempts": 40,
- "acceptors": [
- {
- "expected": "completed",
- "matcher": "pathAll",
- "state": "success",
- "argument": "ImportSnapshotTasks[].SnapshotTaskDetail.Status"
- },
- {
- "expected": "error",
- "matcher": "pathAny",
- "state": "failure",
- "argument": "ImportSnapshotTasks[].SnapshotTaskDetail.Status"
- }
- ]
- },
- "SecurityGroupExists": {
- "operation": "DescribeSecurityGroups",
- "delay": 5,
- "maxAttempts": 6,
- "acceptors": [
- {
- "expected": true,
- "matcher": "path",
- "state": "success",
- "argument": "length(SecurityGroups[].GroupId) > `0`"
- },
- {
- "expected": "InvalidGroup.NotFound",
- "matcher": "error",
- "state": "retry"
- }
- ]
- },
- "SpotInstanceRequestFulfilled": {
- "operation": "DescribeSpotInstanceRequests",
- "maxAttempts": 40,
- "delay": 15,
- "acceptors": [
- {
- "state": "success",
- "matcher": "pathAll",
- "argument": "SpotInstanceRequests[].Status.Code",
- "expected": "fulfilled"
- },
- {
- "state": "success",
- "matcher": "pathAll",
- "argument": "SpotInstanceRequests[].Status.Code",
- "expected": "request-canceled-and-instance-running"
- },
- {
- "state": "failure",
- "matcher": "pathAny",
- "argument": "SpotInstanceRequests[].Status.Code",
- "expected": "schedule-expired"
- },
- {
- "state": "failure",
- "matcher": "pathAny",
- "argument": "SpotInstanceRequests[].Status.Code",
- "expected": "canceled-before-fulfillment"
- },
- {
- "state": "failure",
- "matcher": "pathAny",
- "argument": "SpotInstanceRequests[].Status.Code",
- "expected": "bad-parameters"
- },
- {
- "state": "failure",
- "matcher": "pathAny",
- "argument": "SpotInstanceRequests[].Status.Code",
- "expected": "system-error"
- },
- {
- "state": "retry",
- "matcher": "error",
- "expected": "InvalidSpotInstanceRequestID.NotFound"
- }
- ]
- },
- "StoreImageTaskComplete": {
- "delay": 5,
- "operation": "DescribeStoreImageTasks",
- "maxAttempts": 40,
- "acceptors": [
- {
- "expected": "Completed",
- "matcher": "pathAll",
- "state": "success",
- "argument": "StoreImageTaskResults[].StoreTaskState"
- },
- {
- "expected": "Failed",
- "matcher": "pathAny",
- "state": "failure",
- "argument": "StoreImageTaskResults[].StoreTaskState"
- },
- {
- "expected": "InProgress",
- "matcher": "pathAny",
- "state": "retry",
- "argument": "StoreImageTaskResults[].StoreTaskState"
- }
- ]
- },
- "SubnetAvailable": {
- "delay": 15,
- "operation": "DescribeSubnets",
- "maxAttempts": 40,
- "acceptors": [
- {
- "expected": "available",
- "matcher": "pathAll",
- "state": "success",
- "argument": "Subnets[].State"
- }
- ]
- },
- "SystemStatusOk": {
- "operation": "DescribeInstanceStatus",
- "maxAttempts": 40,
- "delay": 15,
- "acceptors": [
- {
- "state": "success",
- "matcher": "pathAll",
- "argument": "InstanceStatuses[].SystemStatus.Status",
- "expected": "ok"
- }
- ]
- },
- "VolumeAvailable": {
- "delay": 15,
- "operation": "DescribeVolumes",
- "maxAttempts": 40,
- "acceptors": [
- {
- "expected": "available",
- "matcher": "pathAll",
- "state": "success",
- "argument": "Volumes[].State"
- },
- {
- "expected": "deleted",
- "matcher": "pathAny",
- "state": "failure",
- "argument": "Volumes[].State"
- }
- ]
- },
- "VolumeDeleted": {
- "delay": 15,
- "operation": "DescribeVolumes",
- "maxAttempts": 40,
- "acceptors": [
- {
- "expected": "deleted",
- "matcher": "pathAll",
- "state": "success",
- "argument": "Volumes[].State"
- },
- {
- "matcher": "error",
- "expected": "InvalidVolume.NotFound",
- "state": "success"
- }
- ]
- },
- "VolumeInUse": {
- "delay": 15,
- "operation": "DescribeVolumes",
- "maxAttempts": 40,
- "acceptors": [
- {
- "expected": "in-use",
- "matcher": "pathAll",
- "state": "success",
- "argument": "Volumes[].State"
- },
- {
- "expected": "deleted",
- "matcher": "pathAny",
- "state": "failure",
- "argument": "Volumes[].State"
- }
- ]
- },
- "VpcAvailable": {
- "delay": 15,
- "operation": "DescribeVpcs",
- "maxAttempts": 40,
- "acceptors": [
- {
- "expected": "available",
- "matcher": "pathAll",
- "state": "success",
- "argument": "Vpcs[].State"
- }
- ]
- },
- "VpcExists": {
- "operation": "DescribeVpcs",
- "delay": 1,
- "maxAttempts": 5,
- "acceptors": [
- {
- "matcher": "status",
- "expected": 200,
- "state": "success"
- },
- {
- "matcher": "error",
- "expected": "InvalidVpcID.NotFound",
- "state": "retry"
- }
- ]
- },
- "VpnConnectionAvailable": {
- "delay": 15,
- "operation": "DescribeVpnConnections",
- "maxAttempts": 40,
- "acceptors": [
- {
- "expected": "available",
- "matcher": "pathAll",
- "state": "success",
- "argument": "VpnConnections[].State"
- },
- {
- "expected": "deleting",
- "matcher": "pathAny",
- "state": "failure",
- "argument": "VpnConnections[].State"
- },
- {
- "expected": "deleted",
- "matcher": "pathAny",
- "state": "failure",
- "argument": "VpnConnections[].State"
- }
- ]
- },
- "VpnConnectionDeleted": {
- "delay": 15,
- "operation": "DescribeVpnConnections",
- "maxAttempts": 40,
- "acceptors": [
- {
- "expected": "deleted",
- "matcher": "pathAll",
- "state": "success",
- "argument": "VpnConnections[].State"
- },
- {
- "expected": "pending",
- "matcher": "pathAny",
- "state": "failure",
- "argument": "VpnConnections[].State"
- }
- ]
- },
- "VpcPeeringConnectionExists": {
- "delay": 15,
- "operation": "DescribeVpcPeeringConnections",
- "maxAttempts": 40,
- "acceptors": [
- {
- "matcher": "status",
- "expected": 200,
- "state": "success"
- },
- {
- "matcher": "error",
- "expected": "InvalidVpcPeeringConnectionID.NotFound",
- "state": "retry"
- }
- ]
- },
- "VpcPeeringConnectionDeleted": {
- "delay": 15,
- "operation": "DescribeVpcPeeringConnections",
- "maxAttempts": 40,
- "acceptors": [
- {
- "expected": "deleted",
- "matcher": "pathAll",
- "state": "success",
- "argument": "VpcPeeringConnections[].Status.Code"
- },
- {
- "matcher": "error",
- "expected": "InvalidVpcPeeringConnectionID.NotFound",
- "state": "success"
- }
- ]
- }
- }
- }
|