Interface AwsVpcConfiguration.Builder

All Superinterfaces:
Buildable, CopyableBuilder<AwsVpcConfiguration.Builder,AwsVpcConfiguration>, SdkBuilder<AwsVpcConfiguration.Builder,AwsVpcConfiguration>, SdkPojo
Enclosing class:
AwsVpcConfiguration

public static interface AwsVpcConfiguration.Builder extends SdkPojo, CopyableBuilder<AwsVpcConfiguration.Builder,AwsVpcConfiguration>
  • Method Details

    • subnets

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

      Parameters:
      subnets - Specifies the subnets associated with the task. These subnets must all be in the same VPC. You can specify as many as 16 subnets.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • subnets

      AwsVpcConfiguration.Builder subnets(String... subnets)

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

      Parameters:
      subnets - Specifies the subnets associated with the task. These subnets must all be in the same VPC. You can specify as many as 16 subnets.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • securityGroups

      AwsVpcConfiguration.Builder securityGroups(Collection<String> securityGroups)

      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.

      Parameters:
      securityGroups - 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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • securityGroups

      AwsVpcConfiguration.Builder securityGroups(String... securityGroups)

      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.

      Parameters:
      securityGroups - 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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • assignPublicIp

      AwsVpcConfiguration.Builder assignPublicIp(String assignPublicIp)

      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.

      Parameters:
      assignPublicIp - 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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • assignPublicIp

      AwsVpcConfiguration.Builder assignPublicIp(AssignPublicIp assignPublicIp)

      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.

      Parameters:
      assignPublicIp - 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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: