Class: AWSCDK::ECS::CfnExpressGatewayService::ExpressGatewayServiceNetworkConfigurationProperty

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

Overview

The network configuration for an Express service.

By default, an Express service utilizes subnets and security groups associated with the default VPC.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(security_groups: nil, subnets: nil) ⇒ ExpressGatewayServiceNetworkConfigurationProperty

Returns a new instance of ExpressGatewayServiceNetworkConfigurationProperty.

Parameters:

  • security_groups (Array<String>, nil) (defaults to: nil)

    The IDs of the security groups associated with the Express service.

  • subnets (Array<String>, nil) (defaults to: nil)

    The IDs of the subnets associated with the Express service.



1308
1309
1310
1311
1312
1313
# File 'ecs/cfn_express_gateway_service.rb', line 1308

def initialize(security_groups: nil, subnets: nil)
  @security_groups = security_groups
  Jsii::Type.check_type(@security_groups, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "securityGroups") unless @security_groups.nil?
  @subnets = subnets
  Jsii::Type.check_type(@subnets, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "subnets") unless @subnets.nil?
end

Instance Attribute Details

#security_groupsArray<String>? (readonly)

The IDs of the security groups associated with the Express service.



1319
1320
1321
# File 'ecs/cfn_express_gateway_service.rb', line 1319

def security_groups
  @security_groups
end

#subnetsArray<String>? (readonly)

The IDs of the subnets associated with the Express service.



1324
1325
1326
# File 'ecs/cfn_express_gateway_service.rb', line 1324

def subnets
  @subnets
end

Class Method Details

.jsii_propertiesObject



1326
1327
1328
1329
1330
1331
# File 'ecs/cfn_express_gateway_service.rb', line 1326

def self.jsii_properties
  {
    :security_groups => "securityGroups",
    :subnets => "subnets",
  }
end

Instance Method Details

#to_jsiiObject



1333
1334
1335
1336
1337
1338
1339
1340
# File 'ecs/cfn_express_gateway_service.rb', line 1333

def to_jsii
  result = {}
  result.merge!({
    "securityGroups" => @security_groups,
    "subnets" => @subnets,
  })
  result.compact
end