Interface AmiDistributionConfiguration.Builder

    • Method Detail

      • name

        AmiDistributionConfiguration.Builder name​(String 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

        AmiDistributionConfiguration.Builder amiTags​(Map<String,​String> 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

        AmiDistributionConfiguration.Builder kmsKeyId​(String 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

        AmiDistributionConfiguration.Builder launchPermission​(LaunchPermissionConfiguration 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.