123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208 |
- {
- "version" : 2,
- "waiters" : {
- "ComponentDeleted" : {
- "description" : "Wait until a Component is deleted. Use this after invoking DeleteComponent",
- "delay" : 5,
- "maxAttempts" : 999,
- "operation" : "GetComponent",
- "acceptors" : [ {
- "matcher" : "error",
- "state" : "success",
- "expected" : "ResourceNotFoundException"
- }, {
- "matcher" : "path",
- "argument" : "component.deploymentStatus",
- "state" : "failure",
- "expected" : "DELETE_FAILED"
- } ]
- },
- "ComponentDeployed" : {
- "description" : "Wait until a Component is deployed. Use this after invoking CreateComponent or UpdateComponent",
- "delay" : 5,
- "maxAttempts" : 999,
- "operation" : "GetComponent",
- "acceptors" : [ {
- "matcher" : "path",
- "argument" : "component.deploymentStatus",
- "state" : "success",
- "expected" : "SUCCEEDED"
- }, {
- "matcher" : "path",
- "argument" : "component.deploymentStatus",
- "state" : "failure",
- "expected" : "FAILED"
- } ]
- },
- "EnvironmentDeployed" : {
- "description" : "Wait until an Environment is deployed. Use this after invoking CreateEnvironment or UpdateEnvironment",
- "delay" : 5,
- "maxAttempts" : 999,
- "operation" : "GetEnvironment",
- "acceptors" : [ {
- "matcher" : "path",
- "argument" : "environment.deploymentStatus",
- "state" : "success",
- "expected" : "SUCCEEDED"
- }, {
- "matcher" : "path",
- "argument" : "environment.deploymentStatus",
- "state" : "failure",
- "expected" : "FAILED"
- } ]
- },
- "EnvironmentTemplateVersionRegistered" : {
- "description" : "Wait until an EnvironmentTemplateVersion is registered. Use this after invoking CreateEnvironmentTemplateVersion",
- "delay" : 2,
- "maxAttempts" : 150,
- "operation" : "GetEnvironmentTemplateVersion",
- "acceptors" : [ {
- "matcher" : "path",
- "argument" : "environmentTemplateVersion.status",
- "state" : "success",
- "expected" : "DRAFT"
- }, {
- "matcher" : "path",
- "argument" : "environmentTemplateVersion.status",
- "state" : "success",
- "expected" : "PUBLISHED"
- }, {
- "matcher" : "path",
- "argument" : "environmentTemplateVersion.status",
- "state" : "failure",
- "expected" : "REGISTRATION_FAILED"
- } ]
- },
- "ServiceCreated" : {
- "description" : "Wait until an Service has deployed its instances and possibly pipeline. Use this after invoking CreateService",
- "delay" : 5,
- "maxAttempts" : 999,
- "operation" : "GetService",
- "acceptors" : [ {
- "matcher" : "path",
- "argument" : "service.status",
- "state" : "success",
- "expected" : "ACTIVE"
- }, {
- "matcher" : "path",
- "argument" : "service.status",
- "state" : "failure",
- "expected" : "CREATE_FAILED_CLEANUP_COMPLETE"
- }, {
- "matcher" : "path",
- "argument" : "service.status",
- "state" : "failure",
- "expected" : "CREATE_FAILED_CLEANUP_FAILED"
- }, {
- "matcher" : "path",
- "argument" : "service.status",
- "state" : "failure",
- "expected" : "CREATE_FAILED"
- } ]
- },
- "ServiceDeleted" : {
- "description" : "Wait until a Service, its instances, and possibly pipeline have been deleted after DeleteService is invoked",
- "delay" : 5,
- "maxAttempts" : 999,
- "operation" : "GetService",
- "acceptors" : [ {
- "matcher" : "error",
- "state" : "success",
- "expected" : "ResourceNotFoundException"
- }, {
- "matcher" : "path",
- "argument" : "service.status",
- "state" : "failure",
- "expected" : "DELETE_FAILED"
- } ]
- },
- "ServiceInstanceDeployed" : {
- "description" : "Wait until a ServiceInstance is deployed. Use this after invoking CreateService or UpdateServiceInstance",
- "delay" : 5,
- "maxAttempts" : 999,
- "operation" : "GetServiceInstance",
- "acceptors" : [ {
- "matcher" : "path",
- "argument" : "serviceInstance.deploymentStatus",
- "state" : "success",
- "expected" : "SUCCEEDED"
- }, {
- "matcher" : "path",
- "argument" : "serviceInstance.deploymentStatus",
- "state" : "failure",
- "expected" : "FAILED"
- } ]
- },
- "ServicePipelineDeployed" : {
- "description" : "Wait until an ServicePipeline is deployed. Use this after invoking CreateService or UpdateServicePipeline",
- "delay" : 10,
- "maxAttempts" : 360,
- "operation" : "GetService",
- "acceptors" : [ {
- "matcher" : "path",
- "argument" : "service.pipeline.deploymentStatus",
- "state" : "success",
- "expected" : "SUCCEEDED"
- }, {
- "matcher" : "path",
- "argument" : "service.pipeline.deploymentStatus",
- "state" : "failure",
- "expected" : "FAILED"
- } ]
- },
- "ServiceTemplateVersionRegistered" : {
- "description" : "Wait until a ServiceTemplateVersion is registered. Use this after invoking CreateServiceTemplateVersion",
- "delay" : 2,
- "maxAttempts" : 150,
- "operation" : "GetServiceTemplateVersion",
- "acceptors" : [ {
- "matcher" : "path",
- "argument" : "serviceTemplateVersion.status",
- "state" : "success",
- "expected" : "DRAFT"
- }, {
- "matcher" : "path",
- "argument" : "serviceTemplateVersion.status",
- "state" : "success",
- "expected" : "PUBLISHED"
- }, {
- "matcher" : "path",
- "argument" : "serviceTemplateVersion.status",
- "state" : "failure",
- "expected" : "REGISTRATION_FAILED"
- } ]
- },
- "ServiceUpdated" : {
- "description" : "Wait until a Service, its instances, and possibly pipeline have been deployed after UpdateService is invoked",
- "delay" : 5,
- "maxAttempts" : 999,
- "operation" : "GetService",
- "acceptors" : [ {
- "matcher" : "path",
- "argument" : "service.status",
- "state" : "success",
- "expected" : "ACTIVE"
- }, {
- "matcher" : "path",
- "argument" : "service.status",
- "state" : "failure",
- "expected" : "UPDATE_FAILED_CLEANUP_COMPLETE"
- }, {
- "matcher" : "path",
- "argument" : "service.status",
- "state" : "failure",
- "expected" : "UPDATE_FAILED_CLEANUP_FAILED"
- }, {
- "matcher" : "path",
- "argument" : "service.status",
- "state" : "failure",
- "expected" : "UPDATE_FAILED"
- }, {
- "matcher" : "path",
- "argument" : "service.status",
- "state" : "failure",
- "expected" : "UPDATE_COMPLETE_CLEANUP_FAILED"
- } ]
- }
- }
- }
|