Class: AWSCDK::DirectoryService::CfnMicrosoftADProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::DirectoryService::CfnMicrosoftADProps
- Defined in:
- directory_service/cfn_microsoft_ad_props.rb
Overview
Properties for defining a CfnMicrosoftAD.
Instance Attribute Summary collapse
-
#create_alias ⇒ Boolean, ...
readonly
Specifies an alias for a directory and assigns the alias to the directory.
-
#edition ⇒ String?
readonly
AWS Managed Microsoft AD is available in two editions:
StandardandEnterprise. -
#enable_sso ⇒ Boolean, ...
readonly
Whether to enable single sign-on for a Microsoft Active Directory in AWS .
-
#name ⇒ String
readonly
The fully qualified domain name for the AWS Managed Microsoft AD directory, such as
corp.example.com. -
#password ⇒ String
readonly
The password for the default administrative user named
Admin. -
#short_name ⇒ String?
readonly
The NetBIOS name for your domain, such as
CORP. -
#vpc_settings ⇒ AWSCDK::IResolvable, AWSCDK::DirectoryService::CfnMicrosoftAD::VPCSettingsProperty
readonly
Specifies the VPC settings of the Microsoft AD directory server in AWS .
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, password:, vpc_settings:, create_alias: nil, edition: nil, enable_sso: nil, short_name: nil) ⇒ CfnMicrosoftADProps
constructor
A new instance of CfnMicrosoftADProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, password:, vpc_settings:, create_alias: nil, edition: nil, enable_sso: nil, short_name: nil) ⇒ CfnMicrosoftADProps
Returns a new instance of CfnMicrosoftADProps.
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'directory_service/cfn_microsoft_ad_props.rb', line 16 def initialize(name:, password:, vpc_settings:, create_alias: nil, edition: nil, enable_sso: nil, short_name: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @password = password Jsii::Type.check_type(@password, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "password") @vpc_settings = vpc_settings.is_a?(Hash) ? ::AWSCDK::DirectoryService::CfnMicrosoftAD::VPCSettingsProperty.new(**vpc_settings.transform_keys(&:to_sym)) : vpc_settings Jsii::Type.check_type(@vpc_settings, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19kaXJlY3RvcnlzZXJ2aWNlLkNmbk1pY3Jvc29mdEFELlZwY1NldHRpbmdzUHJvcGVydHkifV19fQ==")), "vpcSettings") @create_alias = create_alias Jsii::Type.check_type(@create_alias, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "createAlias") unless @create_alias.nil? @edition = edition Jsii::Type.check_type(@edition, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "edition") unless @edition.nil? @enable_sso = enable_sso Jsii::Type.check_type(@enable_sso, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "enableSso") unless @enable_sso.nil? @short_name = short_name Jsii::Type.check_type(@short_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "shortName") unless @short_name.nil? end |
Instance Attribute Details
#create_alias ⇒ Boolean, ... (readonly)
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, 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.
58 59 60 |
# File 'directory_service/cfn_microsoft_ad_props.rb', line 58 def create_alias @create_alias end |
#edition ⇒ String? (readonly)
AWS Managed Microsoft AD is available in two editions: Standard and Enterprise .
Enterprise is the default.
65 66 67 |
# File 'directory_service/cfn_microsoft_ad_props.rb', line 65 def edition @edition end |
#enable_sso ⇒ Boolean, ... (readonly)
Whether to enable single sign-on for a Microsoft Active Directory in AWS .
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, CloudFormation disables single sign-on by default.
72 73 74 |
# File 'directory_service/cfn_microsoft_ad_props.rb', line 72 def enable_sso @enable_sso end |
#name ⇒ String (readonly)
The fully qualified domain name for the AWS Managed Microsoft AD directory, such as corp.example.com . This name will resolve inside your VPC only. It does not need to be publicly resolvable.
37 38 39 |
# File 'directory_service/cfn_microsoft_ad_props.rb', line 37 def name @name end |
#password ⇒ String (readonly)
The password for the default administrative user named Admin .
If you need to change the password for the administrator account, see the ResetUserPassword API call in the Directory Service API Reference .
44 45 46 |
# File 'directory_service/cfn_microsoft_ad_props.rb', line 44 def password @password end |
#short_name ⇒ String? (readonly)
The NetBIOS name for your domain, such as CORP .
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 .
79 80 81 |
# File 'directory_service/cfn_microsoft_ad_props.rb', line 79 def short_name @short_name end |
#vpc_settings ⇒ AWSCDK::IResolvable, AWSCDK::DirectoryService::CfnMicrosoftAD::VPCSettingsProperty (readonly)
Specifies the VPC settings of the Microsoft AD directory server in AWS .
49 50 51 |
# File 'directory_service/cfn_microsoft_ad_props.rb', line 49 def vpc_settings @vpc_settings end |
Class Method Details
.jsii_properties ⇒ Object
81 82 83 84 85 86 87 88 89 90 91 |
# File 'directory_service/cfn_microsoft_ad_props.rb', line 81 def self.jsii_properties { :name => "name", :password => "password", :vpc_settings => "vpcSettings", :create_alias => "createAlias", :edition => "edition", :enable_sso => "enableSso", :short_name => "shortName", } end |
Instance Method Details
#to_jsii ⇒ Object
93 94 95 96 97 98 99 100 101 102 103 104 105 |
# File 'directory_service/cfn_microsoft_ad_props.rb', line 93 def to_jsii result = {} result.merge!({ "name" => @name, "password" => @password, "vpcSettings" => @vpc_settings, "createAlias" => @create_alias, "edition" => @edition, "enableSso" => @enable_sso, "shortName" => @short_name, }) result.compact end |