Class AdConnectorOfficeSite


  • public class AdConnectorOfficeSite
    extends com.pulumi.resources.CustomResource
    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](https://www.alibabacloud.com/help/en/wuying-workspace/developer-reference/api-ecd-2020-09-30-createadconnectorofficesite). > **NOTE:** Available since v1.176.0. ## Example Usage Basic Usage ```java 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 defaultInstance = new Instance("defaultInstance", InstanceArgs.builder() .cenInstanceName(name) .protectionLevel("REDUCED") .build()); var defaultAdConnectorOfficeSite = new AdConnectorOfficeSite("defaultAdConnectorOfficeSite", AdConnectorOfficeSiteArgs.builder() .adConnectorOfficeSiteName(name) .bandwidth(100) .cenId(defaultInstance.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()); } } ``` ## Import ECD Ad Connector Office Site can be imported using the id, e.g. ```sh $ pulumi import alicloud:eds/adConnectorOfficeSite:AdConnectorOfficeSite example <id> ```
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.pulumi.resources.CustomResource

        com.pulumi.resources.CustomResource.CustomResourceInternal
      • Nested classes/interfaces inherited from class com.pulumi.resources.Resource

        com.pulumi.resources.Resource.LazyField<T extends java.lang.Object>, com.pulumi.resources.Resource.LazyFields, com.pulumi.resources.Resource.ResourceInternal
    • Field Summary

      • Fields inherited from class com.pulumi.resources.Resource

        childResources, remote
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.pulumi.core.Output<java.lang.String> adConnectorOfficeSiteName()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> adHostname()  
      com.pulumi.core.Output<java.util.Optional<java.lang.Integer>> bandwidth()  
      com.pulumi.core.Output<java.lang.String> cenId()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> cenOwnerId()  
      com.pulumi.core.Output<java.lang.String> cidrBlock()  
      com.pulumi.core.Output<java.lang.String> desktopAccessType()  
      com.pulumi.core.Output<java.util.List<java.lang.String>> dnsAddresses()  
      com.pulumi.core.Output<java.lang.String> domainName()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> domainPassword()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> domainUserName()  
      com.pulumi.core.Output<java.lang.Boolean> enableAdminAccess()  
      com.pulumi.core.Output<java.lang.Boolean> enableInternetAccess()  
      static AdConnectorOfficeSite get​(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, AdConnectorOfficeSiteState state, com.pulumi.resources.CustomResourceOptions options)
      Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
      com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> mfaEnabled()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> protocolType()  
      com.pulumi.core.Output<java.util.Optional<java.lang.Integer>> specification()  
      com.pulumi.core.Output<java.lang.String> status()  
      com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> subDomainDnsAddresses()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> subDomainName()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> verifyCode()  
      • Methods inherited from class com.pulumi.resources.CustomResource

        getId, id, idFuture
      • Methods inherited from class com.pulumi.resources.Resource

        getChildResources, getResourceName, getResourceType, getUrn, pulumiChildResources, pulumiResourceName, pulumiResourceType, urn
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AdConnectorOfficeSite

        public AdConnectorOfficeSite​(java.lang.String name)
        Parameters:
        name - The _unique_ name of the resulting resource.
      • AdConnectorOfficeSite

        public AdConnectorOfficeSite​(java.lang.String name,
                                     AdConnectorOfficeSiteArgs args)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
      • AdConnectorOfficeSite

        public AdConnectorOfficeSite​(java.lang.String name,
                                     AdConnectorOfficeSiteArgs args,
                                     @Nullable
                                     com.pulumi.resources.CustomResourceOptions options)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
        options - A bag of options that control this resource's behavior.
    • Method Detail

      • adConnectorOfficeSiteName

        public com.pulumi.core.Output<java.lang.String> adConnectorOfficeSiteName()
        Returns:
        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 (-).
      • adHostname

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> adHostname()
        Returns:
        The ad hostname.
      • bandwidth

        public com.pulumi.core.Output<java.util.Optional<java.lang.Integer>> bandwidth()
        Returns:
        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.
      • cenId

        public com.pulumi.core.Output<java.lang.String> cenId()
        Returns:
        The ID of the CEN instance.
      • cenOwnerId

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> cenOwnerId()
        Returns:
        The cen owner id.
      • cidrBlock

        public com.pulumi.core.Output<java.lang.String> cidrBlock()
        Returns:
        Workspace Corresponds to the Security Office Network of IPv4 Segment.
      • desktopAccessType

        public com.pulumi.core.Output<java.lang.String> desktopAccessType()
        Returns:
        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:
      • dnsAddresses

        public com.pulumi.core.Output<java.util.List<java.lang.String>> dnsAddresses()
        Returns:
        The IP address N of the DNS server of the enterprise AD system. You can specify only one IP address.
      • domainName

        public com.pulumi.core.Output<java.lang.String> domainName()
        Returns:
        The domain name of the enterprise AD system. You can register each domain name only once.
      • domainPassword

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> domainPassword()
        Returns:
        The password of the domain administrator. The password can be up to 64 characters in length.
      • domainUserName

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> domainUserName()
        Returns:
        The username of the domain administrator. The username can be up to 64 characters in length.
      • enableAdminAccess

        public com.pulumi.core.Output<java.lang.Boolean> enableAdminAccess()
        Returns:
        Specifies whether to grant the permissions of the local administrator to the desktop users. Default value: true.
      • enableInternetAccess

        public com.pulumi.core.Output<java.lang.Boolean> enableInternetAccess()
        Returns:
        Specifies whether to enable Internet access.
      • mfaEnabled

        public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> mfaEnabled()
        Returns:
        Specifies whether to enable multi-factor authentication (MFA).
      • protocolType

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> protocolType()
        Returns:
        The protocol type. Valid values: `ASP`, `HDX`.
      • specification

        public com.pulumi.core.Output<java.util.Optional<java.lang.Integer>> specification()
        Returns:
        The AD Connector specifications. Valid values: `1`, `2`.
      • status

        public com.pulumi.core.Output<java.lang.String> status()
        Returns:
        The resource State.
      • subDomainDnsAddresses

        public com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> subDomainDnsAddresses()
        Returns:
        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.
      • subDomainName

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> subDomainName()
        Returns:
        The domain name of the enterprise AD subdomain.
      • verifyCode

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> verifyCode()
        Returns:
        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.
      • get

        public static AdConnectorOfficeSite get​(java.lang.String name,
                                                com.pulumi.core.Output<java.lang.String> id,
                                                @Nullable
                                                AdConnectorOfficeSiteState state,
                                                @Nullable
                                                com.pulumi.resources.CustomResourceOptions options)
        Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
        Parameters:
        name - The _unique_ name of the resulting resource.
        id - The _unique_ provider ID of the resource to lookup.
        state -
        options - Optional settings to control the behavior of the CustomResource.