Class: AWSCDK::AppRunner::CfnService::EgressConfigurationProperty

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

Overview

Describes configuration settings related to outbound network traffic of an AWS App Runner service.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(egress_type:, vpc_connector_arn: nil) ⇒ EgressConfigurationProperty

Returns a new instance of EgressConfigurationProperty.

Parameters:

  • egress_type (String)

    The type of egress configuration.

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

    The Amazon Resource Name (ARN) of the App Runner VPC connector that you want to associate with your App Runner service.



921
922
923
924
925
926
# File 'app_runner/cfn_service.rb', line 921

def initialize(egress_type:, vpc_connector_arn: nil)
  @egress_type = egress_type
  Jsii::Type.check_type(@egress_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "egressType")
  @vpc_connector_arn = vpc_connector_arn
  Jsii::Type.check_type(@vpc_connector_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "vpcConnectorArn") unless @vpc_connector_arn.nil?
end

Instance Attribute Details

#egress_typeString (readonly)

The type of egress configuration.

Set to DEFAULT for access to resources hosted on public networks.

Set to VPC to associate your service to a custom VPC specified by VpcConnectorArn .



936
937
938
# File 'app_runner/cfn_service.rb', line 936

def egress_type
  @egress_type
end

#vpc_connector_arnString? (readonly)

The Amazon Resource Name (ARN) of the App Runner VPC connector that you want to associate with your App Runner service.

Only valid when EgressType = VPC .



943
944
945
# File 'app_runner/cfn_service.rb', line 943

def vpc_connector_arn
  @vpc_connector_arn
end

Class Method Details

.jsii_propertiesObject



945
946
947
948
949
950
# File 'app_runner/cfn_service.rb', line 945

def self.jsii_properties
  {
    :egress_type => "egressType",
    :vpc_connector_arn => "vpcConnectorArn",
  }
end

Instance Method Details

#to_jsiiObject



952
953
954
955
956
957
958
959
# File 'app_runner/cfn_service.rb', line 952

def to_jsii
  result = {}
  result.merge!({
    "egressType" => @egress_type,
    "vpcConnectorArn" => @vpc_connector_arn,
  })
  result.compact
end