Method: Aws::ECS::Types::AwsVpcConfiguration#security_groups

Defined in:
lib/aws-sdk-ecs/types.rb

#security_groupsArray<String>

The IDs of the security groups associated with the task or service. If you don’t specify a security group, the default security group for the VPC is used. There’s a limit of 5 security groups that can be specified.

<note markdown=“1”> All specified security groups must be from the same VPC.

</note>

Returns:

  • (Array<String>)


374
375
376
377
378
379
380
# File 'lib/aws-sdk-ecs/types.rb', line 374

class AwsVpcConfiguration < Struct.new(
  :subnets,
  :security_groups,
  :assign_public_ip)
  SENSITIVE = []
  include Aws::Structure
end