@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.927Z") @Stability(value=Stable) public class CfnSimpleAD extends CfnResource implements IInspectable
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")
.password("password")
.size("size")
.vpcSettings(VpcSettingsProperty.builder()
.subnetIds(List.of("subnetIds"))
.vpcId("vpcId")
.build())
// the properties below are optional
.createAlias(false)
.description("description")
.enableSso(false)
.shortName("shortName")
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnSimpleAD.Builder
A fluent builder for
CfnSimpleAD. |
static interface |
CfnSimpleAD.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 |
|---|---|
|
CfnSimpleAD(software.constructs.Construct scope,
String id,
CfnSimpleADProps props)
Create a new `AWS::DirectoryService::SimpleAD`.
|
protected |
CfnSimpleAD(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnSimpleAD(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 `[ "172.31.3.154", "172.31.63.203" ]` .
|
protected Map<String,Object> |
getCfnProperties() |
Object |
getCreateAlias()
If set to `true` , specifies an alias for a directory and assigns the alias to the directory.
|
String |
getDescription()
A description for the directory.
|
Object |
getEnableSso()
Whether to enable single sign-on for a directory.
|
String |
getName()
The fully qualified name for the directory, such as `corp.example.com` .
|
String |
getPassword()
The password for the directory administrator.
|
String |
getShortName()
The NetBIOS name of the directory, such as `CORP` .
|
String |
getSize()
The size of the directory.
|
Object |
getVpcSettings()
A [DirectoryVpcSettings](https://docs.aws.amazon.com/directoryservice/latest/devguide/API_DirectoryVpcSettings.html) object that contains additional information for the operation.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setCreateAlias(Boolean value)
If set to `true` , specifies an alias for a directory and assigns the alias to the directory.
|
void |
setCreateAlias(IResolvable value)
If set to `true` , specifies an alias for a directory and assigns the alias to the directory.
|
void |
setDescription(String value)
A description for the directory.
|
void |
setEnableSso(Boolean value)
Whether to enable single sign-on for a directory.
|
void |
setEnableSso(IResolvable value)
Whether to enable single sign-on for a directory.
|
void |
setName(String value)
The fully qualified name for the directory, such as `corp.example.com` .
|
void |
setPassword(String value)
The password for the directory administrator.
|
void |
setShortName(String value)
The NetBIOS name of the directory, such as `CORP` .
|
void |
setSize(String value)
The size of the directory.
|
void |
setVpcSettings(CfnSimpleAD.VpcSettingsProperty value)
A [DirectoryVpcSettings](https://docs.aws.amazon.com/directoryservice/latest/devguide/API_DirectoryVpcSettings.html) object that contains additional information for the operation.
|
void |
setVpcSettings(IResolvable value)
A [DirectoryVpcSettings](https://docs.aws.amazon.com/directoryservice/latest/devguide/API_DirectoryVpcSettings.html) object that contains additional information for the operation.
|
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 CfnSimpleAD(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnSimpleAD(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnSimpleAD(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnSimpleADProps 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()
The directory creation process creates a directory administrator account with the user name Administrator and 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 .
@Stability(value=Stable)
public void setPassword(@NotNull
String value)
The directory creation process creates a directory administrator account with the user name Administrator and 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 .
@Stability(value=Stable) @NotNull public String getSize()
For valid values, see CreateDirectory in the AWS Directory Service API Reference .
@Stability(value=Stable)
public void setSize(@NotNull
String value)
For valid values, see CreateDirectory in the AWS Directory Service API Reference .
@Stability(value=Stable) @NotNull public Object getVpcSettings()
@Stability(value=Stable)
public void setVpcSettings(@NotNull
CfnSimpleAD.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, this property is set to false .
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, this property is set to false .
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, this property is set to false .
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 getDescription()
@Stability(value=Stable)
public void setDescription(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getEnableSso()
If you don't specify a value, AWS CloudFormation disables single sign-on by default.
@Stability(value=Stable)
public void setEnableSso(@Nullable
Boolean value)
If you don't specify a value, AWS CloudFormation disables single sign-on by default.
@Stability(value=Stable)
public void setEnableSso(@Nullable
IResolvable value)
If you don't specify a value, AWS CloudFormation disables single sign-on by default.
@Stability(value=Stable) @Nullable public String getShortName()
@Stability(value=Stable)
public void setShortName(@Nullable
String value)
Copyright © 2022. All rights reserved.