Class: AWSCDK::Pipes::CfnPipe::NetworkConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
pipes/cfn_pipe.rb

Overview

This structure specifies the network configuration for an Amazon ECS task.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(awsvpc_configuration: nil) ⇒ NetworkConfigurationProperty

Returns a new instance of NetworkConfigurationProperty.

Parameters:



2024
2025
2026
2027
# File 'pipes/cfn_pipe.rb', line 2024

def initialize(awsvpc_configuration: nil)
  @awsvpc_configuration = awsvpc_configuration.is_a?(Hash) ? ::AWSCDK::Pipes::CfnPipe::AWSVPCConfigurationProperty.new(**awsvpc_configuration.transform_keys(&:to_sym)) : awsvpc_configuration
  Jsii::Type.check_type(@awsvpc_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19waXBlcy5DZm5QaXBlLkF3c1ZwY0NvbmZpZ3VyYXRpb25Qcm9wZXJ0eSJ9XX19")), "awsvpcConfiguration") unless @awsvpc_configuration.nil?
end

Instance Attribute Details

#awsvpc_configurationAWSCDK::IResolvable, ... (readonly)

Use this structure to specify the VPC subnets and security groups for the task, and whether a public IP address is to be used.

This structure is relevant only for ECS tasks that use the awsvpc network mode.



2035
2036
2037
# File 'pipes/cfn_pipe.rb', line 2035

def awsvpc_configuration
  @awsvpc_configuration
end

Class Method Details

.jsii_propertiesObject



2037
2038
2039
2040
2041
# File 'pipes/cfn_pipe.rb', line 2037

def self.jsii_properties
  {
    :awsvpc_configuration => "awsvpcConfiguration",
  }
end

Instance Method Details

#to_jsiiObject



2043
2044
2045
2046
2047
2048
2049
# File 'pipes/cfn_pipe.rb', line 2043

def to_jsii
  result = {}
  result.merge!({
    "awsvpcConfiguration" => @awsvpc_configuration,
  })
  result.compact
end