Class: AWSCDK::CloudFront::CfnVPCOriginProps

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

Overview

Properties for defining a CfnVpcOrigin.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(vpc_origin_endpoint_config:, tags: nil) ⇒ CfnVPCOriginProps

Returns a new instance of CfnVPCOriginProps.

Parameters:



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 = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
end

Instance Attribute Details

#tagsArray<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
  @tags
end

#vpc_origin_endpoint_configAWSCDK::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_propertiesObject



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_jsiiObject



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