Interface AwsVpcConfiguration.Builder

    • Method Detail

      • subnets

        AwsVpcConfiguration.Builder subnets​(Collection<String> subnets)

        The IDs of the subnets associated with the task or service. There's a limit of 16 subnets that can be specified per awsvpcConfiguration.

        All specified subnets must be from the same VPC.

        Parameters:
        subnets - The IDs of the subnets associated with the task or service. There's a limit of 16 subnets that can be specified per awsvpcConfiguration.

        All specified subnets must be from the same VPC.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • subnets

        AwsVpcConfiguration.Builder subnets​(String... subnets)

        The IDs of the subnets associated with the task or service. There's a limit of 16 subnets that can be specified per awsvpcConfiguration.

        All specified subnets must be from the same VPC.

        Parameters:
        subnets - The IDs of the subnets associated with the task or service. There's a limit of 16 subnets that can be specified per awsvpcConfiguration.

        All specified subnets must be from the same VPC.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • securityGroups

        AwsVpcConfiguration.Builder securityGroups​(Collection<String> securityGroups)

        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 per awsvpcConfiguration.

        All specified security groups must be from the same VPC.

        Parameters:
        securityGroups - 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 per awsvpcConfiguration.

        All specified security groups must be from the same VPC.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • securityGroups

        AwsVpcConfiguration.Builder securityGroups​(String... securityGroups)

        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 per awsvpcConfiguration.

        All specified security groups must be from the same VPC.

        Parameters:
        securityGroups - 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 per awsvpcConfiguration.

        All specified security groups must be from the same VPC.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • assignPublicIp

        AwsVpcConfiguration.Builder assignPublicIp​(String assignPublicIp)

        Whether the task's elastic network interface receives a public IP address. The default value is DISABLED.

        Parameters:
        assignPublicIp - Whether the task's elastic network interface receives a public IP address. The default value is DISABLED.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        AssignPublicIp, AssignPublicIp
      • assignPublicIp

        AwsVpcConfiguration.Builder assignPublicIp​(AssignPublicIp assignPublicIp)

        Whether the task's elastic network interface receives a public IP address. The default value is DISABLED.

        Parameters:
        assignPublicIp - Whether the task's elastic network interface receives a public IP address. The default value is DISABLED.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        AssignPublicIp, AssignPublicIp