aws_sdk_mwaaserverless/client/
create_workflow.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`CreateWorkflow`](crate::operation::create_workflow::builders::CreateWorkflowFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`name(impl Into<String>)`](crate::operation::create_workflow::builders::CreateWorkflowFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_workflow::builders::CreateWorkflowFluentBuilder::set_name):<br>required: **true**<br><p>The name of the workflow. You must use unique workflow names within your Amazon Web Services account. The service generates a unique identifier that is appended to ensure temporal uniqueness across the account lifecycle.</p><br>
7    ///   - [`client_token(impl Into<String>)`](crate::operation::create_workflow::builders::CreateWorkflowFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_workflow::builders::CreateWorkflowFluentBuilder::set_client_token):<br>required: **false**<br><p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This token prevents duplicate workflow creation requests.</p><br>
8    ///   - [`definition_s3_location(DefinitionS3Location)`](crate::operation::create_workflow::builders::CreateWorkflowFluentBuilder::definition_s3_location) / [`set_definition_s3_location(Option<DefinitionS3Location>)`](crate::operation::create_workflow::builders::CreateWorkflowFluentBuilder::set_definition_s3_location):<br>required: **true**<br><p>The Amazon S3 location where the workflow definition file is stored. This must point to a valid YAML file that defines the workflow structure using supported Amazon Web Services operators and tasks. Amazon Managed Workflows for Apache Airflow Serverless takes a snapshot of the definition at creation time, so subsequent changes to the Amazon S3 object will not affect the workflow unless you create a new version. In your YAML definition, include task dependencies, scheduling information, and operator configurations that are compatible with the Amazon Managed Workflows for Apache Airflow Serverless execution environment.</p><br>
9    ///   - [`role_arn(impl Into<String>)`](crate::operation::create_workflow::builders::CreateWorkflowFluentBuilder::role_arn) / [`set_role_arn(Option<String>)`](crate::operation::create_workflow::builders::CreateWorkflowFluentBuilder::set_role_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the IAM role that Amazon Managed Workflows for Apache Airflow Serverless assumes when executing the workflow. This role must have the necessary permissions to access the required Amazon Web Services services and resources that your workflow tasks will interact with. The role is used for task execution in the isolated, multi-tenant environment and should follow the principle of least privilege. Amazon Managed Workflows for Apache Airflow Serverless validates role access during workflow creation but runtime permission checks are performed by the target services.</p><br>
10    ///   - [`description(impl Into<String>)`](crate::operation::create_workflow::builders::CreateWorkflowFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_workflow::builders::CreateWorkflowFluentBuilder::set_description):<br>required: **false**<br><p>An optional description of the workflow that you can use to provide additional context about the workflow's purpose and functionality.</p><br>
11    ///   - [`encryption_configuration(EncryptionConfiguration)`](crate::operation::create_workflow::builders::CreateWorkflowFluentBuilder::encryption_configuration) / [`set_encryption_configuration(Option<EncryptionConfiguration>)`](crate::operation::create_workflow::builders::CreateWorkflowFluentBuilder::set_encryption_configuration):<br>required: **false**<br><p>The configuration for encrypting workflow data at rest and in transit. Specifies the encryption type and optional KMS key for customer-managed encryption.</p><br>
12    ///   - [`logging_configuration(LoggingConfiguration)`](crate::operation::create_workflow::builders::CreateWorkflowFluentBuilder::logging_configuration) / [`set_logging_configuration(Option<LoggingConfiguration>)`](crate::operation::create_workflow::builders::CreateWorkflowFluentBuilder::set_logging_configuration):<br>required: **false**<br><p>The configuration for workflow logging. Specifies the CloudWatch log group where workflow execution logs are stored. Amazon Managed Workflows for Apache Airflow Serverless automatically exports worker logs and task-level information to the specified log group in your account using remote logging functionality. This provides comprehensive observability for debugging and monitoring workflow execution across the distributed, serverless environment.</p><br>
13    ///   - [`engine_version(i32)`](crate::operation::create_workflow::builders::CreateWorkflowFluentBuilder::engine_version) / [`set_engine_version(Option<i32>)`](crate::operation::create_workflow::builders::CreateWorkflowFluentBuilder::set_engine_version):<br>required: **false**<br><p>The version of the Amazon Managed Workflows for Apache Airflow Serverless engine that you want to use for this workflow. This determines the feature set, supported operators, and execution environment capabilities available to your workflow. Amazon Managed Workflows for Apache Airflow Serverless maintains backward compatibility across versions while introducing new features and improvements. Currently supports version 1 with plans for additional versions as the service evolves.</p><br>
14    ///   - [`network_configuration(NetworkConfiguration)`](crate::operation::create_workflow::builders::CreateWorkflowFluentBuilder::network_configuration) / [`set_network_configuration(Option<NetworkConfiguration>)`](crate::operation::create_workflow::builders::CreateWorkflowFluentBuilder::set_network_configuration):<br>required: **false**<br><p>Network configuration for the workflow execution environment, including VPC security groups and subnets for secure network access. When specified, Amazon Managed Workflows for Apache Airflow Serverless deploys ECS worker tasks in your customer VPC to provide secure connectivity to your resources. If not specified, tasks run in the service's default worker VPC with network isolation from other customers. This configuration enables secure access to VPC-only resources like RDS databases or private endpoints.</p><br>
15    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_workflow::builders::CreateWorkflowFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_workflow::builders::CreateWorkflowFluentBuilder::set_tags):<br>required: **false**<br><p>A map of tags to assign to the workflow resource. Tags are key-value pairs that are used for resource organization and cost allocation.</p><br>
16    ///   - [`trigger_mode(impl Into<String>)`](crate::operation::create_workflow::builders::CreateWorkflowFluentBuilder::trigger_mode) / [`set_trigger_mode(Option<String>)`](crate::operation::create_workflow::builders::CreateWorkflowFluentBuilder::set_trigger_mode):<br>required: **false**<br><p>The trigger mode for the workflow execution.</p><br>
17    /// - On success, responds with [`CreateWorkflowOutput`](crate::operation::create_workflow::CreateWorkflowOutput) with field(s):
18    ///   - [`workflow_arn(String)`](crate::operation::create_workflow::CreateWorkflowOutput::workflow_arn): <p>The Amazon Resource Name (ARN) of the newly created workflow. This ARN uniquely identifies the workflow resource.</p>
19    ///   - [`created_at(Option<DateTime>)`](crate::operation::create_workflow::CreateWorkflowOutput::created_at): <p>The timestamp when the workflow was created, in ISO 8601 date-time format.</p>
20    ///   - [`revision_id(Option<String>)`](crate::operation::create_workflow::CreateWorkflowOutput::revision_id): <p>A unique identifier for this revision of the workflow configuration. This ID changes when the workflow is updated and you can use it for optimistic concurrency control in update operations. The revision ID helps prevent conflicting updates and ensures that updates are applied to the expected version of the workflow configuration.</p>
21    ///   - [`workflow_status(Option<WorkflowStatus>)`](crate::operation::create_workflow::CreateWorkflowOutput::workflow_status): <p>The current status of the workflow. Possible values are <code>READY</code> (workflow is ready to run) and <code>DELETING</code> (workflow is being deleted).</p>
22    ///   - [`workflow_version(Option<String>)`](crate::operation::create_workflow::CreateWorkflowOutput::workflow_version): <p>The version identifier of the workflow. This is a service-generated alphanumeric string that uniquely identifies this version of the workflow. Amazon Managed Workflows for Apache Airflow Serverless uses a version-first approach where each workflow can have multiple immutable versions, which allows you to maintain different configurations and roll back to previous versions as needed. The version identifier is used in ARNs and API operations to reference specific workflow versions.</p>
23    ///   - [`is_latest_version(Option<bool>)`](crate::operation::create_workflow::CreateWorkflowOutput::is_latest_version): <p>A Boolean flag that indicates whether this workflow version is the latest version of the workflow.</p>
24    ///   - [`warnings(Option<Vec::<String>>)`](crate::operation::create_workflow::CreateWorkflowOutput::warnings): <p>Warning messages generated during workflow creation.</p>
25    /// - On failure, responds with [`SdkError<CreateWorkflowError>`](crate::operation::create_workflow::CreateWorkflowError)
26    pub fn create_workflow(&self) -> crate::operation::create_workflow::builders::CreateWorkflowFluentBuilder {
27        crate::operation::create_workflow::builders::CreateWorkflowFluentBuilder::new(self.handle.clone())
28    }
29}