.. _state transition_models: .. role:: raw-html(raw) :format: html ============================================ Supported Models for State Transitions ============================================ Service: Athena ----------------- **Model**: `athena::execution` :raw-html:`
` Available States: :raw-html:`
` "QUEUED" --> "RUNNING" --> "SUCCEEDED" Transition type: `immediate` :raw-html:`
` Advancement: Call `boto3.client("athena").get_query_execution(..)` to advance the status of a single execution. Service: Batch ----------------- **Model**: `batch::job` :raw-html:`
` Available States: :raw-html:`
` "SUBMITTED" --> "PENDING" --> "RUNNABLE" --> "STARTING" --> "RUNNING" :raw-html:`
` "RUNNING" --> SUCCEEDED|FAILED Transition type: `immediate` :raw-html:`
` Advancement: When a user calls `submit_job`, Moto will go through a few steps to prepare the job, and when ready, execute that job in a Docker container. There are some steps to go through while the status is `SUBMITTED`, there are some steps to follow when the status is `PENDING`, etcetera. Moto will try to advance the status itself - the moment this succeeds, the next step is executed. As the default transition is `immediate`, the status will advance immediately, and these steps will be executed as quickly as possible. This ensures that the job will be executed as quickly as possible. Delaying the execution can be done as usual, by forcing Moto to wait x seconds before transitioning to the next stage. This can be useful if you need to 'catch' a job in a specific stage. Service: Cloudfront --------------------- **Model**: `cloudfront::distribution` :raw-html:`
` Available States: :raw-html:`
` "InProgress" --> "Deployed" Transition type: Manual - describe the resource 1 time before the state advances :raw-html:`
` Advancement: Call `boto3.client("cloudfront").get_distribution(..)` to advance a single distribution, or `boto3.client("cloudfront").list_distributions(..)` to advance all distributions. Service: DAX --------------- **Model**: `dax::cluster` :raw-html:`
` Available States: "creating" --> "available" :raw-html:`
` "deleting" --> "deleted" Transition type: Manual - describe the resource 4 times before the state advances :raw-html:`
` Advancement: Call `boto3.client("dax").describe_clusters(..)`. Service: Glue --------------------- **Model**: `glue::job_run` :raw-html:`
` Available States: :raw-html:`
` "STARTING" --> "RUNNING" --> "SUCCEEDED" Transition type: `immediate` :raw-html:`
` Advancement: Call `boto3.client("glue").get_job_run(..)` **Model**: `glue::crawl` :raw-html:`
` Available States: :raw-html:`
` "RUNNING" --> "COMPLETED" Transition type: `manual` :raw-html:`
` Advancement: Call `boto3.client("glue").list_crawls(..)` Service: Pipes ----------------------------------- **Model**: `pipes::pipe` :raw-html:`
` Available States: "CREATING" --> "RUNNING" "STARTING" --> "RUNNING" "STOPPING" --> "STOPPED" "STOPPED" --> "STARTING" "DELETING" --> "DELETED" Transition type: `manual` Advancement: Call `boto3.client("pipes").describe_pipe(..)` or `boto3.client("pipes").list_pipes(..)` Service: S3 (Glacier Restoration) ----------------------------------- **Model**: `s3::keyrestore` :raw-html:`
` Available States: None --> "IN_PROGRESS" --> "RESTORED" Transition type: Immediate - transitions immediately Service: Support ------------------ **Model**: `support::case` :raw-html:`
` Available states: "opened" --> "pending-customer-action" --> "reopened" --> "resolved" --> "unassigned" --> "work-in-progress" --> "opened" Transition type: Manual - describe the resource 1 time before the state advances :raw-html:`
` Advancement: Call `boto3.client("support").describe_cases(..)` Service: Transcribe --------------------- **Model**: `transcribe::vocabulary` :raw-html:`
` Available states: None --> "PENDING --> "READY" Transition type: Manual - describe the resource 1 time before the state advances :raw-html:`
` Advancement: Call `boto3.client("transcribe").get_vocabulary(..)` **Model**: `transcribe::medicalvocabulary` :raw-html:`
` Available states: None --> "PENDING --> "READY" Transition type: Manual - describe the resource 1 time before the state advances :raw-html:`
` Advancement: Call `boto3.client("transcribe").get_medical_vocabulary(..)` **Model**: `transcribe::transcriptionjob` :raw-html:`
` Available states: None --> "QUEUED" --> "IN_PROGRESS" --> "COMPLETED" Transition type: Manual - describe the resource 1 time before the state advances :raw-html:`
` Advancement: Call `boto3.client("transcribe").get_transcription_job(..)` **Model**: `transcribe::medicaltranscriptionjob` :raw-html:`
` Available states: None --> "QUEUED" --> "IN_PROGRESS" --> "COMPLETED" Transition type: Manual - describe the resource 1 time before the state advances :raw-html:`
` Advancement: Call `boto3.client("transcribe").get_medical_transcription_job(..)` Service: ECS -------------- **Model**: `ecs::task` :raw-html:`
` Available states: "RUNNING" --> "DEACTIVATING" --> "STOPPING" --> "DEPROVISIONING" --> "STOPPED" Transition type: Manual - describe the resource 1 time before the state advances :raw-html:`
` Advancement: Call `boto3.client("ecs").describe_tasks(..)` Service: DMS --------------------- **Model**: `dms::replication_instance` :raw-html:`
` Available States: :raw-html:`
` "creating" --> "available" :raw-html:`
` Transition type: Manual - describe the resource 1 time before the state advances :raw-html:`
` Advancement: Call `boto3.client("dms").replication_instance(..)` **Model**: `dms::connection` :raw-html:`
` Available States: :raw-html:`
` "testing" --> "success" Transition type: Manual - describe the resource 1 time before the state advances :raw-html:`
` Advancement: Call `boto3.client("dms").describe_connections(..)` **Model**: `dms::replicationinstance` :raw-html:`
` Available States: :raw-html:`
` "creating" --> "available" :raw-html:`
` Transition type: Manual - describe the resource 1 time before the state advances :raw-html:`
` Advancement: Call `boto3.client("dms").describe_replication_instance(..)`