Class: AWSCDK::CloudFront::CfnVPCOriginProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CloudFront::CfnVPCOriginProps
- Defined in:
- cloud_front/cfn_vpc_origin_props.rb
Overview
Properties for defining a CfnVpcOrigin.
Instance Attribute Summary collapse
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
A complex type that contains zero or more
Tagelements. -
#vpc_origin_endpoint_config ⇒ AWSCDK::IResolvable, AWSCDK::CloudFront::CfnVPCOrigin::VPCOriginEndpointConfigProperty
readonly
The VPC origin endpoint configuration.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(vpc_origin_endpoint_config:, tags: nil) ⇒ CfnVPCOriginProps
constructor
A new instance of CfnVPCOriginProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(vpc_origin_endpoint_config:, tags: nil) ⇒ CfnVPCOriginProps
Returns a new instance of CfnVPCOriginProps.
11 12 13 14 15 16 |
# File 'cloud_front/cfn_vpc_origin_props.rb', line 11 def initialize(vpc_origin_endpoint_config:, tags: nil) @vpc_origin_endpoint_config = vpc_origin_endpoint_config.is_a?(Hash) ? ::AWSCDK::CloudFront::CfnVPCOrigin::VPCOriginEndpointConfigProperty.new(**vpc_origin_endpoint_config.transform_keys(&:to_sym)) : vpc_origin_endpoint_config Jsii::Type.check_type(@vpc_origin_endpoint_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jbG91ZGZyb250LkNmblZwY09yaWdpbi5WcGNPcmlnaW5FbmRwb2ludENvbmZpZ1Byb3BlcnR5In1dfX0=")), "vpcOriginEndpointConfig") @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
A complex type that contains zero or more Tag elements.
27 28 29 |
# File 'cloud_front/cfn_vpc_origin_props.rb', line 27 def @tags end |
#vpc_origin_endpoint_config ⇒ AWSCDK::IResolvable, AWSCDK::CloudFront::CfnVPCOrigin::VPCOriginEndpointConfigProperty (readonly)
The VPC origin endpoint configuration.
22 23 24 |
# File 'cloud_front/cfn_vpc_origin_props.rb', line 22 def vpc_origin_endpoint_config @vpc_origin_endpoint_config end |
Class Method Details
.jsii_properties ⇒ Object
29 30 31 32 33 34 |
# File 'cloud_front/cfn_vpc_origin_props.rb', line 29 def self.jsii_properties { :vpc_origin_endpoint_config => "vpcOriginEndpointConfig", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
36 37 38 39 40 41 42 43 |
# File 'cloud_front/cfn_vpc_origin_props.rb', line 36 def to_jsii result = {} result.merge!({ "vpcOriginEndpointConfig" => @vpc_origin_endpoint_config, "tags" => @tags, }) result.compact end |