Interface AmiDistributionConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AmiDistributionConfiguration.Builder,,AmiDistributionConfiguration> SdkBuilder<AmiDistributionConfiguration.Builder,,AmiDistributionConfiguration> SdkPojo
- Enclosing class:
AmiDistributionConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionThe tags to apply to AMIs distributed to this Region.description(String description) The description to apply to the distributed AMI.The Amazon Resource Name (ARN) that uniquely identifies the KMS key used to encrypt the distributed image.launchPermission(Consumer<LaunchPermissionConfiguration.Builder> launchPermission) Launch permissions can be used to configure which Amazon Web Services accounts can use the AMI to launch instances.launchPermission(LaunchPermissionConfiguration launchPermission) Launch permissions can be used to configure which Amazon Web Services accounts can use the AMI to launch instances.The name of the output AMI.targetAccountIds(String... targetAccountIds) The Amazon Web Services account IDs to distribute the AMI to in this Region.targetAccountIds(Collection<String> targetAccountIds) The Amazon Web Services account IDs to distribute the AMI to in this Region.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
name
The name of the output AMI. The name must include the
{{ imagebuilder:buildDate }}dynamic tag so that each build produces a uniquely named AMI. If you don't specify a name, Image Builder names the output AMI with the image name followed by the build timestamp, for examplemy-image 2022-10-26T22-30-05.912619Z.- Parameters:
name- The name of the output AMI. The name must include the{{ imagebuilder:buildDate }}dynamic tag so that each build produces a uniquely named AMI. If you don't specify a name, Image Builder names the output AMI with the image name followed by the build timestamp, for examplemy-image 2022-10-26T22-30-05.912619Z.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description to apply to the distributed AMI. Image Builder sets this as the output AMI's description in each target Region and account. If you don't specify a description, the AMI in the build Region uses the image recipe's description, if the recipe has one. Copies distributed to other Regions and accounts don't receive a default description.
- Parameters:
description- The description to apply to the distributed AMI. Image Builder sets this as the output AMI's description in each target Region and account. If you don't specify a description, the AMI in the build Region uses the image recipe's description, if the recipe has one. Copies distributed to other Regions and accounts don't receive a default description.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetAccountIds
The Amazon Web Services account IDs to distribute the AMI to in this Region. Each listed account receives its own copy of the output AMI. If you don't specify accounts, Image Builder distributes the AMI only to your own account.
- Parameters:
targetAccountIds- The Amazon Web Services account IDs to distribute the AMI to in this Region. Each listed account receives its own copy of the output AMI. If you don't specify accounts, Image Builder distributes the AMI only to your own account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetAccountIds
The Amazon Web Services account IDs to distribute the AMI to in this Region. Each listed account receives its own copy of the output AMI. If you don't specify accounts, Image Builder distributes the AMI only to your own account.
- Parameters:
targetAccountIds- The Amazon Web Services account IDs to distribute the AMI to in this Region. Each listed account receives its own copy of the output AMI. If you don't specify accounts, Image Builder distributes the AMI only to your own account.- 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 Amazon Resource Name (ARN) that uniquely identifies the KMS key used to encrypt the distributed image. This can be either the Key ARN or the Alias ARN. For more information, see Key identifiers (KeyId) in the Key Management Service Developer Guide.
- Parameters:
kmsKeyId- The Amazon Resource Name (ARN) that uniquely identifies the KMS key used to encrypt the distributed image. This can be either the Key ARN or the Alias ARN. For more information, see Key identifiers (KeyId) in the Key Management Service Developer Guide.- 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.
-
launchPermission
default AmiDistributionConfiguration.Builder launchPermission(Consumer<LaunchPermissionConfiguration.Builder> 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 theLaunchPermissionConfiguration.Builderavoiding the need to create one manually viaLaunchPermissionConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolaunchPermission(LaunchPermissionConfiguration).- Parameters:
launchPermission- a consumer that will call methods onLaunchPermissionConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-