Class: Aws::MWAAServerless::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::MWAAServerless::Client
- Includes:
- ClientStubs
- Defined in:
- 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](/sdk-for-ruby/v3/developer-guide/setup-config.html).
See #initialize for a full list of supported configuration options.
Class Attribute Summary collapse
- .identifier ⇒ Object readonly private
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.
Class Method Summary collapse
- .errors_module ⇒ Object private
Instance Method Summary collapse
- #build_request(operation_name, params = {}) ⇒ Object private
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
- #waiter_names ⇒ Object deprecated private Deprecated.
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
478 479 480 |
# File 'lib/aws-sdk-mwaaserverless/client.rb', line 478 def initialize(*args) super end |
Class Attribute Details
.identifier ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1416 1417 1418 |
# File 'lib/aws-sdk-mwaaserverless/client.rb', line 1416 def identifier @identifier end |
Class Method Details
.errors_module ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1419 1420 1421 |
# File 'lib/aws-sdk-mwaaserverless/client.rb', line 1419 def errors_module Errors end |
Instance Method Details
#build_request(operation_name, params = {}) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 |
# File 'lib/aws-sdk-mwaaserverless/client.rb', line 1389 def build_request(operation_name, params = {}) handlers = @handlers.for(operation_name) tracer = config.telemetry_provider.tracer_provider.tracer( Aws::Telemetry.module_to_tracer_name('Aws::MWAAServerless') ) context = Seahorse::Client::RequestContext.new( operation_name: operation_name, operation: config.api.operation(operation_name), client: self, params: params, config: config, tracer: tracer ) context[:gem_name] = 'aws-sdk-mwaaserverless' context[:gem_version] = '1.7.0' Seahorse::Client::Request.new(handlers, context) end |
#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 '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 '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 '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 '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 '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 '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 '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 '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 '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 '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 '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 '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 '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 '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 'lib/aws-sdk-mwaaserverless/client.rb', line 1380 def update_workflow(params = {}, = {}) req = build_request(:update_workflow, params) req.send_request() end |
#waiter_names ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1409 1410 1411 |
# File 'lib/aws-sdk-mwaaserverless/client.rb', line 1409 def waiter_names [] end |