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 of the AMI distribution configuration.The KMS key identifier 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 ID of an account to which you want to distribute an image.targetAccountIds
(Collection<String> targetAccountIds) The ID of an account to which you want to distribute an image.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
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
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
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
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
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.Builder
avoiding the need to create one manually viaLaunchPermissionConfiguration.builder()
.When the
Consumer
completes,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:
-