class Amazonite::EventBridge::AwsVpcConfiguration

Overview

This structure specifies 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.

Included Modules

Defined in:

eventbridge/aws_vpc_configuration.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(subnets : Array(String), security_groups : Array(String) | Nil = nil, assign_public_ip : AssignPublicIp | Nil = nil) #

[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def assign_public_ip : AssignPublicIp | Nil #

Specifies whether the task's elastic network interface receives a public IP address. You can specify ENABLED only when LaunchType in EcsParameters is set to FARGATE.


[View source]
def assign_public_ip=(assign_public_ip : AssignPublicIp | Nil) #

Specifies whether the task's elastic network interface receives a public IP address. You can specify ENABLED only when LaunchType in EcsParameters is set to FARGATE.


[View source]
def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def security_groups : Array(String) | Nil #

Specifies the security groups associated with the task. These security groups must all be in the same VPC. You can specify as many as five security groups. If you do not specify a security group, the default security group for the VPC is used.


[View source]
def security_groups=(security_groups : Array(String) | Nil) #

Specifies the security groups associated with the task. These security groups must all be in the same VPC. You can specify as many as five security groups. If you do not specify a security group, the default security group for the VPC is used.


[View source]
def subnets : Array(String) #

Specifies the subnets associated with the task. These subnets must all be in the same VPC. You can specify as many as 16 subnets.


[View source]
def subnets=(subnets : Array(String)) #

Specifies the subnets associated with the task. These subnets must all be in the same VPC. You can specify as many as 16 subnets.


[View source]
def validate! : Nil #

[View source]