AdConnectorOfficeSite

class AdConnectorOfficeSite : KotlinCustomResource

Provides a ECD Ad Connector Office Site resource. For information about ECD Ad Connector Office Site and how to use it, see What is Ad Connector Office Site.

NOTE: Available since v1.176.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 = new alicloud.cen.Instance("default", {
cenInstanceName: name,
protectionLevel: "REDUCED",
});
const defaultAdConnectorOfficeSite = new alicloud.eds.AdConnectorOfficeSite("default", {
adConnectorOfficeSiteName: name,
bandwidth: 100,
cenId: _default.id,
cidrBlock: "10.0.0.0/12",
desktopAccessType: "INTERNET",
dnsAddresses: ["127.0.0.2"],
domainName: "corp.example.com",
domainPassword: "Example1234",
domainUserName: "sAMAccountName",
enableAdminAccess: false,
enableInternetAccess: false,
mfaEnabled: false,
subDomainDnsAddresses: ["127.0.0.3"],
subDomainName: "child.example.com",
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
default = alicloud.cen.Instance("default",
cen_instance_name=name,
protection_level="REDUCED")
default_ad_connector_office_site = alicloud.eds.AdConnectorOfficeSite("default",
ad_connector_office_site_name=name,
bandwidth=100,
cen_id=default.id,
cidr_block="10.0.0.0/12",
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,
enable_internet_access=False,
mfa_enabled=False,
sub_domain_dns_addresses=["127.0.0.3"],
sub_domain_name="child.example.com")
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 = new AliCloud.Cen.Instance("default", new()
{
CenInstanceName = name,
ProtectionLevel = "REDUCED",
});
var defaultAdConnectorOfficeSite = new AliCloud.Eds.AdConnectorOfficeSite("default", new()
{
AdConnectorOfficeSiteName = name,
Bandwidth = 100,
CenId = @default.Id,
CidrBlock = "10.0.0.0/12",
DesktopAccessType = "INTERNET",
DnsAddresses = new[]
{
"127.0.0.2",
},
DomainName = "corp.example.com",
DomainPassword = "Example1234",
DomainUserName = "sAMAccountName",
EnableAdminAccess = false,
EnableInternetAccess = false,
MfaEnabled = false,
SubDomainDnsAddresses = new[]
{
"127.0.0.3",
},
SubDomainName = "child.example.com",
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cen"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/eds"
"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 := cen.NewInstance(ctx, "default", &cen.InstanceArgs{
CenInstanceName: pulumi.String(name),
ProtectionLevel: pulumi.String("REDUCED"),
})
if err != nil {
return err
}
_, err = eds.NewAdConnectorOfficeSite(ctx, "default", &eds.AdConnectorOfficeSiteArgs{
AdConnectorOfficeSiteName: pulumi.String(name),
Bandwidth: pulumi.Int(100),
CenId: _default.ID(),
CidrBlock: pulumi.String("10.0.0.0/12"),
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),
EnableInternetAccess: pulumi.Bool(false),
MfaEnabled: pulumi.Bool(false),
SubDomainDnsAddresses: pulumi.StringArray{
pulumi.String("127.0.0.3"),
},
SubDomainName: pulumi.String("child.example.com"),
})
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.cen.Instance;
import com.pulumi.alicloud.cen.InstanceArgs;
import com.pulumi.alicloud.eds.AdConnectorOfficeSite;
import com.pulumi.alicloud.eds.AdConnectorOfficeSiteArgs;
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");
var default_ = new Instance("default", InstanceArgs.builder()
.cenInstanceName(name)
.protectionLevel("REDUCED")
.build());
var defaultAdConnectorOfficeSite = new AdConnectorOfficeSite("defaultAdConnectorOfficeSite", AdConnectorOfficeSiteArgs.builder()
.adConnectorOfficeSiteName(name)
.bandwidth(100)
.cenId(default_.id())
.cidrBlock("10.0.0.0/12")
.desktopAccessType("INTERNET")
.dnsAddresses("127.0.0.2")
.domainName("corp.example.com")
.domainPassword("Example1234")
.domainUserName("sAMAccountName")
.enableAdminAccess(false)
.enableInternetAccess(false)
.mfaEnabled(false)
.subDomainDnsAddresses("127.0.0.3")
.subDomainName("child.example.com")
.build());
}
}
configuration:
name:
type: string
default: terraform-example
resources:
default:
type: alicloud:cen:Instance
properties:
cenInstanceName: ${name}
protectionLevel: REDUCED
defaultAdConnectorOfficeSite:
type: alicloud:eds:AdConnectorOfficeSite
name: default
properties:
adConnectorOfficeSiteName: ${name}
bandwidth: 100
cenId: ${default.id}
cidrBlock: 10.0.0.0/12
desktopAccessType: INTERNET
dnsAddresses:
- 127.0.0.2
domainName: corp.example.com
domainPassword: Example1234
domainUserName: sAMAccountName
enableAdminAccess: false
enableInternetAccess: false
mfaEnabled: false
subDomainDnsAddresses:
- 127.0.0.3
subDomainName: child.example.com

Import

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

$ pulumi import alicloud:eds/adConnectorOfficeSite:AdConnectorOfficeSite example <id>

Properties

Link copied to clipboard

The name of the workspace. The name must be 2 to 255 characters in length. It must start with a letter and cannot start with http:// or https://. It can contain digits, colons (:), underscores (_), and hyphens (-).

Link copied to clipboard
val adHostname: Output<String>?

The ad hostname.

Link copied to clipboard
val bandwidth: Output<Int>?

The maximum public bandwidth value. Valid values: 0 to 200. If you do not specify this parameter or you set this parameter to 0, Internet access is disabled.

Link copied to clipboard
val cenId: Output<String>

The ID of the CEN instance.

Link copied to clipboard
val cenOwnerId: Output<String>?

The cen owner id.

Link copied to clipboard
val cidrBlock: Output<String>

Workspace Corresponds to the Security Office Network of IPv4 Segment.

Link copied to clipboard

The method that you use to connect to cloud desktops. Note: The VPC connection method is provided by Alibaba Cloud PrivateLink. You are not charged for PrivateLink. When you set this parameter to VPC or Any, PrivateLink is automatically activated. Default value: INTERNET. Valid values:

Link copied to clipboard
val dnsAddresses: Output<List<String>>

The IP address N of the DNS server of the enterprise AD system. You can specify only one IP address.

Link copied to clipboard
val domainName: Output<String>

The domain name of the enterprise AD system. You can register each domain name only once.

Link copied to clipboard
val domainPassword: Output<String>?

The password of the domain administrator. The password can be up to 64 characters in length.

Link copied to clipboard
val domainUserName: Output<String>?

The username of the domain administrator. The username can be up to 64 characters in length.

Link copied to clipboard

Specifies whether to grant the permissions of the local administrator to the desktop users. Default value: true.

Link copied to clipboard

Specifies whether to enable Internet access.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val mfaEnabled: Output<Boolean>?

Specifies whether to enable multi-factor authentication (MFA).

Link copied to clipboard
val protocolType: Output<String>?

The protocol type. Valid values: ASP, HDX.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val specification: Output<Int>?

The AD Connector specifications. Valid values: 1, 2.

Link copied to clipboard
val status: Output<String>

The resource State.

Link copied to clipboard

The DNS address N of the enterprise AD subdomain. If you specify a value for the sub_domain_name parameter but you do not specify a value for this parameter, the DNS address of the subdomain is the same as the DNS address of the parent domain.

Link copied to clipboard
val subDomainName: Output<String>?

The domain name of the enterprise AD subdomain.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val verifyCode: Output<String>?

The verification code. If the CEN instance that you specify for the CenId parameter belongs to another Alibaba Cloud account, you must call the SendVerifyCode operation to obtain the verification code.