Class: AWSCDK::Batch::CfnJobDefinition::NetworkConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Batch::CfnJobDefinition::NetworkConfigurationProperty
- Defined in:
- batch/cfn_job_definition.rb
Overview
The network configuration for jobs that are running on Fargate resources.
Jobs that are running on Amazon EC2 resources must not specify this parameter.
Instance Attribute Summary collapse
-
#assign_public_ip ⇒ String?
readonly
Indicates whether the job has a public IP address.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(assign_public_ip: nil) ⇒ NetworkConfigurationProperty
constructor
A new instance of NetworkConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(assign_public_ip: nil) ⇒ NetworkConfigurationProperty
Returns a new instance of NetworkConfigurationProperty.
2783 2784 2785 2786 |
# File 'batch/cfn_job_definition.rb', line 2783 def initialize(assign_public_ip: nil) @assign_public_ip = assign_public_ip Jsii::Type.check_type(@assign_public_ip, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "assignPublicIp") unless @assign_public_ip.nil? end |
Instance Attribute Details
#assign_public_ip ⇒ String? (readonly)
Indicates whether the job has a public IP address.
For a job that's running on Fargate resources in a private subnet to send outbound traffic to the internet (for example, to pull container images), the private subnet requires a NAT gateway be attached to route requests to the internet. For more information, see Amazon ECS task networking in the Amazon Elastic Container Service Developer Guide . The default value is " DISABLED ".
2794 2795 2796 |
# File 'batch/cfn_job_definition.rb', line 2794 def assign_public_ip @assign_public_ip end |
Class Method Details
.jsii_properties ⇒ Object
2796 2797 2798 2799 2800 |
# File 'batch/cfn_job_definition.rb', line 2796 def self.jsii_properties { :assign_public_ip => "assignPublicIp", } end |
Instance Method Details
#to_jsii ⇒ Object
2802 2803 2804 2805 2806 2807 2808 |
# File 'batch/cfn_job_definition.rb', line 2802 def to_jsii result = {} result.merge!({ "assignPublicIp" => @assign_public_ip, }) result.compact end |