Interface AmiDistributionConfiguration.Builder

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

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

    • name

      The name of the output AMI.

      Parameters:
      name - The name of the output AMI.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      AmiDistributionConfiguration.Builder description(String description)

      The description of the AMI distribution configuration. Minimum and maximum length are in characters.

      Parameters:
      description - The description of the AMI distribution configuration. Minimum and maximum length are in characters.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • targetAccountIds

      AmiDistributionConfiguration.Builder targetAccountIds(Collection<String> targetAccountIds)

      The ID of an account to which you want to distribute an image.

      Parameters:
      targetAccountIds - The ID of an account to which you want to distribute an image.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • targetAccountIds

      AmiDistributionConfiguration.Builder targetAccountIds(String... targetAccountIds)

      The ID of an account to which you want to distribute an image.

      Parameters:
      targetAccountIds - The ID of an account to which you want to distribute an image.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • amiTags

      The tags to apply to AMIs distributed to this Region.

      Parameters:
      amiTags - The tags to apply to AMIs distributed to this Region.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • kmsKeyId

      The KMS key identifier used to encrypt the distributed image.

      Parameters:
      kmsKeyId - The KMS key identifier used to encrypt the distributed image.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • launchPermission

      Launch permissions can be used to configure which Amazon Web Services accounts can use the AMI to launch instances.

      Parameters:
      launchPermission - Launch permissions can be used to configure which Amazon Web Services accounts can use the AMI to launch instances.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • launchPermission

      Launch permissions can be used to configure which Amazon Web Services accounts can use the AMI to launch instances.

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

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

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