Class: AWSCDK::AppRunner::CfnVPCIngressConnectionProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppRunner::CfnVPCIngressConnectionProps
- Defined in:
- app_runner/cfn_vpc_ingress_connection_props.rb
Overview
Properties for defining a CfnVpcIngressConnection.
Instance Attribute Summary collapse
-
#ingress_vpc_configuration ⇒ AWSCDK::IResolvable, AWSCDK::AppRunner::CfnVPCIngressConnection::IngressVPCConfigurationProperty
readonly
Specifications for the customer’s Amazon VPC and the related AWS PrivateLink VPC endpoint that are used to create the VPC Ingress Connection resource.
-
#service_arn ⇒ String
readonly
The Amazon Resource Name (ARN) for this App Runner service that is used to create the VPC Ingress Connection resource.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
An optional list of metadata items that you can associate with the VPC Ingress Connection resource.
-
#vpc_ingress_connection_name ⇒ String?
readonly
The customer-provided VPC Ingress Connection name.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(ingress_vpc_configuration:, service_arn:, tags: nil, vpc_ingress_connection_name: nil) ⇒ CfnVPCIngressConnectionProps
constructor
A new instance of CfnVPCIngressConnectionProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(ingress_vpc_configuration:, service_arn:, tags: nil, vpc_ingress_connection_name: nil) ⇒ CfnVPCIngressConnectionProps
Returns a new instance of CfnVPCIngressConnectionProps.
13 14 15 16 17 18 19 20 21 22 |
# File 'app_runner/cfn_vpc_ingress_connection_props.rb', line 13 def initialize(ingress_vpc_configuration:, service_arn:, tags: nil, vpc_ingress_connection_name: nil) @ingress_vpc_configuration = ingress_vpc_configuration.is_a?(Hash) ? ::AWSCDK::AppRunner::CfnVPCIngressConnection::IngressVPCConfigurationProperty.new(**ingress_vpc_configuration.transform_keys(&:to_sym)) : ingress_vpc_configuration Jsii::Type.check_type(@ingress_vpc_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBydW5uZXIuQ2ZuVnBjSW5ncmVzc0Nvbm5lY3Rpb24uSW5ncmVzc1ZwY0NvbmZpZ3VyYXRpb25Qcm9wZXJ0eSJ9XX19")), "ingressVpcConfiguration") @service_arn = service_arn Jsii::Type.check_type(@service_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "serviceArn") @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? @vpc_ingress_connection_name = vpc_ingress_connection_name Jsii::Type.check_type(@vpc_ingress_connection_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "vpcIngressConnectionName") unless @vpc_ingress_connection_name.nil? end |
Instance Attribute Details
#ingress_vpc_configuration ⇒ AWSCDK::IResolvable, AWSCDK::AppRunner::CfnVPCIngressConnection::IngressVPCConfigurationProperty (readonly)
Specifications for the customer’s Amazon VPC and the related AWS PrivateLink VPC endpoint that are used to create the VPC Ingress Connection resource.
28 29 30 |
# File 'app_runner/cfn_vpc_ingress_connection_props.rb', line 28 def ingress_vpc_configuration @ingress_vpc_configuration end |
#service_arn ⇒ String (readonly)
The Amazon Resource Name (ARN) for this App Runner service that is used to create the VPC Ingress Connection resource.
33 34 35 |
# File 'app_runner/cfn_vpc_ingress_connection_props.rb', line 33 def service_arn @service_arn end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
An optional list of metadata items that you can associate with the VPC Ingress Connection resource.
A tag is a key-value pair.
40 41 42 |
# File 'app_runner/cfn_vpc_ingress_connection_props.rb', line 40 def @tags end |
#vpc_ingress_connection_name ⇒ String? (readonly)
The customer-provided VPC Ingress Connection name.
45 46 47 |
# File 'app_runner/cfn_vpc_ingress_connection_props.rb', line 45 def vpc_ingress_connection_name @vpc_ingress_connection_name end |
Class Method Details
.jsii_properties ⇒ Object
47 48 49 50 51 52 53 54 |
# File 'app_runner/cfn_vpc_ingress_connection_props.rb', line 47 def self.jsii_properties { :ingress_vpc_configuration => "ingressVpcConfiguration", :service_arn => "serviceArn", :tags => "tags", :vpc_ingress_connection_name => "vpcIngressConnectionName", } end |
Instance Method Details
#to_jsii ⇒ Object
56 57 58 59 60 61 62 63 64 65 |
# File 'app_runner/cfn_vpc_ingress_connection_props.rb', line 56 def to_jsii result = {} result.merge!({ "ingressVpcConfiguration" => @ingress_vpc_configuration, "serviceArn" => @service_arn, "tags" => @tags, "vpcIngressConnectionName" => @vpc_ingress_connection_name, }) result.compact end |