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.
480 481 482 |
# File 'lib/aws-sdk-mwaaserverless/client.rb', line 480 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.
1418 1419 1420 |
# File 'lib/aws-sdk-mwaaserverless/client.rb', line 1418 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.
1421 1422 1423 |
# File 'lib/aws-sdk-mwaaserverless/client.rb', line 1421 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.
1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 |
# File 'lib/aws-sdk-mwaaserverless/client.rb', line 1391 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.6.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.
634 635 636 637 |
# File '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 '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 '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 '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 '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 '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 '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 '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 '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 '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 '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 '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 '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 '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 'lib/aws-sdk-mwaaserverless/client.rb', line 1382 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.
1411 1412 1413 |
# File 'lib/aws-sdk-mwaaserverless/client.rb', line 1411 def waiter_names [] end |