Class: AWSCDK::ECS::CfnService::NetworkConfigurationProperty

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

Overview

The network configuration for a task or service.

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:



2213
2214
2215
2216
# File 'ecs/cfn_service.rb', line 2213

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

Instance Attribute Details

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

The VPC subnets and security groups that are associated with a task.

All specified subnets and security groups must be from the same VPC.



2224
2225
2226
# File 'ecs/cfn_service.rb', line 2224

def awsvpc_configuration
  @awsvpc_configuration
end

Class Method Details

.jsii_propertiesObject



2226
2227
2228
2229
2230
# File 'ecs/cfn_service.rb', line 2226

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

Instance Method Details

#to_jsiiObject



2232
2233
2234
2235
2236
2237
2238
# File 'ecs/cfn_service.rb', line 2232

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