Class: AWSCDK::Scheduler::CfnSchedule::NetworkConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
scheduler/cfn_schedule.rb

Overview

Specifies the network configuration for an 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:



1112
1113
1114
1115
# File 'scheduler/cfn_schedule.rb', line 1112

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

Instance Attribute Details

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

Specifies the Amazon 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.



1123
1124
1125
# File 'scheduler/cfn_schedule.rb', line 1123

def awsvpc_configuration
  @awsvpc_configuration
end

Class Method Details

.jsii_propertiesObject



1125
1126
1127
1128
1129
# File 'scheduler/cfn_schedule.rb', line 1125

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

Instance Method Details

#to_jsiiObject



1131
1132
1133
1134
1135
1136
1137
# File 'scheduler/cfn_schedule.rb', line 1131

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