Class CfnSimpleAD
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
AWS::DirectoryService::SimpleAD.
The AWS::DirectoryService::SimpleAD resource specifies an AWS Directory Service Simple Active Directory ( Simple AD ) in AWS so that your directory users and groups can access the AWS Management Console and AWS applications using their existing credentials. Simple AD is a Microsoft Active Directory–compatible directory. For more information, see Simple Active Directory 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.*;
CfnSimpleAD cfnSimpleAD = CfnSimpleAD.Builder.create(this, "MyCfnSimpleAD")
.name("name")
.size("size")
.vpcSettings(VpcSettingsProperty.builder()
.subnetIds(List.of("subnetIds"))
.vpcId("vpcId")
.build())
// the properties below are optional
.createAlias(false)
.description("description")
.enableSso(false)
.password("password")
.shortName("shortName")
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnSimpleAD.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.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnSimpleAD(Construct scope, String id, CfnSimpleADProps props) Create a newAWS::DirectoryService::SimpleAD.protectedCfnSimpleAD(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnSimpleAD(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe alias for a directory.The IP addresses of the DNS servers for the directory, such as[ "172.31.3.154", "172.31.63.203" ].If set totrue, specifies an alias for a directory and assigns the alias to the directory.A description for the directory.Whether to enable single sign-on for a directory.getName()The fully qualified name for the directory, such ascorp.example.com.The password for the directory administrator.The NetBIOS name of the directory, such asCORP.getSize()The size of the directory.A DirectoryVpcSettings object that contains additional information for the operation.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetCreateAlias(Boolean value) If set totrue, specifies an alias for a directory and assigns the alias to the directory.voidsetCreateAlias(IResolvable value) If set totrue, specifies an alias for a directory and assigns the alias to the directory.voidsetDescription(String value) A description for the directory.voidsetEnableSso(Boolean value) Whether to enable single sign-on for a directory.voidsetEnableSso(IResolvable value) Whether to enable single sign-on for a directory.voidThe fully qualified name for the directory, such ascorp.example.com.voidsetPassword(String value) The password for the directory administrator.voidsetShortName(String value) The NetBIOS name of the directory, such asCORP.voidThe size of the directory.voidsetVpcSettings(IResolvable value) A DirectoryVpcSettings object that contains additional information for the operation.voidA DirectoryVpcSettings object that contains additional information for the operation.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods 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.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnSimpleAD
protected CfnSimpleAD(software.amazon.jsii.JsiiObjectRef objRef) -
CfnSimpleAD
protected CfnSimpleAD(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnSimpleAD
@Stability(Stable) public CfnSimpleAD(@NotNull Construct scope, @NotNull String id, @NotNull CfnSimpleADProps props) Create a newAWS::DirectoryService::SimpleAD.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
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:
d-12373a053aoralias4-mydirectory-12345abcgmzsk(if you have theCreateAliasproperty set to true). -
getAttrDirectoryId
-
getAttrDnsIpAddresses
The IP addresses of the DNS servers for the directory, such as[ "172.31.3.154", "172.31.63.203" ]. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getName
The fully qualified name for the directory, such ascorp.example.com. -
setName
The fully qualified name for the directory, such ascorp.example.com. -
getSize
The size of the directory.For valid values, see CreateDirectory in the AWS Directory Service API Reference .
-
setSize
The size of the directory.For valid values, see CreateDirectory in the AWS Directory Service API Reference .
-
getVpcSettings
A DirectoryVpcSettings object that contains additional information for the operation. -
setVpcSettings
A DirectoryVpcSettings object that contains additional information for the operation. -
setVpcSettings
A DirectoryVpcSettings object that contains additional information for the operation. -
getCreateAlias
If set totrue, specifies an alias for a directory and assigns the alias to the directory.The alias is used to construct the access URL for the directory, such as
http://<alias>.awsapps.com. By default, this property is set tofalse.After an alias has been created, it cannot be deleted or reused, so this operation should only be used when absolutely necessary.
-
setCreateAlias
If set totrue, specifies an alias for a directory and assigns the alias to the directory.The alias is used to construct the access URL for the directory, such as
http://<alias>.awsapps.com. By default, this property is set tofalse.After an alias has been created, it cannot be deleted or reused, so this operation should only be used when absolutely necessary.
-
setCreateAlias
If set totrue, specifies an alias for a directory and assigns the alias to the directory.The alias is used to construct the access URL for the directory, such as
http://<alias>.awsapps.com. By default, this property is set tofalse.After an alias has been created, it cannot be deleted or reused, so this operation should only be used when absolutely necessary.
-
getDescription
A description for the directory. -
setDescription
A description for the directory. -
getEnableSso
Whether to enable single sign-on for a directory.If you don't specify a value, AWS CloudFormation disables single sign-on by default.
-
setEnableSso
Whether to enable single sign-on for a directory.If you don't specify a value, AWS CloudFormation disables single sign-on by default.
-
setEnableSso
Whether to enable single sign-on for a directory.If you don't specify a value, AWS CloudFormation disables single sign-on by default.
-
getPassword
The password for the directory administrator.The directory creation process creates a directory administrator account with the user name
Administratorand this password.If you need to change the password for the administrator account, see the ResetUserPassword API call in the AWS Directory Service API Reference .
-
setPassword
The password for the directory administrator.The directory creation process creates a directory administrator account with the user name
Administratorand this password.If you need to change the password for the administrator account, see the ResetUserPassword API call in the AWS Directory Service API Reference .
-
getShortName
The NetBIOS name of the directory, such asCORP. -
setShortName
The NetBIOS name of the directory, such asCORP.
-