Interface ImportDiskImageRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<ImportDiskImageRequest.Builder,,ImportDiskImageRequest> ImagebuilderRequest.Builder,SdkBuilder<ImportDiskImageRequest.Builder,,ImportDiskImageRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
ImportDiskImageRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken(String clientToken) A unique, case-sensitive identifier you provide to ensure that the operation runs no more than one time.description(String description) The description for your disk image import.executionRole(String executionRole) The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to perform workflow actions to import an image from a Microsoft ISO file.infrastructureConfigurationArn(String infrastructureConfigurationArn) The Amazon Resource Name (ARN) of the infrastructure configuration resource that's used for launching the EC2 instance on which the ISO image is built.default ImportDiskImageRequest.BuilderloggingConfiguration(Consumer<ImageLoggingConfiguration.Builder> loggingConfiguration) The CloudWatch Logs log group where Image Builder sends the import logs.loggingConfiguration(ImageLoggingConfiguration loggingConfiguration) The CloudWatch Logs log group where Image Builder sends the import logs.The name of the image resource that's created from the import.The operating system version for the imported image.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The operating system platform for the imported image.default ImportDiskImageRequest.BuilderregisterImageOptions(Consumer<RegisterImageOptions.Builder> registerImageOptions) Configures Secure Boot and UEFI settings for the imported image.registerImageOptions(RegisterImageOptions registerImageOptions) Configures Secure Boot and UEFI settings for the imported image.semanticVersion(String semanticVersion) The semantic version to attach to the image that's created during the import process.Tags that are attached to image resources created from the import.Theuriof the ISO disk file that's stored in Amazon S3, ins3://bucket/keyformat.default ImportDiskImageRequest.BuilderwindowsConfiguration(Consumer<WindowsConfiguration.Builder> windowsConfiguration) Specifies Windows settings for ISO imports.windowsConfiguration(WindowsConfiguration windowsConfiguration) Specifies Windows settings for ISO imports.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.imagebuilder.model.ImagebuilderRequest.Builder
buildMethods 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 image resource that's created from the import. Image Builder generates the image ARN from a normalized form of the name, so names that differ only in case, spaces, or underscores count as the same name. If an image with the same name and semantic version already exists in your account in the same Amazon Web Services Region, the import creates a new build version for it.
- Parameters:
name- The name of the image resource that's created from the import. Image Builder generates the image ARN from a normalized form of the name, so names that differ only in case, spaces, or underscores count as the same name. If an image with the same name and semantic version already exists in your account in the same Amazon Web Services Region, the import creates a new build version for it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
semanticVersion
The semantic version to attach to the image that's created during the import process. This version follows the semantic version syntax.
- Parameters:
semanticVersion- The semantic version to attach to the image that's created during the import process. This version follows the semantic version syntax.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description for your disk image import.
- Parameters:
description- The description for your disk image import.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
platform
The operating system platform for the imported image. Allowed values include the following:
Windows.- Parameters:
platform- The operating system platform for the imported image. Allowed values include the following:Windows.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
osVersion
The operating system version for the imported image. The only supported value is
Microsoft Windows 11.- Parameters:
osVersion- The operating system version for the imported image. The only supported value isMicrosoft Windows 11.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
executionRole
The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to perform workflow actions to import an image from a Microsoft ISO file. If you don't provide a role, Image Builder uses the Image Builder service-linked role in your account, and creates it if it doesn't exist.
- Parameters:
executionRole- The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to perform workflow actions to import an image from a Microsoft ISO file. If you don't provide a role, Image Builder uses the Image Builder service-linked role in your account, and creates it if it doesn't exist.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
infrastructureConfigurationArn
ImportDiskImageRequest.Builder infrastructureConfigurationArn(String infrastructureConfigurationArn) The Amazon Resource Name (ARN) of the infrastructure configuration resource that's used for launching the EC2 instance on which the ISO image is built.
- Parameters:
infrastructureConfigurationArn- The Amazon Resource Name (ARN) of the infrastructure configuration resource that's used for launching the EC2 instance on which the ISO image is built.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
uri
The
uriof the ISO disk file that's stored in Amazon S3, ins3://bucket/keyformat. The key must end with the.iso,.ISO, or.Isoextension, and the bucket must be owned by the account that makes the request.- Parameters:
uri- Theuriof the ISO disk file that's stored in Amazon S3, ins3://bucket/keyformat. The key must end with the.iso,.ISO, or.Isoextension, and the bucket must be owned by the account that makes the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
loggingConfiguration
The CloudWatch Logs log group where Image Builder sends the import logs. If you specify a log group name outside of the
/aws/imagebuilder/namespace, you must also provide anexecutionRolethat has permission to write to that log group.- Parameters:
loggingConfiguration- The CloudWatch Logs log group where Image Builder sends the import logs. If you specify a log group name outside of the/aws/imagebuilder/namespace, you must also provide anexecutionRolethat has permission to write to that log group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
loggingConfiguration
default ImportDiskImageRequest.Builder loggingConfiguration(Consumer<ImageLoggingConfiguration.Builder> loggingConfiguration) The CloudWatch Logs log group where Image Builder sends the import logs. If you specify a log group name outside of the
This is a convenience method that creates an instance of the/aws/imagebuilder/namespace, you must also provide anexecutionRolethat has permission to write to that log group.ImageLoggingConfiguration.Builderavoiding the need to create one manually viaImageLoggingConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tologgingConfiguration(ImageLoggingConfiguration).- Parameters:
loggingConfiguration- a consumer that will call methods onImageLoggingConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
Tags that are attached to image resources created from the import.
- Parameters:
tags- Tags that are attached to image resources created from the import.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
registerImageOptions
Configures Secure Boot and UEFI settings for the imported image.
- Parameters:
registerImageOptions- Configures Secure Boot and UEFI settings for the imported image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
registerImageOptions
default ImportDiskImageRequest.Builder registerImageOptions(Consumer<RegisterImageOptions.Builder> registerImageOptions) Configures Secure Boot and UEFI settings for the imported image.
This is a convenience method that creates an instance of theRegisterImageOptions.Builderavoiding the need to create one manually viaRegisterImageOptions.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toregisterImageOptions(RegisterImageOptions).- Parameters:
registerImageOptions- a consumer that will call methods onRegisterImageOptions.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
windowsConfiguration
Specifies Windows settings for ISO imports.
- Parameters:
windowsConfiguration- Specifies Windows settings for ISO imports.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
windowsConfiguration
default ImportDiskImageRequest.Builder windowsConfiguration(Consumer<WindowsConfiguration.Builder> windowsConfiguration) Specifies Windows settings for ISO imports.
This is a convenience method that creates an instance of theWindowsConfiguration.Builderavoiding the need to create one manually viaWindowsConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed towindowsConfiguration(WindowsConfiguration).- Parameters:
windowsConfiguration- a consumer that will call methods onWindowsConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
clientToken
A unique, case-sensitive identifier you provide to ensure that the operation runs no more than one time. If you retry a request with the same client token, Image Builder returns the original response without running the operation again. For more information, see Ensuring idempotency in the Amazon EC2 API Reference.
- Parameters:
clientToken- A unique, case-sensitive identifier you provide to ensure that the operation runs no more than one time. If you retry a request with the same client token, Image Builder returns the original response without running the operation again. For more information, see Ensuring idempotency in the Amazon EC2 API Reference.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
ImportDiskImageRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
ImportDiskImageRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-