1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. eds
  5. AdConnectorDirectory
Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi

alicloud.eds.AdConnectorDirectory

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi

    Provides a ECD Ad Connector Directory resource.

    For information about ECD Ad Connector Directory and how to use it, see What is Ad Connector Directory.

    NOTE: Available since v1.174.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    import * as random from "@pulumi/random";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "terraform-example";
    const defaultZones = alicloud.eds.getZones({});
    const defaultNetwork = new alicloud.vpc.Network("defaultNetwork", {
        vpcName: name,
        cidrBlock: "172.16.0.0/16",
    });
    const defaultSwitch = new alicloud.vpc.Switch("defaultSwitch", {
        vpcId: defaultNetwork.id,
        cidrBlock: "172.16.0.0/24",
        zoneId: defaultZones.then(defaultZones => defaultZones.ids?.[0]),
        vswitchName: name,
    });
    const defaultRandomInteger = new random.RandomInteger("defaultRandomInteger", {
        min: 10000,
        max: 99999,
    });
    const defaultAdConnectorDirectory = new alicloud.eds.AdConnectorDirectory("defaultAdConnectorDirectory", {
        directoryName: pulumi.interpolate`${name}-${defaultRandomInteger.result}`,
        desktopAccessType: "INTERNET",
        dnsAddresses: ["127.0.0.2"],
        domainName: "corp.example.com",
        domainPassword: "Example1234",
        domainUserName: "sAMAccountName",
        enableAdminAccess: false,
        mfaEnabled: false,
        specification: 1,
        subDomainDnsAddresses: ["127.0.0.3"],
        subDomainName: "child.example.com",
        vswitchIds: [defaultSwitch.id],
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    import pulumi_random as random
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    default_zones = alicloud.eds.get_zones()
    default_network = alicloud.vpc.Network("defaultNetwork",
        vpc_name=name,
        cidr_block="172.16.0.0/16")
    default_switch = alicloud.vpc.Switch("defaultSwitch",
        vpc_id=default_network.id,
        cidr_block="172.16.0.0/24",
        zone_id=default_zones.ids[0],
        vswitch_name=name)
    default_random_integer = random.RandomInteger("defaultRandomInteger",
        min=10000,
        max=99999)
    default_ad_connector_directory = alicloud.eds.AdConnectorDirectory("defaultAdConnectorDirectory",
        directory_name=default_random_integer.result.apply(lambda result: f"{name}-{result}"),
        desktop_access_type="INTERNET",
        dns_addresses=["127.0.0.2"],
        domain_name="corp.example.com",
        domain_password="Example1234",
        domain_user_name="sAMAccountName",
        enable_admin_access=False,
        mfa_enabled=False,
        specification=1,
        sub_domain_dns_addresses=["127.0.0.3"],
        sub_domain_name="child.example.com",
        vswitch_ids=[default_switch.id])
    
    package main
    
    import (
    	"fmt"
    
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/eds"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
    	"github.com/pulumi/pulumi-random/sdk/v4/go/random"
    	"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
    		}
    		defaultZones, err := eds.GetZones(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		defaultNetwork, err := vpc.NewNetwork(ctx, "defaultNetwork", &vpc.NetworkArgs{
    			VpcName:   pulumi.String(name),
    			CidrBlock: pulumi.String("172.16.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		defaultSwitch, err := vpc.NewSwitch(ctx, "defaultSwitch", &vpc.SwitchArgs{
    			VpcId:       defaultNetwork.ID(),
    			CidrBlock:   pulumi.String("172.16.0.0/24"),
    			ZoneId:      pulumi.String(defaultZones.Ids[0]),
    			VswitchName: pulumi.String(name),
    		})
    		if err != nil {
    			return err
    		}
    		defaultRandomInteger, err := random.NewRandomInteger(ctx, "defaultRandomInteger", &random.RandomIntegerArgs{
    			Min: pulumi.Int(10000),
    			Max: pulumi.Int(99999),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = eds.NewAdConnectorDirectory(ctx, "defaultAdConnectorDirectory", &eds.AdConnectorDirectoryArgs{
    			DirectoryName: defaultRandomInteger.Result.ApplyT(func(result int) (string, error) {
    				return fmt.Sprintf("%v-%v", name, result), nil
    			}).(pulumi.StringOutput),
    			DesktopAccessType: pulumi.String("INTERNET"),
    			DnsAddresses: pulumi.StringArray{
    				pulumi.String("127.0.0.2"),
    			},
    			DomainName:        pulumi.String("corp.example.com"),
    			DomainPassword:    pulumi.String("Example1234"),
    			DomainUserName:    pulumi.String("sAMAccountName"),
    			EnableAdminAccess: pulumi.Bool(false),
    			MfaEnabled:        pulumi.Bool(false),
    			Specification:     pulumi.Int(1),
    			SubDomainDnsAddresses: pulumi.StringArray{
    				pulumi.String("127.0.0.3"),
    			},
    			SubDomainName: pulumi.String("child.example.com"),
    			VswitchIds: pulumi.StringArray{
    				defaultSwitch.ID(),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    using Random = Pulumi.Random;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "terraform-example";
        var defaultZones = AliCloud.Eds.GetZones.Invoke();
    
        var defaultNetwork = new AliCloud.Vpc.Network("defaultNetwork", new()
        {
            VpcName = name,
            CidrBlock = "172.16.0.0/16",
        });
    
        var defaultSwitch = new AliCloud.Vpc.Switch("defaultSwitch", new()
        {
            VpcId = defaultNetwork.Id,
            CidrBlock = "172.16.0.0/24",
            ZoneId = defaultZones.Apply(getZonesResult => getZonesResult.Ids[0]),
            VswitchName = name,
        });
    
        var defaultRandomInteger = new Random.RandomInteger("defaultRandomInteger", new()
        {
            Min = 10000,
            Max = 99999,
        });
    
        var defaultAdConnectorDirectory = new AliCloud.Eds.AdConnectorDirectory("defaultAdConnectorDirectory", new()
        {
            DirectoryName = defaultRandomInteger.Result.Apply(result => $"{name}-{result}"),
            DesktopAccessType = "INTERNET",
            DnsAddresses = new[]
            {
                "127.0.0.2",
            },
            DomainName = "corp.example.com",
            DomainPassword = "Example1234",
            DomainUserName = "sAMAccountName",
            EnableAdminAccess = false,
            MfaEnabled = false,
            Specification = 1,
            SubDomainDnsAddresses = new[]
            {
                "127.0.0.3",
            },
            SubDomainName = "child.example.com",
            VswitchIds = new[]
            {
                defaultSwitch.Id,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.eds.EdsFunctions;
    import com.pulumi.alicloud.eds.inputs.GetZonesArgs;
    import com.pulumi.alicloud.vpc.Network;
    import com.pulumi.alicloud.vpc.NetworkArgs;
    import com.pulumi.alicloud.vpc.Switch;
    import com.pulumi.alicloud.vpc.SwitchArgs;
    import com.pulumi.random.RandomInteger;
    import com.pulumi.random.RandomIntegerArgs;
    import com.pulumi.alicloud.eds.AdConnectorDirectory;
    import com.pulumi.alicloud.eds.AdConnectorDirectoryArgs;
    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 defaultZones = EdsFunctions.getZones();
    
            var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()        
                .vpcName(name)
                .cidrBlock("172.16.0.0/16")
                .build());
    
            var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()        
                .vpcId(defaultNetwork.id())
                .cidrBlock("172.16.0.0/24")
                .zoneId(defaultZones.applyValue(getZonesResult -> getZonesResult.ids()[0]))
                .vswitchName(name)
                .build());
    
            var defaultRandomInteger = new RandomInteger("defaultRandomInteger", RandomIntegerArgs.builder()        
                .min(10000)
                .max(99999)
                .build());
    
            var defaultAdConnectorDirectory = new AdConnectorDirectory("defaultAdConnectorDirectory", AdConnectorDirectoryArgs.builder()        
                .directoryName(defaultRandomInteger.result().applyValue(result -> String.format("%s-%s", name,result)))
                .desktopAccessType("INTERNET")
                .dnsAddresses("127.0.0.2")
                .domainName("corp.example.com")
                .domainPassword("Example1234")
                .domainUserName("sAMAccountName")
                .enableAdminAccess(false)
                .mfaEnabled(false)
                .specification(1)
                .subDomainDnsAddresses("127.0.0.3")
                .subDomainName("child.example.com")
                .vswitchIds(defaultSwitch.id())
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
    resources:
      defaultNetwork:
        type: alicloud:vpc:Network
        properties:
          vpcName: ${name}
          cidrBlock: 172.16.0.0/16
      defaultSwitch:
        type: alicloud:vpc:Switch
        properties:
          vpcId: ${defaultNetwork.id}
          cidrBlock: 172.16.0.0/24
          zoneId: ${defaultZones.ids[0]}
          vswitchName: ${name}
      defaultRandomInteger:
        type: random:RandomInteger
        properties:
          min: 10000
          max: 99999
      defaultAdConnectorDirectory:
        type: alicloud:eds:AdConnectorDirectory
        properties:
          directoryName: ${name}-${defaultRandomInteger.result}
          desktopAccessType: INTERNET
          dnsAddresses:
            - 127.0.0.2
          domainName: corp.example.com
          domainPassword: Example1234
          domainUserName: sAMAccountName
          enableAdminAccess: false
          mfaEnabled: false
          specification: 1
          subDomainDnsAddresses:
            - 127.0.0.3
          subDomainName: child.example.com
          vswitchIds:
            - ${defaultSwitch.id}
    variables:
      defaultZones:
        fn::invoke:
          Function: alicloud:eds:getZones
          Arguments: {}
    

    Create AdConnectorDirectory Resource

    new AdConnectorDirectory(name: string, args: AdConnectorDirectoryArgs, opts?: CustomResourceOptions);
    @overload
    def AdConnectorDirectory(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             desktop_access_type: Optional[str] = None,
                             directory_name: Optional[str] = None,
                             dns_addresses: Optional[Sequence[str]] = None,
                             domain_name: Optional[str] = None,
                             domain_password: Optional[str] = None,
                             domain_user_name: Optional[str] = None,
                             enable_admin_access: Optional[bool] = None,
                             mfa_enabled: Optional[bool] = None,
                             specification: Optional[int] = None,
                             sub_domain_dns_addresses: Optional[Sequence[str]] = None,
                             sub_domain_name: Optional[str] = None,
                             vswitch_ids: Optional[Sequence[str]] = None)
    @overload
    def AdConnectorDirectory(resource_name: str,
                             args: AdConnectorDirectoryArgs,
                             opts: Optional[ResourceOptions] = None)
    func NewAdConnectorDirectory(ctx *Context, name string, args AdConnectorDirectoryArgs, opts ...ResourceOption) (*AdConnectorDirectory, error)
    public AdConnectorDirectory(string name, AdConnectorDirectoryArgs args, CustomResourceOptions? opts = null)
    public AdConnectorDirectory(String name, AdConnectorDirectoryArgs args)
    public AdConnectorDirectory(String name, AdConnectorDirectoryArgs args, CustomResourceOptions options)
    
    type: alicloud:eds:AdConnectorDirectory
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args AdConnectorDirectoryArgs
    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 AdConnectorDirectoryArgs
    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 AdConnectorDirectoryArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AdConnectorDirectoryArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AdConnectorDirectoryArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    AdConnectorDirectory Resource Properties

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

    Inputs

    The AdConnectorDirectory resource accepts the following input properties:

    DirectoryName string
    The name of the directory. The name must be 2 to 255 characters in length. It must start with a letter but cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), and hyphens (-).
    DnsAddresses List<string>
    The DNS address list.
    DomainName string
    The name of the domain.
    DomainPassword string
    The user password of the domain administrator. The maximum number of English characters is 64.
    DomainUserName string
    The username of the domain administrator. The maximum number of English characters is 64.
    VswitchIds List<string>
    List of VSwitch IDs in the directory.
    DesktopAccessType string
    The desktop access type. Valid values: VPC, INTERNET, ANY.
    EnableAdminAccess bool
    Whether to grant local administrator rights to users who use cloud desktops.
    MfaEnabled bool
    Whether MFA authentication is enabled. After all AD users in this directory log on to the cloud desktop, enter the correct password and then enter the dynamic verification code generated by the MFA device. NOTE: The MFA device needs to be bound when logging in for the first time.
    Specification int
    The AD Connector specifications. Valid values: 1, 2.
    SubDomainDnsAddresses List<string>
    The Enterprise already has the DNS address of the AD subdomain. If sub_domain_name is set and this parameter is not set, the child Domain DNS is considered consistent with the parent domain.
    SubDomainName string
    The Enterprise already has a fully qualified domain name (FQDN) of an AD subdomain, with both a host name and a domain name.
    DirectoryName string
    The name of the directory. The name must be 2 to 255 characters in length. It must start with a letter but cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), and hyphens (-).
    DnsAddresses []string
    The DNS address list.
    DomainName string
    The name of the domain.
    DomainPassword string
    The user password of the domain administrator. The maximum number of English characters is 64.
    DomainUserName string
    The username of the domain administrator. The maximum number of English characters is 64.
    VswitchIds []string
    List of VSwitch IDs in the directory.
    DesktopAccessType string
    The desktop access type. Valid values: VPC, INTERNET, ANY.
    EnableAdminAccess bool
    Whether to grant local administrator rights to users who use cloud desktops.
    MfaEnabled bool
    Whether MFA authentication is enabled. After all AD users in this directory log on to the cloud desktop, enter the correct password and then enter the dynamic verification code generated by the MFA device. NOTE: The MFA device needs to be bound when logging in for the first time.
    Specification int
    The AD Connector specifications. Valid values: 1, 2.
    SubDomainDnsAddresses []string
    The Enterprise already has the DNS address of the AD subdomain. If sub_domain_name is set and this parameter is not set, the child Domain DNS is considered consistent with the parent domain.
    SubDomainName string
    The Enterprise already has a fully qualified domain name (FQDN) of an AD subdomain, with both a host name and a domain name.
    directoryName String
    The name of the directory. The name must be 2 to 255 characters in length. It must start with a letter but cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), and hyphens (-).
    dnsAddresses List<String>
    The DNS address list.
    domainName String
    The name of the domain.
    domainPassword String
    The user password of the domain administrator. The maximum number of English characters is 64.
    domainUserName String
    The username of the domain administrator. The maximum number of English characters is 64.
    vswitchIds List<String>
    List of VSwitch IDs in the directory.
    desktopAccessType String
    The desktop access type. Valid values: VPC, INTERNET, ANY.
    enableAdminAccess Boolean
    Whether to grant local administrator rights to users who use cloud desktops.
    mfaEnabled Boolean
    Whether MFA authentication is enabled. After all AD users in this directory log on to the cloud desktop, enter the correct password and then enter the dynamic verification code generated by the MFA device. NOTE: The MFA device needs to be bound when logging in for the first time.
    specification Integer
    The AD Connector specifications. Valid values: 1, 2.
    subDomainDnsAddresses List<String>
    The Enterprise already has the DNS address of the AD subdomain. If sub_domain_name is set and this parameter is not set, the child Domain DNS is considered consistent with the parent domain.
    subDomainName String
    The Enterprise already has a fully qualified domain name (FQDN) of an AD subdomain, with both a host name and a domain name.
    directoryName string
    The name of the directory. The name must be 2 to 255 characters in length. It must start with a letter but cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), and hyphens (-).
    dnsAddresses string[]
    The DNS address list.
    domainName string
    The name of the domain.
    domainPassword string
    The user password of the domain administrator. The maximum number of English characters is 64.
    domainUserName string
    The username of the domain administrator. The maximum number of English characters is 64.
    vswitchIds string[]
    List of VSwitch IDs in the directory.
    desktopAccessType string
    The desktop access type. Valid values: VPC, INTERNET, ANY.
    enableAdminAccess boolean
    Whether to grant local administrator rights to users who use cloud desktops.
    mfaEnabled boolean
    Whether MFA authentication is enabled. After all AD users in this directory log on to the cloud desktop, enter the correct password and then enter the dynamic verification code generated by the MFA device. NOTE: The MFA device needs to be bound when logging in for the first time.
    specification number
    The AD Connector specifications. Valid values: 1, 2.
    subDomainDnsAddresses string[]
    The Enterprise already has the DNS address of the AD subdomain. If sub_domain_name is set and this parameter is not set, the child Domain DNS is considered consistent with the parent domain.
    subDomainName string
    The Enterprise already has a fully qualified domain name (FQDN) of an AD subdomain, with both a host name and a domain name.
    directory_name str
    The name of the directory. The name must be 2 to 255 characters in length. It must start with a letter but cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), and hyphens (-).
    dns_addresses Sequence[str]
    The DNS address list.
    domain_name str
    The name of the domain.
    domain_password str
    The user password of the domain administrator. The maximum number of English characters is 64.
    domain_user_name str
    The username of the domain administrator. The maximum number of English characters is 64.
    vswitch_ids Sequence[str]
    List of VSwitch IDs in the directory.
    desktop_access_type str
    The desktop access type. Valid values: VPC, INTERNET, ANY.
    enable_admin_access bool
    Whether to grant local administrator rights to users who use cloud desktops.
    mfa_enabled bool
    Whether MFA authentication is enabled. After all AD users in this directory log on to the cloud desktop, enter the correct password and then enter the dynamic verification code generated by the MFA device. NOTE: The MFA device needs to be bound when logging in for the first time.
    specification int
    The AD Connector specifications. Valid values: 1, 2.
    sub_domain_dns_addresses Sequence[str]
    The Enterprise already has the DNS address of the AD subdomain. If sub_domain_name is set and this parameter is not set, the child Domain DNS is considered consistent with the parent domain.
    sub_domain_name str
    The Enterprise already has a fully qualified domain name (FQDN) of an AD subdomain, with both a host name and a domain name.
    directoryName String
    The name of the directory. The name must be 2 to 255 characters in length. It must start with a letter but cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), and hyphens (-).
    dnsAddresses List<String>
    The DNS address list.
    domainName String
    The name of the domain.
    domainPassword String
    The user password of the domain administrator. The maximum number of English characters is 64.
    domainUserName String
    The username of the domain administrator. The maximum number of English characters is 64.
    vswitchIds List<String>
    List of VSwitch IDs in the directory.
    desktopAccessType String
    The desktop access type. Valid values: VPC, INTERNET, ANY.
    enableAdminAccess Boolean
    Whether to grant local administrator rights to users who use cloud desktops.
    mfaEnabled Boolean
    Whether MFA authentication is enabled. After all AD users in this directory log on to the cloud desktop, enter the correct password and then enter the dynamic verification code generated by the MFA device. NOTE: The MFA device needs to be bound when logging in for the first time.
    specification Number
    The AD Connector specifications. Valid values: 1, 2.
    subDomainDnsAddresses List<String>
    The Enterprise already has the DNS address of the AD subdomain. If sub_domain_name is set and this parameter is not set, the child Domain DNS is considered consistent with the parent domain.
    subDomainName String
    The Enterprise already has a fully qualified domain name (FQDN) of an AD subdomain, with both a host name and a domain name.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of directory.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of directory.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of directory.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    The status of directory.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    The status of directory.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of directory.

    Look up Existing AdConnectorDirectory Resource

    Get an existing AdConnectorDirectory 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?: AdConnectorDirectoryState, opts?: CustomResourceOptions): AdConnectorDirectory
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            desktop_access_type: Optional[str] = None,
            directory_name: Optional[str] = None,
            dns_addresses: Optional[Sequence[str]] = None,
            domain_name: Optional[str] = None,
            domain_password: Optional[str] = None,
            domain_user_name: Optional[str] = None,
            enable_admin_access: Optional[bool] = None,
            mfa_enabled: Optional[bool] = None,
            specification: Optional[int] = None,
            status: Optional[str] = None,
            sub_domain_dns_addresses: Optional[Sequence[str]] = None,
            sub_domain_name: Optional[str] = None,
            vswitch_ids: Optional[Sequence[str]] = None) -> AdConnectorDirectory
    func GetAdConnectorDirectory(ctx *Context, name string, id IDInput, state *AdConnectorDirectoryState, opts ...ResourceOption) (*AdConnectorDirectory, error)
    public static AdConnectorDirectory Get(string name, Input<string> id, AdConnectorDirectoryState? state, CustomResourceOptions? opts = null)
    public static AdConnectorDirectory get(String name, Output<String> id, AdConnectorDirectoryState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    DesktopAccessType string
    The desktop access type. Valid values: VPC, INTERNET, ANY.
    DirectoryName string
    The name of the directory. The name must be 2 to 255 characters in length. It must start with a letter but cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), and hyphens (-).
    DnsAddresses List<string>
    The DNS address list.
    DomainName string
    The name of the domain.
    DomainPassword string
    The user password of the domain administrator. The maximum number of English characters is 64.
    DomainUserName string
    The username of the domain administrator. The maximum number of English characters is 64.
    EnableAdminAccess bool
    Whether to grant local administrator rights to users who use cloud desktops.
    MfaEnabled bool
    Whether MFA authentication is enabled. After all AD users in this directory log on to the cloud desktop, enter the correct password and then enter the dynamic verification code generated by the MFA device. NOTE: The MFA device needs to be bound when logging in for the first time.
    Specification int
    The AD Connector specifications. Valid values: 1, 2.
    Status string
    The status of directory.
    SubDomainDnsAddresses List<string>
    The Enterprise already has the DNS address of the AD subdomain. If sub_domain_name is set and this parameter is not set, the child Domain DNS is considered consistent with the parent domain.
    SubDomainName string
    The Enterprise already has a fully qualified domain name (FQDN) of an AD subdomain, with both a host name and a domain name.
    VswitchIds List<string>
    List of VSwitch IDs in the directory.
    DesktopAccessType string
    The desktop access type. Valid values: VPC, INTERNET, ANY.
    DirectoryName string
    The name of the directory. The name must be 2 to 255 characters in length. It must start with a letter but cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), and hyphens (-).
    DnsAddresses []string
    The DNS address list.
    DomainName string
    The name of the domain.
    DomainPassword string
    The user password of the domain administrator. The maximum number of English characters is 64.
    DomainUserName string
    The username of the domain administrator. The maximum number of English characters is 64.
    EnableAdminAccess bool
    Whether to grant local administrator rights to users who use cloud desktops.
    MfaEnabled bool
    Whether MFA authentication is enabled. After all AD users in this directory log on to the cloud desktop, enter the correct password and then enter the dynamic verification code generated by the MFA device. NOTE: The MFA device needs to be bound when logging in for the first time.
    Specification int
    The AD Connector specifications. Valid values: 1, 2.
    Status string
    The status of directory.
    SubDomainDnsAddresses []string
    The Enterprise already has the DNS address of the AD subdomain. If sub_domain_name is set and this parameter is not set, the child Domain DNS is considered consistent with the parent domain.
    SubDomainName string
    The Enterprise already has a fully qualified domain name (FQDN) of an AD subdomain, with both a host name and a domain name.
    VswitchIds []string
    List of VSwitch IDs in the directory.
    desktopAccessType String
    The desktop access type. Valid values: VPC, INTERNET, ANY.
    directoryName String
    The name of the directory. The name must be 2 to 255 characters in length. It must start with a letter but cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), and hyphens (-).
    dnsAddresses List<String>
    The DNS address list.
    domainName String
    The name of the domain.
    domainPassword String
    The user password of the domain administrator. The maximum number of English characters is 64.
    domainUserName String
    The username of the domain administrator. The maximum number of English characters is 64.
    enableAdminAccess Boolean
    Whether to grant local administrator rights to users who use cloud desktops.
    mfaEnabled Boolean
    Whether MFA authentication is enabled. After all AD users in this directory log on to the cloud desktop, enter the correct password and then enter the dynamic verification code generated by the MFA device. NOTE: The MFA device needs to be bound when logging in for the first time.
    specification Integer
    The AD Connector specifications. Valid values: 1, 2.
    status String
    The status of directory.
    subDomainDnsAddresses List<String>
    The Enterprise already has the DNS address of the AD subdomain. If sub_domain_name is set and this parameter is not set, the child Domain DNS is considered consistent with the parent domain.
    subDomainName String
    The Enterprise already has a fully qualified domain name (FQDN) of an AD subdomain, with both a host name and a domain name.
    vswitchIds List<String>
    List of VSwitch IDs in the directory.
    desktopAccessType string
    The desktop access type. Valid values: VPC, INTERNET, ANY.
    directoryName string
    The name of the directory. The name must be 2 to 255 characters in length. It must start with a letter but cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), and hyphens (-).
    dnsAddresses string[]
    The DNS address list.
    domainName string
    The name of the domain.
    domainPassword string
    The user password of the domain administrator. The maximum number of English characters is 64.
    domainUserName string
    The username of the domain administrator. The maximum number of English characters is 64.
    enableAdminAccess boolean
    Whether to grant local administrator rights to users who use cloud desktops.
    mfaEnabled boolean
    Whether MFA authentication is enabled. After all AD users in this directory log on to the cloud desktop, enter the correct password and then enter the dynamic verification code generated by the MFA device. NOTE: The MFA device needs to be bound when logging in for the first time.
    specification number
    The AD Connector specifications. Valid values: 1, 2.
    status string
    The status of directory.
    subDomainDnsAddresses string[]
    The Enterprise already has the DNS address of the AD subdomain. If sub_domain_name is set and this parameter is not set, the child Domain DNS is considered consistent with the parent domain.
    subDomainName string
    The Enterprise already has a fully qualified domain name (FQDN) of an AD subdomain, with both a host name and a domain name.
    vswitchIds string[]
    List of VSwitch IDs in the directory.
    desktop_access_type str
    The desktop access type. Valid values: VPC, INTERNET, ANY.
    directory_name str
    The name of the directory. The name must be 2 to 255 characters in length. It must start with a letter but cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), and hyphens (-).
    dns_addresses Sequence[str]
    The DNS address list.
    domain_name str
    The name of the domain.
    domain_password str
    The user password of the domain administrator. The maximum number of English characters is 64.
    domain_user_name str
    The username of the domain administrator. The maximum number of English characters is 64.
    enable_admin_access bool
    Whether to grant local administrator rights to users who use cloud desktops.
    mfa_enabled bool
    Whether MFA authentication is enabled. After all AD users in this directory log on to the cloud desktop, enter the correct password and then enter the dynamic verification code generated by the MFA device. NOTE: The MFA device needs to be bound when logging in for the first time.
    specification int
    The AD Connector specifications. Valid values: 1, 2.
    status str
    The status of directory.
    sub_domain_dns_addresses Sequence[str]
    The Enterprise already has the DNS address of the AD subdomain. If sub_domain_name is set and this parameter is not set, the child Domain DNS is considered consistent with the parent domain.
    sub_domain_name str
    The Enterprise already has a fully qualified domain name (FQDN) of an AD subdomain, with both a host name and a domain name.
    vswitch_ids Sequence[str]
    List of VSwitch IDs in the directory.
    desktopAccessType String
    The desktop access type. Valid values: VPC, INTERNET, ANY.
    directoryName String
    The name of the directory. The name must be 2 to 255 characters in length. It must start with a letter but cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), and hyphens (-).
    dnsAddresses List<String>
    The DNS address list.
    domainName String
    The name of the domain.
    domainPassword String
    The user password of the domain administrator. The maximum number of English characters is 64.
    domainUserName String
    The username of the domain administrator. The maximum number of English characters is 64.
    enableAdminAccess Boolean
    Whether to grant local administrator rights to users who use cloud desktops.
    mfaEnabled Boolean
    Whether MFA authentication is enabled. After all AD users in this directory log on to the cloud desktop, enter the correct password and then enter the dynamic verification code generated by the MFA device. NOTE: The MFA device needs to be bound when logging in for the first time.
    specification Number
    The AD Connector specifications. Valid values: 1, 2.
    status String
    The status of directory.
    subDomainDnsAddresses List<String>
    The Enterprise already has the DNS address of the AD subdomain. If sub_domain_name is set and this parameter is not set, the child Domain DNS is considered consistent with the parent domain.
    subDomainName String
    The Enterprise already has a fully qualified domain name (FQDN) of an AD subdomain, with both a host name and a domain name.
    vswitchIds List<String>
    List of VSwitch IDs in the directory.

    Import

    ECD Ad Connector Directory can be imported using the id, e.g.

    $ pulumi import alicloud:eds/adConnectorDirectory:AdConnectorDirectory example <id>
    

    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.51.0 published on Saturday, Mar 23, 2024 by Pulumi