Interface Placement.Builder

  • Method Details

    • availabilityZone

      Placement.Builder availabilityZone(String availabilityZone)

      The Availability Zone where your build and test instances will launch.

      Parameters:
      availabilityZone - The Availability Zone where your build and test instances will launch.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tenancy

      Placement.Builder tenancy(String tenancy)

      The tenancy of the instance. An instance with a tenancy of dedicated runs on single-tenant hardware. An instance with a tenancy of host runs on a Dedicated Host.

      If tenancy is set to host, then you can optionally specify one target for placement – either host ID or host resource group ARN. If automatic placement is enabled for your host, and you don't specify any placement target, Amazon EC2 will try to find an available host for your build and test instances.

      Parameters:
      tenancy - The tenancy of the instance. An instance with a tenancy of dedicated runs on single-tenant hardware. An instance with a tenancy of host runs on a Dedicated Host.

      If tenancy is set to host, then you can optionally specify one target for placement – either host ID or host resource group ARN. If automatic placement is enabled for your host, and you don't specify any placement target, Amazon EC2 will try to find an available host for your build and test instances.

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

      Placement.Builder tenancy(TenancyType tenancy)

      The tenancy of the instance. An instance with a tenancy of dedicated runs on single-tenant hardware. An instance with a tenancy of host runs on a Dedicated Host.

      If tenancy is set to host, then you can optionally specify one target for placement – either host ID or host resource group ARN. If automatic placement is enabled for your host, and you don't specify any placement target, Amazon EC2 will try to find an available host for your build and test instances.

      Parameters:
      tenancy - The tenancy of the instance. An instance with a tenancy of dedicated runs on single-tenant hardware. An instance with a tenancy of host runs on a Dedicated Host.

      If tenancy is set to host, then you can optionally specify one target for placement – either host ID or host resource group ARN. If automatic placement is enabled for your host, and you don't specify any placement target, Amazon EC2 will try to find an available host for your build and test instances.

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

      Placement.Builder hostId(String hostId)

      The ID of the Dedicated Host on which build and test instances run. This only applies if tenancy is host. If you specify the host ID, you must not specify the resource group ARN. If you specify both, Image Builder returns an error.

      Parameters:
      hostId - The ID of the Dedicated Host on which build and test instances run. This only applies if tenancy is host. If you specify the host ID, you must not specify the resource group ARN. If you specify both, Image Builder returns an error.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • hostResourceGroupArn

      Placement.Builder hostResourceGroupArn(String hostResourceGroupArn)

      The Amazon Resource Name (ARN) of the host resource group in which to launch build and test instances. This only applies if tenancy is host. If you specify the resource group ARN, you must not specify the host ID. If you specify both, Image Builder returns an error.

      Parameters:
      hostResourceGroupArn - The Amazon Resource Name (ARN) of the host resource group in which to launch build and test instances. This only applies if tenancy is host. If you specify the resource group ARN, you must not specify the host ID. If you specify both, Image Builder returns an error.
      Returns:
      Returns a reference to this object so that method calls can be chained together.