Alibaba Cloud

Pulumi Official
Package maintained by Pulumi
v3.27.0 published on Monday, Aug 8, 2022 by Pulumi

AdConnectorDirectory

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 in v1.174.0+.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var defaultZones = Output.Create(AliCloud.Eds.GetZones.InvokeAsync());
        var defaultNetworks = Output.Create(AliCloud.Vpc.GetNetworks.InvokeAsync(new AliCloud.Vpc.GetNetworksArgs
        {
            NameRegex = "default-NODELETING",
        }));
        var defaultSwitches = Output.Tuple(defaultNetworks, defaultZones).Apply(values =>
        {
            var defaultNetworks = values.Item1;
            var defaultZones = values.Item2;
            return Output.Create(AliCloud.Vpc.GetSwitches.InvokeAsync(new AliCloud.Vpc.GetSwitchesArgs
            {
                VpcId = defaultNetworks.Ids?[0],
                ZoneId = defaultZones.Ids?[0],
            }));
        });
        var defaultAdConnectorDirectory = new AliCloud.Eds.AdConnectorDirectory("defaultAdConnectorDirectory", new AliCloud.Eds.AdConnectorDirectoryArgs
        {
            DirectoryName = @var.Name,
            DesktopAccessType = "INTERNET",
            DnsAddresses = 
            {
                "127.0.0.2",
            },
            DomainName = "corp.example.com",
            DomainPassword = "YourPassword1234",
            DomainUserName = "sAMAccountName",
            EnableAdminAccess = false,
            MfaEnabled = false,
            Specification = 1,
            SubDomainDnsAddresses = 
            {
                "127.0.0.3",
            },
            SubDomainName = "child.example.com",
            VswitchIds = 
            {
                defaultSwitches.Apply(defaultSwitches => defaultSwitches.Ids?[0]),
            },
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/eds"
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		defaultZones, err := eds.GetZones(ctx, nil, nil)
		if err != nil {
			return err
		}
		defaultNetworks, err := vpc.GetNetworks(ctx, &vpc.GetNetworksArgs{
			NameRegex: pulumi.StringRef("default-NODELETING"),
		}, nil)
		if err != nil {
			return err
		}
		defaultSwitches, err := vpc.GetSwitches(ctx, &vpc.GetSwitchesArgs{
			VpcId:  pulumi.StringRef(defaultNetworks.Ids[0]),
			ZoneId: pulumi.StringRef(defaultZones.Ids[0]),
		}, nil)
		if err != nil {
			return err
		}
		_, err = eds.NewAdConnectorDirectory(ctx, "defaultAdConnectorDirectory", &eds.AdConnectorDirectoryArgs{
			DirectoryName:     pulumi.Any(_var.Name),
			DesktopAccessType: pulumi.String("INTERNET"),
			DnsAddresses: pulumi.StringArray{
				pulumi.String("127.0.0.2"),
			},
			DomainName:        pulumi.String("corp.example.com"),
			DomainPassword:    pulumi.String("YourPassword1234"),
			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{
				pulumi.String(defaultSwitches.Ids[0]),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
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.adb.inputs.GetZonesArgs;
import com.pulumi.alicloud.vpc.VpcFunctions;
import com.pulumi.alicloud.cloudconnect.inputs.GetNetworksArgs;
import com.pulumi.alicloud.vpc.inputs.GetSwitchesArgs;
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 defaultZones = EdsFunctions.getZones();

        final var defaultNetworks = VpcFunctions.getNetworks(GetNetworksArgs.builder()
            .nameRegex("default-NODELETING")
            .build());

        final var defaultSwitches = VpcFunctions.getSwitches(GetSwitchesArgs.builder()
            .vpcId(defaultNetworks.applyValue(getNetworksResult -> getNetworksResult.ids()[0]))
            .zoneId(defaultZones.applyValue(getZonesResult -> getZonesResult.ids()[0]))
            .build());

        var defaultAdConnectorDirectory = new AdConnectorDirectory("defaultAdConnectorDirectory", AdConnectorDirectoryArgs.builder()        
            .directoryName(var_.name())
            .desktopAccessType("INTERNET")
            .dnsAddresses("127.0.0.2")
            .domainName("corp.example.com")
            .domainPassword("YourPassword1234")
            .domainUserName("sAMAccountName")
            .enableAdminAccess(false)
            .mfaEnabled(false)
            .specification(1)
            .subDomainDnsAddresses("127.0.0.3")
            .subDomainName("child.example.com")
            .vswitchIds(defaultSwitches.applyValue(getSwitchesResult -> getSwitchesResult.ids()[0]))
            .build());

    }
}
import pulumi
import pulumi_alicloud as alicloud

default_zones = alicloud.eds.get_zones()
default_networks = alicloud.vpc.get_networks(name_regex="default-NODELETING")
default_switches = alicloud.vpc.get_switches(vpc_id=default_networks.ids[0],
    zone_id=default_zones.ids[0])
default_ad_connector_directory = alicloud.eds.AdConnectorDirectory("defaultAdConnectorDirectory",
    directory_name=var["name"],
    desktop_access_type="INTERNET",
    dns_addresses=["127.0.0.2"],
    domain_name="corp.example.com",
    domain_password="YourPassword1234",
    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_switches.ids[0]])
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const defaultZones = alicloud.eds.getZones({});
const defaultNetworks = alicloud.vpc.getNetworks({
    nameRegex: "default-NODELETING",
});
const defaultSwitches = Promise.all([defaultNetworks, defaultZones]).then(([defaultNetworks, defaultZones]) => alicloud.vpc.getSwitches({
    vpcId: defaultNetworks.ids?[0],
    zoneId: defaultZones.ids?[0],
}));
const defaultAdConnectorDirectory = new alicloud.eds.AdConnectorDirectory("defaultAdConnectorDirectory", {
    directoryName: _var.name,
    desktopAccessType: "INTERNET",
    dnsAddresses: ["127.0.0.2"],
    domainName: "corp.example.com",
    domainPassword: "YourPassword1234",
    domainUserName: "sAMAccountName",
    enableAdminAccess: false,
    mfaEnabled: false,
    specification: 1,
    subDomainDnsAddresses: ["127.0.0.3"],
    subDomainName: "child.example.com",
    vswitchIds: [defaultSwitches.then(defaultSwitches => defaultSwitches.ids?[0])],
});
resources:
  defaultAdConnectorDirectory:
    type: alicloud:eds:AdConnectorDirectory
    properties:
      directoryName: ${var.name}
      desktopAccessType: INTERNET
      dnsAddresses:
        - 127.0.0.2
      domainName: corp.example.com
      domainPassword: YourPassword1234
      domainUserName: sAMAccountName
      enableAdminAccess: false
      mfaEnabled: false
      specification: 1
      subDomainDnsAddresses:
        - 127.0.0.3
      subDomainName: child.example.com
      vswitchIds:
        - ${defaultSwitches.ids[0]}
variables:
  defaultZones:
    Fn::Invoke:
      Function: alicloud:eds:getZones
      Arguments: {}
  defaultNetworks:
    Fn::Invoke:
      Function: alicloud:vpc:getNetworks
      Arguments:
        nameRegex: default-NODELETING
  defaultSwitches:
    Fn::Invoke:
      Function: alicloud:vpc:getSwitches
      Arguments:
        vpcId: ${defaultNetworks.ids[0]}
        zoneId: ${defaultZones.ids[0]}

Create a 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 an 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
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.