Imports a Windows operating system image from a verified Microsoft ISO disk file¶
Description¶
Imports a Windows operating system image from a verified Microsoft ISO disk file. The following disk images are supported:
- Windows 11 Enterprise
The response returns as soon as Image Builder creates the new image resource in the PENDING state. The conversion from ISO file to AMI then runs asynchronously on an EC2 instance that Image Builder launches with the specified infrastructure configuration.
Usage¶
imagebuilder_import_disk_image(name, semanticVersion, description,
platform, osVersion, executionRole, infrastructureConfigurationArn, uri,
loggingConfiguration, tags, registerImageOptions, windowsConfiguration,
clientToken)
Arguments¶
-
name[required] 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.
-
semanticVersion[required] The semantic version to attach to the image that's created during the import process. This version follows the semantic version syntax.
-
descriptionThe description for your disk image import.
-
platform[required] The operating system platform for the imported image. Allowed values include the following:
Windows. -
osVersion[required] The operating system version for the imported image. The only supported value is
Microsoft Windows 11. -
executionRoleThe 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.
-
infrastructureConfigurationArn[required] 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.
-
uri[required] 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. -
loggingConfigurationThe 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. -
tagsTags that are attached to image resources created from the import.
-
registerImageOptionsConfigures Secure Boot and UEFI settings for the imported image.
-
windowsConfigurationSpecifies Windows settings for ISO imports.
-
clientToken[required] 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.
Value¶
A list with the following syntax:
Request syntax¶
svc$import_disk_image(
name = "string",
semanticVersion = "string",
description = "string",
platform = "string",
osVersion = "string",
executionRole = "string",
infrastructureConfigurationArn = "string",
uri = "string",
loggingConfiguration = list(
logGroupName = "string"
),
tags = list(
"string"
),
registerImageOptions = list(
secureBootEnabled = TRUE|FALSE,
uefiData = "string"
),
windowsConfiguration = list(
imageIndex = 123
),
clientToken = "string"
)