Class: Aws::MWAAServerless::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::MWAAServerless::Client
- Includes:
- ClientStubs
- Defined in:
- gems/aws-sdk-mwaaserverless/lib/aws-sdk-mwaaserverless/client.rb
Overview
An API client for MWAAServerless. To construct a client, you need to configure a :region and :credentials.
client = Aws::MWAAServerless::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the developer guide.
See #initialize for a full list of supported configuration options.
Instance Attribute Summary
Attributes inherited from Seahorse::Client::Base
API Operations collapse
-
#create_workflow(params = {}) ⇒ Types::CreateWorkflowResponse
Creates a new workflow in Amazon Managed Workflows for Apache Airflow Serverless.
-
#delete_workflow(params = {}) ⇒ Types::DeleteWorkflowResponse
Deletes a workflow and all its versions.
-
#get_task_instance(params = {}) ⇒ Types::GetTaskInstanceResponse
Retrieves detailed information about a specific task instance within a workflow run.
-
#get_workflow(params = {}) ⇒ Types::GetWorkflowResponse
Retrieves detailed information about a workflow, including its configuration, status, and metadata.
-
#get_workflow_run(params = {}) ⇒ Types::GetWorkflowRunResponse
Retrieves detailed information about a specific workflow run, including its status, execution details, and task instances.
-
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Lists all tags that are associated with a specified Amazon Managed Workflows for Apache Airflow Serverless resource.
-
#list_task_instances(params = {}) ⇒ Types::ListTaskInstancesResponse
Lists all task instances for a specific workflow run, with optional pagination support.
-
#list_workflow_runs(params = {}) ⇒ Types::ListWorkflowRunsResponse
Lists all runs for a specified workflow, with optional pagination and filtering support.
-
#list_workflow_versions(params = {}) ⇒ Types::ListWorkflowVersionsResponse
Lists all versions of a specified workflow, with optional pagination support.
-
#list_workflows(params = {}) ⇒ Types::ListWorkflowsResponse
Lists all workflows in your account, with optional pagination support.
-
#start_workflow_run(params = {}) ⇒ Types::StartWorkflowRunResponse
Starts a new execution of a workflow.
-
#stop_workflow_run(params = {}) ⇒ Types::StopWorkflowRunResponse
Stops a running workflow execution.
-
#tag_resource(params = {}) ⇒ Struct
Adds tags to an Amazon Managed Workflows for Apache Airflow Serverless resource.
-
#untag_resource(params = {}) ⇒ Struct
Removes tags from an Amazon Managed Workflows for Apache Airflow Serverless resource.
-
#update_workflow(params = {}) ⇒ Types::UpdateWorkflowResponse
Updates an existing workflow with new configuration settings.
Instance Method Summary collapse
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
Methods included from ClientStubs
#api_requests, #stub_data, #stub_responses
Methods inherited from Seahorse::Client::Base
add_plugin, api, clear_plugins, define, new, #operation_names, plugins, remove_plugin, set_api, set_plugins
Methods included from Seahorse::Client::HandlerBuilder
#handle, #handle_request, #handle_response
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
478 479 480 |
# File 'gems/aws-sdk-mwaaserverless/lib/aws-sdk-mwaaserverless/client.rb', line 478 def initialize(*args) super end |
Instance Method Details
#create_workflow(params = {}) ⇒ Types::CreateWorkflowResponse
Creates a new workflow in Amazon Managed Workflows for Apache Airflow Serverless. This operation initializes a workflow with the specified configuration including the workflow definition, execution role, and optional settings for encryption, logging, and networking. You must provide the workflow definition as a YAML file stored in Amazon S3 that defines the DAG structure using supported Amazon Web Services operators. Amazon Managed Workflows for Apache Airflow Serverless automatically creates the first version of the workflow and sets up the necessary execution environment with multi-tenant isolation and security controls.
632 633 634 635 |
# File 'gems/aws-sdk-mwaaserverless/lib/aws-sdk-mwaaserverless/client.rb', line 632 def create_workflow(params = {}, = {}) req = build_request(:create_workflow, params) req.send_request() end |
#delete_workflow(params = {}) ⇒ Types::DeleteWorkflowResponse
Deletes a workflow and all its versions. This operation permanently removes the workflow and cannot be undone. Amazon Managed Workflows for Apache Airflow Serverless ensures that all associated resources are properly cleaned up, including stopping any running executions, removing scheduled triggers, and cleaning up execution history. The deletion process respects the multi-tenant isolation boundaries and ensures that no residual data or configurations remain that could affect other customers or workflows.
674 675 676 677 |
# File 'gems/aws-sdk-mwaaserverless/lib/aws-sdk-mwaaserverless/client.rb', line 674 def delete_workflow(params = {}, = {}) req = build_request(:delete_workflow, params) req.send_request() end |
#get_task_instance(params = {}) ⇒ Types::GetTaskInstanceResponse
Retrieves detailed information about a specific task instance within a workflow run. Task instances represent individual tasks that are executed as part of a workflow in the Amazon Managed Workflows for Apache Airflow Serverless environment. Each task instance runs in an isolated ECS container with dedicated resources and security boundaries. The service tracks task execution state, retry attempts, and provides detailed timing and error information for troubleshooting and monitoring purposes.
748 749 750 751 |
# File 'gems/aws-sdk-mwaaserverless/lib/aws-sdk-mwaaserverless/client.rb', line 748 def get_task_instance(params = {}, = {}) req = build_request(:get_task_instance, params) req.send_request() end |
#get_workflow(params = {}) ⇒ Types::GetWorkflowResponse
Retrieves detailed information about a workflow, including its configuration, status, and metadata.
818 819 820 821 |
# File 'gems/aws-sdk-mwaaserverless/lib/aws-sdk-mwaaserverless/client.rb', line 818 def get_workflow(params = {}, = {}) req = build_request(:get_workflow, params) req.send_request() end |
#get_workflow_run(params = {}) ⇒ Types::GetWorkflowRunResponse
Retrieves detailed information about a specific workflow run, including its status, execution details, and task instances.
873 874 875 876 |
# File 'gems/aws-sdk-mwaaserverless/lib/aws-sdk-mwaaserverless/client.rb', line 873 def get_workflow_run(params = {}, = {}) req = build_request(:get_workflow_run, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Lists all tags that are associated with a specified Amazon Managed Workflows for Apache Airflow Serverless resource.
903 904 905 906 |
# File 'gems/aws-sdk-mwaaserverless/lib/aws-sdk-mwaaserverless/client.rb', line 903 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#list_task_instances(params = {}) ⇒ Types::ListTaskInstancesResponse
Lists all task instances for a specific workflow run, with optional pagination support.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
958 959 960 961 |
# File 'gems/aws-sdk-mwaaserverless/lib/aws-sdk-mwaaserverless/client.rb', line 958 def list_task_instances(params = {}, = {}) req = build_request(:list_task_instances, params) req.send_request() end |
#list_workflow_runs(params = {}) ⇒ Types::ListWorkflowRunsResponse
Lists all runs for a specified workflow, with optional pagination and filtering support.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1015 1016 1017 1018 |
# File 'gems/aws-sdk-mwaaserverless/lib/aws-sdk-mwaaserverless/client.rb', line 1015 def list_workflow_runs(params = {}, = {}) req = build_request(:list_workflow_runs, params) req.send_request() end |
#list_workflow_versions(params = {}) ⇒ Types::ListWorkflowVersionsResponse
Lists all versions of a specified workflow, with optional pagination support.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1070 1071 1072 1073 |
# File 'gems/aws-sdk-mwaaserverless/lib/aws-sdk-mwaaserverless/client.rb', line 1070 def list_workflow_versions(params = {}, = {}) req = build_request(:list_workflow_versions, params) req.send_request() end |
#list_workflows(params = {}) ⇒ Types::ListWorkflowsResponse
Lists all workflows in your account, with optional pagination support. This operation returns summary information for workflows, showing only the most recently created version of each workflow. Amazon Managed Workflows for Apache Airflow Serverless maintains workflow metadata in a highly available, distributed storage system that enables efficient querying and filtering. The service implements proper access controls to ensure you can only view workflows that you have permissions to access, supporting both individual and team-based workflow management scenarios.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1125 1126 1127 1128 |
# File 'gems/aws-sdk-mwaaserverless/lib/aws-sdk-mwaaserverless/client.rb', line 1125 def list_workflows(params = {}, = {}) req = build_request(:list_workflows, params) req.send_request() end |
#start_workflow_run(params = {}) ⇒ Types::StartWorkflowRunResponse
Starts a new execution of a workflow. This operation creates a workflow run that executes the tasks that are defined in the workflow. Amazon Managed Workflows for Apache Airflow Serverless schedules the workflow execution across its managed Airflow environment, automatically scaling ECS worker tasks based on the workload. The service handles task isolation, dependency resolution, and provides comprehensive monitoring and logging throughout the execution lifecycle.
1190 1191 1192 1193 |
# File 'gems/aws-sdk-mwaaserverless/lib/aws-sdk-mwaaserverless/client.rb', line 1190 def start_workflow_run(params = {}, = {}) req = build_request(:start_workflow_run, params) req.send_request() end |
#stop_workflow_run(params = {}) ⇒ Types::StopWorkflowRunResponse
Stops a running workflow execution. This operation terminates all
running tasks and prevents new tasks from starting. Amazon Managed
Workflows for Apache Airflow Serverless gracefully shuts down the
workflow execution by stopping task scheduling and terminating active
ECS worker containers. The operation transitions the workflow run to a
STOPPING state and then to STOPPED once all cleanup is complete.
In-flight tasks may complete or be terminated depending on their
current execution state.
1236 1237 1238 1239 |
# File 'gems/aws-sdk-mwaaserverless/lib/aws-sdk-mwaaserverless/client.rb', line 1236 def stop_workflow_run(params = {}, = {}) req = build_request(:stop_workflow_run, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Adds tags to an Amazon Managed Workflows for Apache Airflow Serverless resource. Tags are key-value pairs that help you organize and categorize your resources.
1267 1268 1269 1270 |
# File 'gems/aws-sdk-mwaaserverless/lib/aws-sdk-mwaaserverless/client.rb', line 1267 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Removes tags from an Amazon Managed Workflows for Apache Airflow Serverless resource. This operation removes the specified tags from the resource.
1297 1298 1299 1300 |
# File 'gems/aws-sdk-mwaaserverless/lib/aws-sdk-mwaaserverless/client.rb', line 1297 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#update_workflow(params = {}) ⇒ Types::UpdateWorkflowResponse
Updates an existing workflow with new configuration settings. This operation allows you to modify the workflow definition, role, and other settings. When you update a workflow, Amazon Managed Workflows for Apache Airflow Serverless automatically creates a new version with the updated configuration and disables scheduling on all previous versions to ensure only one version is actively scheduled at a time. The update operation maintains workflow history while providing a clean transition to the new configuration.
1380 1381 1382 1383 |
# File 'gems/aws-sdk-mwaaserverless/lib/aws-sdk-mwaaserverless/client.rb', line 1380 def update_workflow(params = {}, = {}) req = build_request(:update_workflow, params) req.send_request() end |