Class: AWSCDK::CloudFront::CloudFrontWebDistributionAttributes

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
cloud_front/cloud_front_web_distribution_attributes.rb

Overview

Attributes used to import a Distribution.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(distribution_id:, domain_name:) ⇒ CloudFrontWebDistributionAttributes

Returns a new instance of CloudFrontWebDistributionAttributes.

Parameters:

  • distribution_id (String)

    The distribution ID for this distribution.

  • domain_name (String)

    The generated domain name of the Distribution, such as d111111abcdef8.cloudfront.net.



9
10
11
12
13
14
# File 'cloud_front/cloud_front_web_distribution_attributes.rb', line 9

def initialize(distribution_id:, domain_name:)
  @distribution_id = distribution_id
  Jsii::Type.check_type(@distribution_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "distributionId")
  @domain_name = domain_name
  Jsii::Type.check_type(@domain_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "domainName")
end

Instance Attribute Details

#distribution_idString (readonly)

The distribution ID for this distribution.

Returns:

  • (String)


19
20
21
# File 'cloud_front/cloud_front_web_distribution_attributes.rb', line 19

def distribution_id
  @distribution_id
end

#domain_nameString (readonly)

The generated domain name of the Distribution, such as d111111abcdef8.cloudfront.net.

Returns:

  • (String)


23
24
25
# File 'cloud_front/cloud_front_web_distribution_attributes.rb', line 23

def domain_name
  @domain_name
end

Class Method Details

.jsii_propertiesObject



25
26
27
28
29
30
# File 'cloud_front/cloud_front_web_distribution_attributes.rb', line 25

def self.jsii_properties
  {
    :distribution_id => "distributionId",
    :domain_name => "domainName",
  }
end

Instance Method Details

#to_jsiiObject



32
33
34
35
36
37
38
39
# File 'cloud_front/cloud_front_web_distribution_attributes.rb', line 32

def to_jsii
  result = {}
  result.merge!({
    "distributionId" => @distribution_id,
    "domainName" => @domain_name,
  })
  result.compact
end