Class: AWSCDK::CloudFront::CloudFrontWebDistributionAttributes
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CloudFront::CloudFrontWebDistributionAttributes
- Defined in:
- cloud_front/cloud_front_web_distribution_attributes.rb
Overview
Attributes used to import a Distribution.
Instance Attribute Summary collapse
-
#distribution_id ⇒ String
readonly
The distribution ID for this distribution.
-
#domain_name ⇒ String
readonly
The generated domain name of the Distribution, such as d111111abcdef8.cloudfront.net.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(distribution_id:, domain_name:) ⇒ CloudFrontWebDistributionAttributes
constructor
A new instance of CloudFrontWebDistributionAttributes.
- #to_jsii ⇒ Object
Constructor Details
#initialize(distribution_id:, domain_name:) ⇒ CloudFrontWebDistributionAttributes
Returns a new instance of CloudFrontWebDistributionAttributes.
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_id ⇒ String (readonly)
The distribution ID for this distribution.
19 20 21 |
# File 'cloud_front/cloud_front_web_distribution_attributes.rb', line 19 def distribution_id @distribution_id end |
#domain_name ⇒ String (readonly)
The generated domain name of the Distribution, such as d111111abcdef8.cloudfront.net.
23 24 25 |
# File 'cloud_front/cloud_front_web_distribution_attributes.rb', line 23 def domain_name @domain_name end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |