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_airflow_ui_url(params = {}) ⇒ Types::CreateAirflowUiUrlResponse
Creates a launch URL that opens the Apache Airflow UI for your workflows in Amazon Managed Workflows for Apache Airflow Serverless.
-
#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.
-
#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.
486 487 488 |
# File 'gems/aws-sdk-mwaaserverless/lib/aws-sdk-mwaaserverless/client.rb', line 486 def initialize(*args) super end |
Instance Method Details
#create_airflow_ui_url(params = {}) ⇒ Types::CreateAirflowUiUrlResponse
Creates a launch URL that opens the Apache Airflow UI for your workflows in Amazon Managed Workflows for Apache Airflow Serverless. The UI shows the workflows in your account in the current AWS Region. To start a UI session, open the URL in a browser before it expires.
The UI runs with the permissions of the IAM identity that you use to call this operation. You see only the workflows, workflow runs, and logs that the identity can read, and you can start a workflow run only if the identity has permission to start one.
The UI session uses the caller's permissions. The session works only
from the network address that opened the URL. It ends at
SessionExpiresAt or when you sign out from the UI.
540 541 542 543 |
# File 'gems/aws-sdk-mwaaserverless/lib/aws-sdk-mwaaserverless/client.rb', line 540 def create_airflow_ui_url(params = {}, = {}) req = build_request(:create_airflow_ui_url, params) req.send_request() 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.
735 736 737 738 |
# File 'gems/aws-sdk-mwaaserverless/lib/aws-sdk-mwaaserverless/client.rb', line 735 def create_workflow(params = {}, = {}) req = build_request(:create_workflow, params) req.send_request() end |
#delete_workflow(params = {}) ⇒ Types::DeleteWorkflowResponse
Deletes a workflow. By default, this operation deletes the workflow
and all of its versions. To delete only a specific version, provide
the WorkflowVersion parameter. This operation is permanent and
can't be undone.
773 774 775 776 |
# File 'gems/aws-sdk-mwaaserverless/lib/aws-sdk-mwaaserverless/client.rb', line 773 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.
847 848 849 850 |
# File 'gems/aws-sdk-mwaaserverless/lib/aws-sdk-mwaaserverless/client.rb', line 847 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.
932 933 934 935 |
# File 'gems/aws-sdk-mwaaserverless/lib/aws-sdk-mwaaserverless/client.rb', line 932 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.
989 990 991 992 |
# File 'gems/aws-sdk-mwaaserverless/lib/aws-sdk-mwaaserverless/client.rb', line 989 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.
1019 1020 1021 1022 |
# File 'gems/aws-sdk-mwaaserverless/lib/aws-sdk-mwaaserverless/client.rb', line 1019 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.
1074 1075 1076 1077 |
# File 'gems/aws-sdk-mwaaserverless/lib/aws-sdk-mwaaserverless/client.rb', line 1074 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.
1131 1132 1133 1134 |
# File 'gems/aws-sdk-mwaaserverless/lib/aws-sdk-mwaaserverless/client.rb', line 1131 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.
1186 1187 1188 1189 |
# File 'gems/aws-sdk-mwaaserverless/lib/aws-sdk-mwaaserverless/client.rb', line 1186 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.
1241 1242 1243 1244 |
# File 'gems/aws-sdk-mwaaserverless/lib/aws-sdk-mwaaserverless/client.rb', line 1241 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.
1306 1307 1308 1309 |
# File 'gems/aws-sdk-mwaaserverless/lib/aws-sdk-mwaaserverless/client.rb', line 1306 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.
1352 1353 1354 1355 |
# File 'gems/aws-sdk-mwaaserverless/lib/aws-sdk-mwaaserverless/client.rb', line 1352 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.
1383 1384 1385 1386 |
# File 'gems/aws-sdk-mwaaserverless/lib/aws-sdk-mwaaserverless/client.rb', line 1383 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.
1413 1414 1415 1416 |
# File 'gems/aws-sdk-mwaaserverless/lib/aws-sdk-mwaaserverless/client.rb', line 1413 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.
1544 1545 1546 1547 |
# File 'gems/aws-sdk-mwaaserverless/lib/aws-sdk-mwaaserverless/client.rb', line 1544 def update_workflow(params = {}, = {}) req = build_request(:update_workflow, params) req.send_request() end |