Interface NetworkConfiguration.Builder

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

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

    • awsvpcConfiguration

      NetworkConfiguration.Builder awsvpcConfiguration(AwsVpcConfiguration awsvpcConfiguration)

      Use this structure to specify 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.

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

      default NetworkConfiguration.Builder awsvpcConfiguration(Consumer<AwsVpcConfiguration.Builder> awsvpcConfiguration)

      Use this structure to specify 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.

      This is a convenience method that creates an instance of the AwsVpcConfiguration.Builder avoiding the need to create one manually via AwsVpcConfiguration.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to awsvpcConfiguration(AwsVpcConfiguration).

      Parameters:
      awsvpcConfiguration - a consumer that will call methods on AwsVpcConfiguration.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: