Class: AWSCDK::Amplify::CfnDomain::SubDomainSettingProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(branch_name:, prefix:) ⇒ SubDomainSettingProperty

Returns a new instance of SubDomainSettingProperty.

Parameters:

  • branch_name (String)

    The branch name setting for the subdomain.

  • prefix (String)

    The prefix setting for the subdomain.



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_nameString (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

#prefixString (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_propertiesObject



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_jsiiObject



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