Class: AWSCDK::Amplify::CfnDomain::SubDomainSettingProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Amplify::CfnDomain::SubDomainSettingProperty
- Defined in:
- amplify/cfn_domain.rb
Overview
The SubDomainSetting property type enables you to connect a subdomain (for example, example.exampledomain.com) to a specific branch.
Instance Attribute Summary collapse
-
#branch_name ⇒ String
readonly
The branch name setting for the subdomain.
-
#prefix ⇒ String
readonly
The prefix setting for the subdomain.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(branch_name:, prefix:) ⇒ SubDomainSettingProperty
constructor
A new instance of SubDomainSettingProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(branch_name:, prefix:) ⇒ SubDomainSettingProperty
Returns a new instance of SubDomainSettingProperty.
781 782 783 784 785 786 |
# File 'amplify/cfn_domain.rb', line 781 def initialize(branch_name:, prefix:) @branch_name = branch_name Jsii::Type.check_type(@branch_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "branchName") @prefix = prefix Jsii::Type.check_type(@prefix, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "prefix") end |
Instance Attribute Details
#branch_name ⇒ String (readonly)
The branch name setting for the subdomain.
Length Constraints: Minimum length of 1. Maximum length of 255.
Pattern: (?s).+
796 797 798 |
# File 'amplify/cfn_domain.rb', line 796 def branch_name @branch_name end |
#prefix ⇒ String (readonly)
The prefix setting for the subdomain.
801 802 803 |
# File 'amplify/cfn_domain.rb', line 801 def prefix @prefix end |
Class Method Details
.jsii_properties ⇒ Object
803 804 805 806 807 808 |
# File 'amplify/cfn_domain.rb', line 803 def self.jsii_properties { :branch_name => "branchName", :prefix => "prefix", } end |
Instance Method Details
#to_jsii ⇒ Object
810 811 812 813 814 815 816 817 |
# File 'amplify/cfn_domain.rb', line 810 def to_jsii result = {} result.merge!({ "branchName" => @branch_name, "prefix" => @prefix, }) result.compact end |