Class CfnMicrosoftAD
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.directoryservice.CfnMicrosoftAD
- All Implemented Interfaces:
IInspectable,IMicrosoftADRef,IEnvironmentAware,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.121.0 (build d7af9b9)",
date="2025-12-18T18:20:08.250Z")
@Stability(Stable)
public class CfnMicrosoftAD
extends CfnResource
implements IInspectable, IMicrosoftADRef
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 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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnMicrosoftAD.static interfaceContains VPC information for the CreateDirectory or CreateMicrosoftAD operation.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.directoryservice.IMicrosoftADRef
IMicrosoftADRef.Jsii$Default, IMicrosoftADRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnMicrosoftAD(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnMicrosoftAD(software.amazon.jsii.JsiiObjectRef objRef) CfnMicrosoftAD(software.constructs.Construct scope, String id, CfnMicrosoftADProps props) Create a newAWS::DirectoryService::MicrosoftAD. -
Method Summary
Modifier and TypeMethodDescriptionThe alias for a directory.The IP addresses of the DNS servers for the directory, such as[ "192.0.2.1", "192.0.2.2" ].The directory ID.Specifies an alias for a directory and assigns the alias to the directory.AWS Managed Microsoft AD is available in two editions:StandardandEnterprise.Whether to enable single sign-on for a Microsoft Active Directory in AWS .A reference to a MicrosoftAD resource.getName()The fully qualified domain name for the AWS Managed Microsoft AD directory, such ascorp.example.com.The password for the default administrative user namedAdmin.The NetBIOS name for your domain, such asCORP.Specifies the VPC settings of the Microsoft AD directory server in AWS .voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnMicrosoftAD.renderProperties(Map<String, Object> props) voidsetCreateAlias(Boolean value) Specifies an alias for a directory and assigns the alias to the directory.voidsetCreateAlias(IResolvable value) Specifies an alias for a directory and assigns the alias to the directory.voidsetEdition(String value) AWS Managed Microsoft AD is available in two editions:StandardandEnterprise.voidsetEnableSso(Boolean value) Whether to enable single sign-on for a Microsoft Active Directory in AWS .voidsetEnableSso(IResolvable value) Whether to enable single sign-on for a Microsoft Active Directory in AWS .voidThe fully qualified domain name for the AWS Managed Microsoft AD directory, such ascorp.example.com.voidsetPassword(String value) The password for the default administrative user namedAdmin.voidsetShortName(String value) The NetBIOS name for your domain, such asCORP.voidsetVpcSettings(IResolvable value) Specifies the VPC settings of the Microsoft AD directory server in AWS .voidSpecifies the VPC settings of the Microsoft AD directory server in AWS .Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnMicrosoftAD
protected CfnMicrosoftAD(software.amazon.jsii.JsiiObjectRef objRef) -
CfnMicrosoftAD
protected CfnMicrosoftAD(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnMicrosoftAD
@Stability(Stable) public CfnMicrosoftAD(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnMicrosoftADProps props) Create a newAWS::DirectoryService::MicrosoftAD.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
isCfnMicrosoftAD
Checks whether the given object is a CfnMicrosoftAD.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrAlias
The alias for a directory.For example:
alias4-mydirectory-12345abcgmzsk(if you have theCreateAliasproperty set to true). -
getAttrDnsIpAddresses
The IP addresses of the DNS servers for the directory, such as[ "192.0.2.1", "192.0.2.2" ]. -
getAttrId
The directory ID.For example:
d-12373a053a. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getMicrosoftAdRef
A reference to a MicrosoftAD resource.- Specified by:
getMicrosoftAdRefin interfaceIMicrosoftADRef
-
getName
The fully qualified domain name for the AWS Managed Microsoft AD directory, such ascorp.example.com. This name will resolve inside your VPC only. It does not need to be publicly resolvable. -
setName
The fully qualified domain name for the AWS Managed Microsoft AD directory, such ascorp.example.com. This name will resolve inside your VPC only. It does not need to be publicly resolvable. -
getPassword
The password for the default administrative user namedAdmin. -
setPassword
The password for the default administrative user namedAdmin. -
getVpcSettings
Specifies the VPC settings of the Microsoft AD directory server in AWS .Returns union: either
IResolvableorCfnMicrosoftAD.VpcSettingsProperty -
setVpcSettings
Specifies the VPC settings of the Microsoft AD directory server in AWS . -
setVpcSettings
Specifies the VPC settings of the Microsoft AD directory server in AWS . -
getCreateAlias
Specifies an alias for a directory and assigns the alias to the directory.Returns union: either
BooleanorIResolvable -
setCreateAlias
Specifies an alias for a directory and assigns the alias to the directory. -
setCreateAlias
Specifies an alias for a directory and assigns the alias to the directory. -
getEdition
AWS Managed Microsoft AD is available in two editions:StandardandEnterprise. -
setEdition
AWS Managed Microsoft AD is available in two editions:StandardandEnterprise. -
getEnableSso
Whether to enable single sign-on for a Microsoft Active Directory in AWS .Returns union: either
BooleanorIResolvable -
setEnableSso
Whether to enable single sign-on for a Microsoft Active Directory in AWS . -
setEnableSso
Whether to enable single sign-on for a Microsoft Active Directory in AWS . -
getShortName
The NetBIOS name for your domain, such asCORP. -
setShortName
The NetBIOS name for your domain, such asCORP.
-