CfnSimpleADProps Struct
Properties for defining a CfnSimpleAD.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_directoryservice as directoryservice } from 'aws-cdk-lib';
const cfnSimpleADProps: directoryservice.CfnSimpleADProps = {
name: 'name',
size: 'size',
vpcSettings: {
subnetIds: ['subnetIds'],
vpcId: 'vpcId',
},
// the properties below are optional
createAlias: false,
description: 'description',
enableSso: false,
password: 'password',
shortName: 'shortName',
tags: [{
key: 'key',
value: 'value',
}],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_directoryservice as directoryservice
cfn_simple_ad_props = directoryservice.CfnSimpleADProps(
name="name",
size="size",
vpc_settings=directoryservice.CfnSimpleAD.VpcSettingsProperty(
subnet_ids=["subnetIds"],
vpc_id="vpcId"
),
# the properties below are optional
create_alias=False,
description="description",
enable_sso=False,
password="password",
short_name="shortName",
tags=[CfnTag(
key="key",
value="value"
)]
)
java
// 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.*;
CfnSimpleADProps cfnSimpleADProps = CfnSimpleADProps.builder()
.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")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.DirectoryService;
var cfnSimpleADProps = new CfnSimpleADProps {
Name = "name",
Size = "size",
VpcSettings = new VpcSettingsProperty {
SubnetIds = new [] { "subnetIds" },
VpcId = "vpcId"
},
// the properties below are optional
CreateAlias = false,
Description = "description",
EnableSso = false,
Password = "password",
ShortName = "shortName",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnSimpleADProps := &CfnSimpleADProps{
Name: jsii.String("name"),
Size: jsii.String("size"),
VpcSettings: &VpcSettingsProperty{
SubnetIds: []*string{
jsii.String("subnetIds"),
},
VpcId: jsii.String("vpcId"),
},
// the properties below are optional
CreateAlias: jsii.Boolean(false),
Description: jsii.String("description"),
EnableSso: jsii.Boolean(false),
Password: jsii.String("password"),
ShortName: jsii.String("shortName"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
createAliasoptionalboolean | IResolvablecreate_aliasoptionaltyping.Union[bool, IResolvable]createAliasoptionalBooleanCreateAliasoptionalboolCreateAliasoptionalinterface{} #If set to `true` , specifies an alias for a directory and assigns the alias to the directory.
notes
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.
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #A description for the directory.
enableSsooptionalboolean | IResolvableenable_ssooptionaltyping.Union[bool, IResolvable]enableSsooptionalBooleanEnableSsooptionalboolEnableSsooptionalinterface{} #Whether to enable single sign-on for a directory.
If you don't specify a value, CloudFormation disables single sign-on by default.
The fully qualified name for the directory, such as `corp.example.com` .
passwordoptionalstringpasswordoptionalstrpasswordoptionalStringPasswordoptionalstringPasswordoptional*string #The password for the directory administrator.
notes
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 Directory Service API Reference .
shortNameoptionalstringshort_nameoptionalstrshortNameoptionalStringShortNameoptionalstringShortNameoptional*string #The NetBIOS name of the directory, such as `CORP` .
The size of the directory.
For valid values, see CreateDirectory in the Directory Service API Reference .
vpcSettingsIResolvable | CfnSimpleAD.VpcSettingsPropertyvpc_settingstyping.Union[IResolvable, VpcSettingsProperty]vpcSettingsIResolvableVpcSettingsIResolvableVpcSettingsinterface{} required #A DirectoryVpcSettings object that contains additional information for the operation.