Class: AWSCDK::Events::CfnRule::NetworkConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
events/cfn_rule.rb

Overview

This structure specifies the network configuration for an ECS task.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(aws_vpc_configuration: nil) ⇒ NetworkConfigurationProperty

Returns a new instance of NetworkConfigurationProperty.

Parameters:



1361
1362
1363
1364
# File 'events/cfn_rule.rb', line 1361

def initialize(aws_vpc_configuration: nil)
  @aws_vpc_configuration = aws_vpc_configuration.is_a?(Hash) ? ::AWSCDK::Events::CfnRule::AWSVPCConfigurationProperty.new(**aws_vpc_configuration.transform_keys(&:to_sym)) : aws_vpc_configuration
  Jsii::Type.check_type(@aws_vpc_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19ldmVudHMuQ2ZuUnVsZS5Bd3NWcGNDb25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "awsVpcConfiguration") unless @aws_vpc_configuration.nil?
end

Instance Attribute Details

#aws_vpc_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.



1372
1373
1374
# File 'events/cfn_rule.rb', line 1372

def aws_vpc_configuration
  @aws_vpc_configuration
end

Class Method Details

.jsii_propertiesObject



1374
1375
1376
1377
1378
# File 'events/cfn_rule.rb', line 1374

def self.jsii_properties
  {
    :aws_vpc_configuration => "awsVpcConfiguration",
  }
end

Instance Method Details

#to_jsiiObject



1380
1381
1382
1383
1384
1385
1386
# File 'events/cfn_rule.rb', line 1380

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