@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.925Z") @Stability(value=Stable) public class CfnMicrosoftAD extends CfnResource implements IInspectable
The AWS::DirectoryService::MicrosoftAD resource specifies a Microsoft Active Directory in AWS so that your directory users and groups can access the AWS Management Console and AWS applications using their existing credentials. For more information, see AWS Managed Microsoft AD in the AWS Directory Service Admin Guide .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.directoryservice.*;
CfnMicrosoftAD cfnMicrosoftAD = CfnMicrosoftAD.Builder.create(this, "MyCfnMicrosoftAD")
.name("name")
.password("password")
.vpcSettings(VpcSettingsProperty.builder()
.subnetIds(List.of("subnetIds"))
.vpcId("vpcId")
.build())
// the properties below are optional
.createAlias(false)
.edition("edition")
.enableSso(false)
.shortName("shortName")
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnMicrosoftAD.Builder
A fluent builder for
CfnMicrosoftAD. |
static interface |
CfnMicrosoftAD.VpcSettingsProperty
Contains VPC information for the [CreateDirectory](https://docs.aws.amazon.com/directoryservice/latest/devguide/API_CreateDirectory.html) or [CreateMicrosoftAD](https://docs.aws.amazon.com/directoryservice/latest/devguide/API_CreateMicrosoftAD.html) operation.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnMicrosoftAD(software.constructs.Construct scope,
String id,
CfnMicrosoftADProps props)
Create a new `AWS::DirectoryService::MicrosoftAD`.
|
protected |
CfnMicrosoftAD(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnMicrosoftAD(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrAlias()
The alias for a directory.
|
List<String> |
getAttrDnsIpAddresses()
The IP addresses of the DNS servers for the directory, such as `[ "192.0.2.1", "192.0.2.2" ]` .
|
protected Map<String,Object> |
getCfnProperties() |
Object |
getCreateAlias()
Specifies an alias for a directory and assigns the alias to the directory.
|
String |
getEdition()
AWS Managed Microsoft AD is available in two editions: `Standard` and `Enterprise` .
|
Object |
getEnableSso()
Whether to enable single sign-on for a Microsoft Active Directory in AWS .
|
String |
getName()
The fully qualified domain name for the AWS Managed Microsoft AD directory, such as `corp.example.com` .
|
String |
getPassword()
The password for the default administrative user named `Admin` .
|
String |
getShortName()
The NetBIOS name for your domain, such as `CORP` .
|
Object |
getVpcSettings()
Specifies the VPC settings of the Microsoft AD directory server in AWS .
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setCreateAlias(Boolean value)
Specifies an alias for a directory and assigns the alias to the directory.
|
void |
setCreateAlias(IResolvable value)
Specifies an alias for a directory and assigns the alias to the directory.
|
void |
setEdition(String value)
AWS Managed Microsoft AD is available in two editions: `Standard` and `Enterprise` .
|
void |
setEnableSso(Boolean value)
Whether to enable single sign-on for a Microsoft Active Directory in AWS .
|
void |
setEnableSso(IResolvable value)
Whether to enable single sign-on for a Microsoft Active Directory in AWS .
|
void |
setName(String value)
The fully qualified domain name for the AWS Managed Microsoft AD directory, such as `corp.example.com` .
|
void |
setPassword(String value)
The password for the default administrative user named `Admin` .
|
void |
setShortName(String value)
The NetBIOS name for your domain, such as `CORP` .
|
void |
setVpcSettings(CfnMicrosoftAD.VpcSettingsProperty value)
Specifies the VPC settings of the Microsoft AD directory server in AWS .
|
void |
setVpcSettings(IResolvable value)
Specifies the VPC settings of the Microsoft AD directory server in AWS .
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnMicrosoftAD(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnMicrosoftAD(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnMicrosoftAD(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnMicrosoftADProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrAlias()
For example: d-12373a053a or alias4-mydirectory-12345abcgmzsk (if you have the CreateAlias property set to true).
@Stability(value=Stable) @NotNull public List<String> getAttrDnsIpAddresses()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getName()
@Stability(value=Stable)
public void setName(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getPassword()
If you need to change the password for the administrator account, see the ResetUserPassword API call in the AWS Directory Service API Reference .
@Stability(value=Stable)
public void setPassword(@NotNull
String value)
If you need to change the password for the administrator account, see the ResetUserPassword API call in the AWS Directory Service API Reference .
@Stability(value=Stable) @NotNull public Object getVpcSettings()
@Stability(value=Stable)
public void setVpcSettings(@NotNull
CfnMicrosoftAD.VpcSettingsProperty value)
@Stability(value=Stable)
public void setVpcSettings(@NotNull
IResolvable value)
@Stability(value=Stable) @Nullable public Object getCreateAlias()
The alias is used to construct the access URL for the directory, such as http://<alias>.awsapps.com . By default, AWS CloudFormation does not create an alias.
After an alias has been created, it cannot be deleted or reused, so this operation should only be used when absolutely necessary.
@Stability(value=Stable)
public void setCreateAlias(@Nullable
Boolean value)
The alias is used to construct the access URL for the directory, such as http://<alias>.awsapps.com . By default, AWS CloudFormation does not create an alias.
After an alias has been created, it cannot be deleted or reused, so this operation should only be used when absolutely necessary.
@Stability(value=Stable)
public void setCreateAlias(@Nullable
IResolvable value)
The alias is used to construct the access URL for the directory, such as http://<alias>.awsapps.com . By default, AWS CloudFormation does not create an alias.
After an alias has been created, it cannot be deleted or reused, so this operation should only be used when absolutely necessary.
@Stability(value=Stable) @Nullable public String getEdition()
Enterprise is the default.
@Stability(value=Stable)
public void setEdition(@Nullable
String value)
Enterprise is the default.
@Stability(value=Stable) @Nullable public Object getEnableSso()
Single sign-on allows users in your directory to access certain AWS services from a computer joined to the directory without having to enter their credentials separately. If you don't specify a value, AWS CloudFormation disables single sign-on by default.
@Stability(value=Stable)
public void setEnableSso(@Nullable
Boolean value)
Single sign-on allows users in your directory to access certain AWS services from a computer joined to the directory without having to enter their credentials separately. If you don't specify a value, AWS CloudFormation disables single sign-on by default.
@Stability(value=Stable)
public void setEnableSso(@Nullable
IResolvable value)
Single sign-on allows users in your directory to access certain AWS services from a computer joined to the directory without having to enter their credentials separately. If you don't specify a value, AWS CloudFormation disables single sign-on by default.
@Stability(value=Stable) @Nullable public String getShortName()
If you don't specify a NetBIOS name, it will default to the first part of your directory DNS. For example, CORP for the directory DNS corp.example.com .
@Stability(value=Stable)
public void setShortName(@Nullable
String value)
If you don't specify a NetBIOS name, it will default to the first part of your directory DNS. For example, CORP for the directory DNS corp.example.com .
Copyright © 2022. All rights reserved.