Class LookupMachineImage.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.LookupMachineImage.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<LookupMachineImage>
- Enclosing class:
LookupMachineImage
@Stability(Stable)
public static final class LookupMachineImage.Builder
extends Object
implements software.amazon.jsii.Builder<LookupMachineImage>
A fluent builder for
LookupMachineImage
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static LookupMachineImage.Builder
create()
Additional filters on the AMI.Name of the image (may contain wildcards).Owner account IDs or aliases.Custom userdata for this image.Look for Windows images.
-
Method Details
-
create
- Returns:
- a new instance of
LookupMachineImage.Builder
.
-
name
Name of the image (may contain wildcards).- Parameters:
name
- Name of the image (may contain wildcards). This parameter is required.- Returns:
this
-
filters
@Stability(Stable) public LookupMachineImage.Builder filters(Map<String, ? extends List<String>> filters) Additional filters on the AMI.Default: - No additional filters
- Parameters:
filters
- Additional filters on the AMI. This parameter is required.- Returns:
this
- See Also:
-
owners
Owner account IDs or aliases.Default: - All owners
- Parameters:
owners
- Owner account IDs or aliases. This parameter is required.- Returns:
this
-
userData
Custom userdata for this image.Default: - Empty user data appropriate for the platform type
- Parameters:
userData
- Custom userdata for this image. This parameter is required.- Returns:
this
-
windows
Look for Windows images.Default: false
- Parameters:
windows
- Look for Windows images. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<LookupMachineImage>
- Returns:
- a newly built instance of
LookupMachineImage
.
-