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.
480 481 482 |
# File 'gems/aws-sdk-mwaaserverless/lib/aws-sdk-mwaaserverless/client.rb', line 480 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.
634 635 636 637 |
# File 'gems/aws-sdk-mwaaserverless/lib/aws-sdk-mwaaserverless/client.rb', line 634 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.
676 677 678 679 |
# File 'gems/aws-sdk-mwaaserverless/lib/aws-sdk-mwaaserverless/client.rb', line 676 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.
750 751 752 753 |
# File 'gems/aws-sdk-mwaaserverless/lib/aws-sdk-mwaaserverless/client.rb', line 750 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.
820 821 822 823 |
# File 'gems/aws-sdk-mwaaserverless/lib/aws-sdk-mwaaserverless/client.rb', line 820 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.
875 876 877 878 |
# File 'gems/aws-sdk-mwaaserverless/lib/aws-sdk-mwaaserverless/client.rb', line 875 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.
905 906 907 908 |
# File 'gems/aws-sdk-mwaaserverless/lib/aws-sdk-mwaaserverless/client.rb', line 905 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.
960 961 962 963 |
# File 'gems/aws-sdk-mwaaserverless/lib/aws-sdk-mwaaserverless/client.rb', line 960 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.
1017 1018 1019 1020 |
# File 'gems/aws-sdk-mwaaserverless/lib/aws-sdk-mwaaserverless/client.rb', line 1017 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.
1072 1073 1074 1075 |
# File 'gems/aws-sdk-mwaaserverless/lib/aws-sdk-mwaaserverless/client.rb', line 1072 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.
1127 1128 1129 1130 |
# File 'gems/aws-sdk-mwaaserverless/lib/aws-sdk-mwaaserverless/client.rb', line 1127 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.
1192 1193 1194 1195 |
# File 'gems/aws-sdk-mwaaserverless/lib/aws-sdk-mwaaserverless/client.rb', line 1192 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.
1238 1239 1240 1241 |
# File 'gems/aws-sdk-mwaaserverless/lib/aws-sdk-mwaaserverless/client.rb', line 1238 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.
1269 1270 1271 1272 |
# File 'gems/aws-sdk-mwaaserverless/lib/aws-sdk-mwaaserverless/client.rb', line 1269 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.
1299 1300 1301 1302 |
# File 'gems/aws-sdk-mwaaserverless/lib/aws-sdk-mwaaserverless/client.rb', line 1299 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.
1382 1383 1384 1385 |
# File 'gems/aws-sdk-mwaaserverless/lib/aws-sdk-mwaaserverless/client.rb', line 1382 def update_workflow(params = {}, = {}) req = build_request(:update_workflow, params) req.send_request() end |