1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. dms
  5. Airflow
Alibaba Cloud v3.86.1 published on Saturday, Sep 27, 2025 by Pulumi

alicloud.dms.Airflow

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.86.1 published on Saturday, Sep 27, 2025 by Pulumi

    Provides a Dms Airflow resource.

    Airflow instance, used to schedule jobs.

    For information about Dms Airflow and how to use it, see What is Airflow.

    NOTE: Available since v1.260.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "terraform-example";
    const _default = alicloud.vpc.getNetworks({
        nameRegex: "^default-NODELETING$",
    });
    const defaultGetSwitches = _default.then(_default => alicloud.vpc.getSwitches({
        vpcId: _default.ids?.[0],
        zoneId: "cn-hangzhou-h",
    }));
    const securityGroup = new alicloud.ecs.SecurityGroup("security_group", {
        description: "terraform_example_group",
        securityGroupName: "terraform_example_group",
        vpcId: _default.then(_default => _default.ids?.[0]),
        securityGroupType: "normal",
        innerAccessPolicy: "Accept",
    });
    const workspace = new alicloud.dms.EnterpriseWorkspace("workspace", {
        description: "terraform-example",
        vpcId: _default.then(_default => _default.ids?.[0]),
        workspaceName: "terraform-example",
    });
    const defaultAirflow = new alicloud.dms.Airflow("default", {
        vpcId: _default.then(_default => _default.ids?.[0]),
        ossPath: "/",
        dagsDir: "default/dags",
        zoneId: "cn-hangzhou-h",
        workerServerlessReplicas: 0,
        description: "terraform-example",
        securityGroupId: securityGroup.id,
        requirementFile: "default/requirements.txt",
        airflowName: "tfaccdms6513",
        pluginsDir: "default/plugins",
        startupFile: "default/startup.sh",
        appSpec: "SMALL",
        ossBucketName: "hansheng",
        vswitchId: defaultGetSwitches.then(defaultGetSwitches => defaultGetSwitches.ids?.[0]),
        workspaceId: workspace.id,
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    default = alicloud.vpc.get_networks(name_regex="^default-NODELETING$")
    default_get_switches = alicloud.vpc.get_switches(vpc_id=default.ids[0],
        zone_id="cn-hangzhou-h")
    security_group = alicloud.ecs.SecurityGroup("security_group",
        description="terraform_example_group",
        security_group_name="terraform_example_group",
        vpc_id=default.ids[0],
        security_group_type="normal",
        inner_access_policy="Accept")
    workspace = alicloud.dms.EnterpriseWorkspace("workspace",
        description="terraform-example",
        vpc_id=default.ids[0],
        workspace_name="terraform-example")
    default_airflow = alicloud.dms.Airflow("default",
        vpc_id=default.ids[0],
        oss_path="/",
        dags_dir="default/dags",
        zone_id="cn-hangzhou-h",
        worker_serverless_replicas=0,
        description="terraform-example",
        security_group_id=security_group.id,
        requirement_file="default/requirements.txt",
        airflow_name="tfaccdms6513",
        plugins_dir="default/plugins",
        startup_file="default/startup.sh",
        app_spec="SMALL",
        oss_bucket_name="hansheng",
        vswitch_id=default_get_switches.ids[0],
        workspace_id=workspace.id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/dms"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "terraform-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		_default, err := vpc.GetNetworks(ctx, &vpc.GetNetworksArgs{
    			NameRegex: pulumi.StringRef("^default-NODELETING$"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		defaultGetSwitches, err := vpc.GetSwitches(ctx, &vpc.GetSwitchesArgs{
    			VpcId:  pulumi.StringRef(_default.Ids[0]),
    			ZoneId: pulumi.StringRef("cn-hangzhou-h"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		securityGroup, err := ecs.NewSecurityGroup(ctx, "security_group", &ecs.SecurityGroupArgs{
    			Description:       pulumi.String("terraform_example_group"),
    			SecurityGroupName: pulumi.String("terraform_example_group"),
    			VpcId:             pulumi.String(_default.Ids[0]),
    			SecurityGroupType: pulumi.String("normal"),
    			InnerAccessPolicy: pulumi.String("Accept"),
    		})
    		if err != nil {
    			return err
    		}
    		workspace, err := dms.NewEnterpriseWorkspace(ctx, "workspace", &dms.EnterpriseWorkspaceArgs{
    			Description:   pulumi.String("terraform-example"),
    			VpcId:         pulumi.String(_default.Ids[0]),
    			WorkspaceName: pulumi.String("terraform-example"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = dms.NewAirflow(ctx, "default", &dms.AirflowArgs{
    			VpcId:                    pulumi.String(_default.Ids[0]),
    			OssPath:                  pulumi.String("/"),
    			DagsDir:                  pulumi.String("default/dags"),
    			ZoneId:                   pulumi.String("cn-hangzhou-h"),
    			WorkerServerlessReplicas: pulumi.Int(0),
    			Description:              pulumi.String("terraform-example"),
    			SecurityGroupId:          securityGroup.ID(),
    			RequirementFile:          pulumi.String("default/requirements.txt"),
    			AirflowName:              pulumi.String("tfaccdms6513"),
    			PluginsDir:               pulumi.String("default/plugins"),
    			StartupFile:              pulumi.String("default/startup.sh"),
    			AppSpec:                  pulumi.String("SMALL"),
    			OssBucketName:            pulumi.String("hansheng"),
    			VswitchId:                pulumi.String(defaultGetSwitches.Ids[0]),
    			WorkspaceId:              workspace.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "terraform-example";
        var @default = AliCloud.Vpc.GetNetworks.Invoke(new()
        {
            NameRegex = "^default-NODELETING$",
        });
    
        var defaultGetSwitches = AliCloud.Vpc.GetSwitches.Invoke(new()
        {
            VpcId = @default.Apply(getNetworksResult => getNetworksResult.Ids[0]),
            ZoneId = "cn-hangzhou-h",
        });
    
        var securityGroup = new AliCloud.Ecs.SecurityGroup("security_group", new()
        {
            Description = "terraform_example_group",
            SecurityGroupName = "terraform_example_group",
            VpcId = @default.Apply(@default => @default.Apply(getNetworksResult => getNetworksResult.Ids[0])),
            SecurityGroupType = "normal",
            InnerAccessPolicy = "Accept",
        });
    
        var workspace = new AliCloud.Dms.EnterpriseWorkspace("workspace", new()
        {
            Description = "terraform-example",
            VpcId = @default.Apply(@default => @default.Apply(getNetworksResult => getNetworksResult.Ids[0])),
            WorkspaceName = "terraform-example",
        });
    
        var defaultAirflow = new AliCloud.Dms.Airflow("default", new()
        {
            VpcId = @default.Apply(@default => @default.Apply(getNetworksResult => getNetworksResult.Ids[0])),
            OssPath = "/",
            DagsDir = "default/dags",
            ZoneId = "cn-hangzhou-h",
            WorkerServerlessReplicas = 0,
            Description = "terraform-example",
            SecurityGroupId = securityGroup.Id,
            RequirementFile = "default/requirements.txt",
            AirflowName = "tfaccdms6513",
            PluginsDir = "default/plugins",
            StartupFile = "default/startup.sh",
            AppSpec = "SMALL",
            OssBucketName = "hansheng",
            VswitchId = defaultGetSwitches.Apply(getSwitchesResult => getSwitchesResult.Ids[0]),
            WorkspaceId = workspace.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.vpc.VpcFunctions;
    import com.pulumi.alicloud.vpc.inputs.GetNetworksArgs;
    import com.pulumi.alicloud.vpc.inputs.GetSwitchesArgs;
    import com.pulumi.alicloud.ecs.SecurityGroup;
    import com.pulumi.alicloud.ecs.SecurityGroupArgs;
    import com.pulumi.alicloud.dms.EnterpriseWorkspace;
    import com.pulumi.alicloud.dms.EnterpriseWorkspaceArgs;
    import com.pulumi.alicloud.dms.Airflow;
    import com.pulumi.alicloud.dms.AirflowArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var config = ctx.config();
            final var name = config.get("name").orElse("terraform-example");
            final var default = VpcFunctions.getNetworks(GetNetworksArgs.builder()
                .nameRegex("^default-NODELETING$")
                .build());
    
            final var defaultGetSwitches = VpcFunctions.getSwitches(GetSwitchesArgs.builder()
                .vpcId(default_.ids()[0])
                .zoneId("cn-hangzhou-h")
                .build());
    
            var securityGroup = new SecurityGroup("securityGroup", SecurityGroupArgs.builder()
                .description("terraform_example_group")
                .securityGroupName("terraform_example_group")
                .vpcId(default_.ids()[0])
                .securityGroupType("normal")
                .innerAccessPolicy("Accept")
                .build());
    
            var workspace = new EnterpriseWorkspace("workspace", EnterpriseWorkspaceArgs.builder()
                .description("terraform-example")
                .vpcId(default_.ids()[0])
                .workspaceName("terraform-example")
                .build());
    
            var defaultAirflow = new Airflow("defaultAirflow", AirflowArgs.builder()
                .vpcId(default_.ids()[0])
                .ossPath("/")
                .dagsDir("default/dags")
                .zoneId("cn-hangzhou-h")
                .workerServerlessReplicas(0)
                .description("terraform-example")
                .securityGroupId(securityGroup.id())
                .requirementFile("default/requirements.txt")
                .airflowName("tfaccdms6513")
                .pluginsDir("default/plugins")
                .startupFile("default/startup.sh")
                .appSpec("SMALL")
                .ossBucketName("hansheng")
                .vswitchId(defaultGetSwitches.ids()[0])
                .workspaceId(workspace.id())
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
    resources:
      securityGroup:
        type: alicloud:ecs:SecurityGroup
        name: security_group
        properties:
          description: terraform_example_group
          securityGroupName: terraform_example_group
          vpcId: ${default.ids[0]}
          securityGroupType: normal
          innerAccessPolicy: Accept
      workspace:
        type: alicloud:dms:EnterpriseWorkspace
        properties:
          description: terraform-example
          vpcId: ${default.ids[0]}
          workspaceName: terraform-example
      defaultAirflow:
        type: alicloud:dms:Airflow
        name: default
        properties:
          vpcId: ${default.ids[0]}
          ossPath: /
          dagsDir: default/dags
          zoneId: cn-hangzhou-h
          workerServerlessReplicas: '0'
          description: terraform-example
          securityGroupId: ${securityGroup.id}
          requirementFile: default/requirements.txt
          airflowName: tfaccdms6513
          pluginsDir: default/plugins
          startupFile: default/startup.sh
          appSpec: SMALL
          ossBucketName: hansheng
          vswitchId: ${defaultGetSwitches.ids[0]}
          workspaceId: ${workspace.id}
    variables:
      default:
        fn::invoke:
          function: alicloud:vpc:getNetworks
          arguments:
            nameRegex: ^default-NODELETING$
      defaultGetSwitches:
        fn::invoke:
          function: alicloud:vpc:getSwitches
          arguments:
            vpcId: ${default.ids[0]}
            zoneId: cn-hangzhou-h
    

    Create Airflow Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Airflow(name: string, args: AirflowArgs, opts?: CustomResourceOptions);
    @overload
    def Airflow(resource_name: str,
                args: AirflowArgs,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def Airflow(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                vswitch_id: Optional[str] = None,
                app_spec: Optional[str] = None,
                zone_id: Optional[str] = None,
                description: Optional[str] = None,
                oss_bucket_name: Optional[str] = None,
                oss_path: Optional[str] = None,
                airflow_name: Optional[str] = None,
                workspace_id: Optional[str] = None,
                security_group_id: Optional[str] = None,
                worker_serverless_replicas: Optional[int] = None,
                vpc_id: Optional[str] = None,
                plugins_dir: Optional[str] = None,
                startup_file: Optional[str] = None,
                requirement_file: Optional[str] = None,
                dags_dir: Optional[str] = None)
    func NewAirflow(ctx *Context, name string, args AirflowArgs, opts ...ResourceOption) (*Airflow, error)
    public Airflow(string name, AirflowArgs args, CustomResourceOptions? opts = null)
    public Airflow(String name, AirflowArgs args)
    public Airflow(String name, AirflowArgs args, CustomResourceOptions options)
    
    type: alicloud:dms:Airflow
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args AirflowArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args AirflowArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args AirflowArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AirflowArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AirflowArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var airflowResource = new AliCloud.Dms.Airflow("airflowResource", new()
    {
        VswitchId = "string",
        AppSpec = "string",
        ZoneId = "string",
        Description = "string",
        OssBucketName = "string",
        OssPath = "string",
        AirflowName = "string",
        WorkspaceId = "string",
        SecurityGroupId = "string",
        WorkerServerlessReplicas = 0,
        VpcId = "string",
        PluginsDir = "string",
        StartupFile = "string",
        RequirementFile = "string",
        DagsDir = "string",
    });
    
    example, err := dms.NewAirflow(ctx, "airflowResource", &dms.AirflowArgs{
    	VswitchId:                pulumi.String("string"),
    	AppSpec:                  pulumi.String("string"),
    	ZoneId:                   pulumi.String("string"),
    	Description:              pulumi.String("string"),
    	OssBucketName:            pulumi.String("string"),
    	OssPath:                  pulumi.String("string"),
    	AirflowName:              pulumi.String("string"),
    	WorkspaceId:              pulumi.String("string"),
    	SecurityGroupId:          pulumi.String("string"),
    	WorkerServerlessReplicas: pulumi.Int(0),
    	VpcId:                    pulumi.String("string"),
    	PluginsDir:               pulumi.String("string"),
    	StartupFile:              pulumi.String("string"),
    	RequirementFile:          pulumi.String("string"),
    	DagsDir:                  pulumi.String("string"),
    })
    
    var airflowResource = new Airflow("airflowResource", AirflowArgs.builder()
        .vswitchId("string")
        .appSpec("string")
        .zoneId("string")
        .description("string")
        .ossBucketName("string")
        .ossPath("string")
        .airflowName("string")
        .workspaceId("string")
        .securityGroupId("string")
        .workerServerlessReplicas(0)
        .vpcId("string")
        .pluginsDir("string")
        .startupFile("string")
        .requirementFile("string")
        .dagsDir("string")
        .build());
    
    airflow_resource = alicloud.dms.Airflow("airflowResource",
        vswitch_id="string",
        app_spec="string",
        zone_id="string",
        description="string",
        oss_bucket_name="string",
        oss_path="string",
        airflow_name="string",
        workspace_id="string",
        security_group_id="string",
        worker_serverless_replicas=0,
        vpc_id="string",
        plugins_dir="string",
        startup_file="string",
        requirement_file="string",
        dags_dir="string")
    
    const airflowResource = new alicloud.dms.Airflow("airflowResource", {
        vswitchId: "string",
        appSpec: "string",
        zoneId: "string",
        description: "string",
        ossBucketName: "string",
        ossPath: "string",
        airflowName: "string",
        workspaceId: "string",
        securityGroupId: "string",
        workerServerlessReplicas: 0,
        vpcId: "string",
        pluginsDir: "string",
        startupFile: "string",
        requirementFile: "string",
        dagsDir: "string",
    });
    
    type: alicloud:dms:Airflow
    properties:
        airflowName: string
        appSpec: string
        dagsDir: string
        description: string
        ossBucketName: string
        ossPath: string
        pluginsDir: string
        requirementFile: string
        securityGroupId: string
        startupFile: string
        vpcId: string
        vswitchId: string
        workerServerlessReplicas: 0
        workspaceId: string
        zoneId: string
    

    Airflow Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Airflow resource accepts the following input properties:

    AirflowName string
    Name of the Airflow instance
    AppSpec string
    Airflow instance specifications
    Description string
    Description of the airflow instance
    OssBucketName string
    OSS bucket name
    OssPath string
    OSS path
    SecurityGroupId string
    Security group ID
    VpcId string
    Vpc id
    VswitchId string
    Switch ID
    WorkerServerlessReplicas int
    Worker Node extension
    WorkspaceId string
    DMS workspace ID
    ZoneId string
    Zone ID in the region
    DagsDir string
    Dag scan path
    PluginsDir string
    The path of the plugin scanned by the airflow instance.
    RequirementFile string
    Path to installable package
    StartupFile string
    Launch script for the airflow container
    AirflowName string
    Name of the Airflow instance
    AppSpec string
    Airflow instance specifications
    Description string
    Description of the airflow instance
    OssBucketName string
    OSS bucket name
    OssPath string
    OSS path
    SecurityGroupId string
    Security group ID
    VpcId string
    Vpc id
    VswitchId string
    Switch ID
    WorkerServerlessReplicas int
    Worker Node extension
    WorkspaceId string
    DMS workspace ID
    ZoneId string
    Zone ID in the region
    DagsDir string
    Dag scan path
    PluginsDir string
    The path of the plugin scanned by the airflow instance.
    RequirementFile string
    Path to installable package
    StartupFile string
    Launch script for the airflow container
    airflowName String
    Name of the Airflow instance
    appSpec String
    Airflow instance specifications
    description String
    Description of the airflow instance
    ossBucketName String
    OSS bucket name
    ossPath String
    OSS path
    securityGroupId String
    Security group ID
    vpcId String
    Vpc id
    vswitchId String
    Switch ID
    workerServerlessReplicas Integer
    Worker Node extension
    workspaceId String
    DMS workspace ID
    zoneId String
    Zone ID in the region
    dagsDir String
    Dag scan path
    pluginsDir String
    The path of the plugin scanned by the airflow instance.
    requirementFile String
    Path to installable package
    startupFile String
    Launch script for the airflow container
    airflowName string
    Name of the Airflow instance
    appSpec string
    Airflow instance specifications
    description string
    Description of the airflow instance
    ossBucketName string
    OSS bucket name
    ossPath string
    OSS path
    securityGroupId string
    Security group ID
    vpcId string
    Vpc id
    vswitchId string
    Switch ID
    workerServerlessReplicas number
    Worker Node extension
    workspaceId string
    DMS workspace ID
    zoneId string
    Zone ID in the region
    dagsDir string
    Dag scan path
    pluginsDir string
    The path of the plugin scanned by the airflow instance.
    requirementFile string
    Path to installable package
    startupFile string
    Launch script for the airflow container
    airflow_name str
    Name of the Airflow instance
    app_spec str
    Airflow instance specifications
    description str
    Description of the airflow instance
    oss_bucket_name str
    OSS bucket name
    oss_path str
    OSS path
    security_group_id str
    Security group ID
    vpc_id str
    Vpc id
    vswitch_id str
    Switch ID
    worker_serverless_replicas int
    Worker Node extension
    workspace_id str
    DMS workspace ID
    zone_id str
    Zone ID in the region
    dags_dir str
    Dag scan path
    plugins_dir str
    The path of the plugin scanned by the airflow instance.
    requirement_file str
    Path to installable package
    startup_file str
    Launch script for the airflow container
    airflowName String
    Name of the Airflow instance
    appSpec String
    Airflow instance specifications
    description String
    Description of the airflow instance
    ossBucketName String
    OSS bucket name
    ossPath String
    OSS path
    securityGroupId String
    Security group ID
    vpcId String
    Vpc id
    vswitchId String
    Switch ID
    workerServerlessReplicas Number
    Worker Node extension
    workspaceId String
    DMS workspace ID
    zoneId String
    Zone ID in the region
    dagsDir String
    Dag scan path
    pluginsDir String
    The path of the plugin scanned by the airflow instance.
    requirementFile String
    Path to installable package
    startupFile String
    Launch script for the airflow container

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Airflow resource produces the following output properties:

    AirflowId string
    AirflowId
    Id string
    The provider-assigned unique ID for this managed resource.
    RegionId string
    The region ID of the resource
    AirflowId string
    AirflowId
    Id string
    The provider-assigned unique ID for this managed resource.
    RegionId string
    The region ID of the resource
    airflowId String
    AirflowId
    id String
    The provider-assigned unique ID for this managed resource.
    regionId String
    The region ID of the resource
    airflowId string
    AirflowId
    id string
    The provider-assigned unique ID for this managed resource.
    regionId string
    The region ID of the resource
    airflow_id str
    AirflowId
    id str
    The provider-assigned unique ID for this managed resource.
    region_id str
    The region ID of the resource
    airflowId String
    AirflowId
    id String
    The provider-assigned unique ID for this managed resource.
    regionId String
    The region ID of the resource

    Look up Existing Airflow Resource

    Get an existing Airflow resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: AirflowState, opts?: CustomResourceOptions): Airflow
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            airflow_id: Optional[str] = None,
            airflow_name: Optional[str] = None,
            app_spec: Optional[str] = None,
            dags_dir: Optional[str] = None,
            description: Optional[str] = None,
            oss_bucket_name: Optional[str] = None,
            oss_path: Optional[str] = None,
            plugins_dir: Optional[str] = None,
            region_id: Optional[str] = None,
            requirement_file: Optional[str] = None,
            security_group_id: Optional[str] = None,
            startup_file: Optional[str] = None,
            vpc_id: Optional[str] = None,
            vswitch_id: Optional[str] = None,
            worker_serverless_replicas: Optional[int] = None,
            workspace_id: Optional[str] = None,
            zone_id: Optional[str] = None) -> Airflow
    func GetAirflow(ctx *Context, name string, id IDInput, state *AirflowState, opts ...ResourceOption) (*Airflow, error)
    public static Airflow Get(string name, Input<string> id, AirflowState? state, CustomResourceOptions? opts = null)
    public static Airflow get(String name, Output<String> id, AirflowState state, CustomResourceOptions options)
    resources:  _:    type: alicloud:dms:Airflow    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AirflowId string
    AirflowId
    AirflowName string
    Name of the Airflow instance
    AppSpec string
    Airflow instance specifications
    DagsDir string
    Dag scan path
    Description string
    Description of the airflow instance
    OssBucketName string
    OSS bucket name
    OssPath string
    OSS path
    PluginsDir string
    The path of the plugin scanned by the airflow instance.
    RegionId string
    The region ID of the resource
    RequirementFile string
    Path to installable package
    SecurityGroupId string
    Security group ID
    StartupFile string
    Launch script for the airflow container
    VpcId string
    Vpc id
    VswitchId string
    Switch ID
    WorkerServerlessReplicas int
    Worker Node extension
    WorkspaceId string
    DMS workspace ID
    ZoneId string
    Zone ID in the region
    AirflowId string
    AirflowId
    AirflowName string
    Name of the Airflow instance
    AppSpec string
    Airflow instance specifications
    DagsDir string
    Dag scan path
    Description string
    Description of the airflow instance
    OssBucketName string
    OSS bucket name
    OssPath string
    OSS path
    PluginsDir string
    The path of the plugin scanned by the airflow instance.
    RegionId string
    The region ID of the resource
    RequirementFile string
    Path to installable package
    SecurityGroupId string
    Security group ID
    StartupFile string
    Launch script for the airflow container
    VpcId string
    Vpc id
    VswitchId string
    Switch ID
    WorkerServerlessReplicas int
    Worker Node extension
    WorkspaceId string
    DMS workspace ID
    ZoneId string
    Zone ID in the region
    airflowId String
    AirflowId
    airflowName String
    Name of the Airflow instance
    appSpec String
    Airflow instance specifications
    dagsDir String
    Dag scan path
    description String
    Description of the airflow instance
    ossBucketName String
    OSS bucket name
    ossPath String
    OSS path
    pluginsDir String
    The path of the plugin scanned by the airflow instance.
    regionId String
    The region ID of the resource
    requirementFile String
    Path to installable package
    securityGroupId String
    Security group ID
    startupFile String
    Launch script for the airflow container
    vpcId String
    Vpc id
    vswitchId String
    Switch ID
    workerServerlessReplicas Integer
    Worker Node extension
    workspaceId String
    DMS workspace ID
    zoneId String
    Zone ID in the region
    airflowId string
    AirflowId
    airflowName string
    Name of the Airflow instance
    appSpec string
    Airflow instance specifications
    dagsDir string
    Dag scan path
    description string
    Description of the airflow instance
    ossBucketName string
    OSS bucket name
    ossPath string
    OSS path
    pluginsDir string
    The path of the plugin scanned by the airflow instance.
    regionId string
    The region ID of the resource
    requirementFile string
    Path to installable package
    securityGroupId string
    Security group ID
    startupFile string
    Launch script for the airflow container
    vpcId string
    Vpc id
    vswitchId string
    Switch ID
    workerServerlessReplicas number
    Worker Node extension
    workspaceId string
    DMS workspace ID
    zoneId string
    Zone ID in the region
    airflow_id str
    AirflowId
    airflow_name str
    Name of the Airflow instance
    app_spec str
    Airflow instance specifications
    dags_dir str
    Dag scan path
    description str
    Description of the airflow instance
    oss_bucket_name str
    OSS bucket name
    oss_path str
    OSS path
    plugins_dir str
    The path of the plugin scanned by the airflow instance.
    region_id str
    The region ID of the resource
    requirement_file str
    Path to installable package
    security_group_id str
    Security group ID
    startup_file str
    Launch script for the airflow container
    vpc_id str
    Vpc id
    vswitch_id str
    Switch ID
    worker_serverless_replicas int
    Worker Node extension
    workspace_id str
    DMS workspace ID
    zone_id str
    Zone ID in the region
    airflowId String
    AirflowId
    airflowName String
    Name of the Airflow instance
    appSpec String
    Airflow instance specifications
    dagsDir String
    Dag scan path
    description String
    Description of the airflow instance
    ossBucketName String
    OSS bucket name
    ossPath String
    OSS path
    pluginsDir String
    The path of the plugin scanned by the airflow instance.
    regionId String
    The region ID of the resource
    requirementFile String
    Path to installable package
    securityGroupId String
    Security group ID
    startupFile String
    Launch script for the airflow container
    vpcId String
    Vpc id
    vswitchId String
    Switch ID
    workerServerlessReplicas Number
    Worker Node extension
    workspaceId String
    DMS workspace ID
    zoneId String
    Zone ID in the region

    Import

    Dms Airflow can be imported using the id, e.g.

    $ pulumi import alicloud:dms/airflow:Airflow example <workspace_id>:<airflow_id>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.86.1 published on Saturday, Sep 27, 2025 by Pulumi