Class: AWSCDK::CloudFront::VPCOriginAttributes
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CloudFront::VPCOriginAttributes
- Defined in:
- cloud_front/vpc_origin_attributes.rb
Overview
The properties to import from the VPC origin.
Instance Attribute Summary collapse
-
#domain_name ⇒ String?
readonly
The domain name of the CloudFront VPC origin endpoint configuration.
-
#vpc_origin_arn ⇒ String?
readonly
The ARN of the VPC origin.
-
#vpc_origin_id ⇒ String?
readonly
The ID of the VPC origin.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(domain_name: nil, vpc_origin_arn: nil, vpc_origin_id: nil) ⇒ VPCOriginAttributes
constructor
A new instance of VPCOriginAttributes.
- #to_jsii ⇒ Object
Constructor Details
#initialize(domain_name: nil, vpc_origin_arn: nil, vpc_origin_id: nil) ⇒ VPCOriginAttributes
Returns a new instance of VPCOriginAttributes.
10 11 12 13 14 15 16 17 |
# File 'cloud_front/vpc_origin_attributes.rb', line 10 def initialize(domain_name: nil, vpc_origin_arn: nil, vpc_origin_id: nil) @domain_name = domain_name Jsii::Type.check_type(@domain_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "domainName") unless @domain_name.nil? @vpc_origin_arn = vpc_origin_arn Jsii::Type.check_type(@vpc_origin_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "vpcOriginArn") unless @vpc_origin_arn.nil? @vpc_origin_id = vpc_origin_id Jsii::Type.check_type(@vpc_origin_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "vpcOriginId") unless @vpc_origin_id.nil? end |
Instance Attribute Details
#domain_name ⇒ String? (readonly)
Note:
Default: - No domain name configured
The domain name of the CloudFront VPC origin endpoint configuration.
23 24 25 |
# File 'cloud_front/vpc_origin_attributes.rb', line 23 def domain_name @domain_name end |
#vpc_origin_arn ⇒ String? (readonly)
Note:
Default: - derived from vpcOriginId.
The ARN of the VPC origin.
At least one of vpcOriginArn and vpcOriginId must be provided.
30 31 32 |
# File 'cloud_front/vpc_origin_attributes.rb', line 30 def vpc_origin_arn @vpc_origin_arn end |
#vpc_origin_id ⇒ String? (readonly)
Note:
Default: - derived from vpcOriginArn.
The ID of the VPC origin.
At least one of vpcOriginArn and vpcOriginId must be provided.
37 38 39 |
# File 'cloud_front/vpc_origin_attributes.rb', line 37 def vpc_origin_id @vpc_origin_id end |
Class Method Details
.jsii_properties ⇒ Object
39 40 41 42 43 44 45 |
# File 'cloud_front/vpc_origin_attributes.rb', line 39 def self.jsii_properties { :domain_name => "domainName", :vpc_origin_arn => "vpcOriginArn", :vpc_origin_id => "vpcOriginId", } end |
Instance Method Details
#to_jsii ⇒ Object
47 48 49 50 51 52 53 54 55 |
# File 'cloud_front/vpc_origin_attributes.rb', line 47 def to_jsii result = {} result.merge!({ "domainName" => @domain_name, "vpcOriginArn" => @vpc_origin_arn, "vpcOriginId" => @vpc_origin_id, }) result.compact end |