Class: AWSCDK::AppRunner::CfnVPCIngressConnectionProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
app_runner/cfn_vpc_ingress_connection_props.rb

Overview

Properties for defining a CfnVpcIngressConnection.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ingress_vpc_configuration:, service_arn:, tags: nil, vpc_ingress_connection_name: nil) ⇒ CfnVPCIngressConnectionProps

Returns a new instance of CfnVPCIngressConnectionProps.

Parameters:

  • ingress_vpc_configuration (AWSCDK::IResolvable, AWSCDK::AppRunner::CfnVPCIngressConnection::IngressVPCConfigurationProperty)

    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)

    The Amazon Resource Name (ARN) for this App Runner service that is used to create the VPC Ingress Connection resource.

  • tags (Array<AWSCDK::CfnTag>, nil) (defaults to: nil)

    An optional list of metadata items that you can associate with the VPC Ingress Connection resource.

  • vpc_ingress_connection_name (String, nil) (defaults to: nil)

    The customer-provided VPC Ingress Connection name.



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 = 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?
  @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_configurationAWSCDK::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_arnString (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

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

#vpc_ingress_connection_nameString? (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_propertiesObject



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_jsiiObject



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