GetImage autoit Example
; This example requires the Chilkat API to have been previously unlocked.
; See Global Unlock Sample for sample code.
$oRest = ObjCreate("Chilkat_9_5_0.Rest")
Local $bSuccess
$oAuthAws = ObjCreate("Chilkat_9_5_0.AuthAws")
$oAuthAws.AccessKey = "AWS_ACCESS_KEY"
$oAuthAws.SecretKey = "AWS_SECRET_KEY"
; Don't forget to change the region to your particular region. (Also make the same change in the call to Connect below.)
$oAuthAws.Region = "us-west-2"
$oAuthAws.ServiceName = "imagebuilder"
; SetAuthAws causes Chilkat to automatically add the following headers: Authorization, X-Amz-Date
$oRest.SetAuthAws($oAuthAws)
; URL: https://imagebuilder.us-west-2.amazonaws.com/
; Use the same region as specified above.
$bSuccess = $oRest.Connect("imagebuilder.us-west-2.amazonaws.com",443,True,True)
If ($bSuccess <> True) Then
ConsoleWrite("ConnectFailReason: " & $oRest.ConnectFailReason & @CRLF)
ConsoleWrite($oRest.LastErrorText & @CRLF)
Exit
EndIf
$oRest.AddHeader("Content-Type","application/x-amz-json-1.1")
$oRest.AddHeader("X-Amz-Target","GetImage")
$oSbResponseBody = ObjCreate("Chilkat_9_5_0.StringBuilder")
$bSuccess = $oRest.FullRequestNoBodySb("GET","/GetImage",$oSbResponseBody)
If ($bSuccess <> True) Then
ConsoleWrite($oRest.LastErrorText & @CRLF)
Exit
EndIf
Local $iRespStatusCode = $oRest.ResponseStatusCode
ConsoleWrite("response status code = " & $iRespStatusCode & @CRLF)
If ($iRespStatusCode <> 200) Then
ConsoleWrite("Response Header:" & @CRLF)
ConsoleWrite($oRest.ResponseHeader & @CRLF)
ConsoleWrite("Response Body:" & @CRLF)
ConsoleWrite($oSbResponseBody.GetAsString() & @CRLF)
Exit
EndIf
$oJResp = ObjCreate("Chilkat_9_5_0.JsonObject")
$oJResp.LoadSb($oSbResponseBody)
; The following code parses the JSON response.
; A sample JSON response is shown below the sample code.
; Use this online tool to generate parsing code from sample JSON:
; Generate Parsing Code from JSON
Local $sComponentArn
Local $iJ
Local $iCount_j
Local $sName
Local $iK
Local $iCount_k
Local $strVal
Local $sDeviceName
Local $iDeleteOnTermination
Local $iEbsEncrypted
Local $iIops
Local $sEbsKmsKeyId
Local $sSnapshotId
Local $iThroughput
Local $iVolumeSize
Local $sVolumeType
Local $sNoDevice
Local $sVirtualName
Local $sAmiTagsString
Local $sAmiDistributionConfigurationDescription
Local $sAmiDistributionConfigurationKmsKeyId
Local $sAmiDistributionConfigurationName
Local $sContainerDistributionConfigurationDescription
Local $sTargetRepositoryRepositoryName
Local $sTargetRepositoryService
Local $sRegion
Local $sDiskImageFormat
Local $sRoleName
Local $sS3Bucket
Local $sS3Prefix
Local $sAccountId
Local $iEnabled
Local $sLaunchTemplateId
Local $sLaunchTemplateName
Local $sLaunchTemplateVersion
Local $iMaxParallelLaunches
Local $iTargetResourceCount
Local $sLaunchTemplateId
Local $iSetDefaultVersion
Local $iEbsDeleteOnTermination
Local $iEbsIops
Local $sEbsSnapshotId
Local $iEbsThroughput
Local $iEbsVolumeSize
Local $sEbsVolumeType
Local $sDescription
Local $sImage
Local $stateReason
Local $stateStatus
Local $sArn = $oJResp.StringOf("image.arn")
Local $sBuildType = $oJResp.StringOf("image.buildType")
Local $sContainerRecipeArn = $oJResp.StringOf("image.containerRecipe.arn")
Local $sContainerType = $oJResp.StringOf("image.containerRecipe.containerType")
Local $sDateCreated = $oJResp.StringOf("image.containerRecipe.dateCreated")
Local $sDescription = $oJResp.StringOf("image.containerRecipe.description")
Local $sDockerfileTemplateData = $oJResp.StringOf("image.containerRecipe.dockerfileTemplateData")
Local $iEncrypted = $oJResp.IntOf("image.containerRecipe.encrypted")
Local $sImage = $oJResp.StringOf("image.containerRecipe.instanceConfiguration.image")
Local $sKmsKeyId = $oJResp.StringOf("image.containerRecipe.kmsKeyId")
Local $sName = $oJResp.StringOf("image.containerRecipe.name")
Local $sOwner = $oJResp.StringOf("image.containerRecipe.owner")
Local $sParentImage = $oJResp.StringOf("image.containerRecipe.parentImage")
Local $sPlatform = $oJResp.StringOf("image.containerRecipe.platform")
Local $sV_String = $oJResp.StringOf("image.containerRecipe.tags.string")
Local $sRepositoryName = $oJResp.StringOf("image.containerRecipe.targetRepository.repositoryName")
Local $sService = $oJResp.StringOf("image.containerRecipe.targetRepository.service")
Local $sVersion = $oJResp.StringOf("image.containerRecipe.version")
Local $sWorkingDirectory = $oJResp.StringOf("image.containerRecipe.workingDirectory")
Local $sImageDateCreated = $oJResp.StringOf("image.dateCreated")
Local $sDistributionConfigurationArn = $oJResp.StringOf("image.distributionConfiguration.arn")
Local $sDistributionConfigurationDateCreated = $oJResp.StringOf("image.distributionConfiguration.dateCreated")
Local $sDateUpdated = $oJResp.StringOf("image.distributionConfiguration.dateUpdated")
Local $sDistributionConfigurationDescription = $oJResp.StringOf("image.distributionConfiguration.description")
Local $sDistributionConfigurationName = $oJResp.StringOf("image.distributionConfiguration.name")
Local $sTagsString = $oJResp.StringOf("image.distributionConfiguration.tags.string")
Local $iTimeoutMinutes = $oJResp.IntOf("image.distributionConfiguration.timeoutMinutes")
Local $iEnhancedImageMetadataEnabled = $oJResp.IntOf("image.enhancedImageMetadataEnabled")
Local $iUninstallAfterBuild = $oJResp.IntOf("image.imageRecipe.additionalInstanceConfiguration.systemsManagerAgent.uninstallAfterBuild")
Local $sUserDataOverride = $oJResp.StringOf("image.imageRecipe.additionalInstanceConfiguration.userDataOverride")
Local $sImageRecipeArn = $oJResp.StringOf("image.imageRecipe.arn")
Local $sImageRecipeDateCreated = $oJResp.StringOf("image.imageRecipe.dateCreated")
Local $sImageRecipeDescription = $oJResp.StringOf("image.imageRecipe.description")
Local $sImageRecipeName = $oJResp.StringOf("image.imageRecipe.name")
Local $sImageRecipeOwner = $oJResp.StringOf("image.imageRecipe.owner")
Local $sImageRecipeParentImage = $oJResp.StringOf("image.imageRecipe.parentImage")
Local $sImageRecipePlatform = $oJResp.StringOf("image.imageRecipe.platform")
$sTagsString = $oJResp.StringOf("image.imageRecipe.tags.string")
Local $sV_Type = $oJResp.StringOf("image.imageRecipe.type")
Local $sImageRecipeVersion = $oJResp.StringOf("image.imageRecipe.version")
Local $sImageRecipeWorkingDirectory = $oJResp.StringOf("image.imageRecipe.workingDirectory")
Local $iImageTestsEnabled = $oJResp.IntOf("image.imageTestsConfiguration.imageTestsEnabled")
Local $iImageTestsConfigurationTimeoutMinutes = $oJResp.IntOf("image.imageTestsConfiguration.timeoutMinutes")
Local $sInfrastructureConfigurationArn = $oJResp.StringOf("image.infrastructureConfiguration.arn")
Local $sInfrastructureConfigurationDateCreated = $oJResp.StringOf("image.infrastructureConfiguration.dateCreated")
Local $sInfrastructureConfigurationDateUpdated = $oJResp.StringOf("image.infrastructureConfiguration.dateUpdated")
Local $sInfrastructureConfigurationDescription = $oJResp.StringOf("image.infrastructureConfiguration.description")
Local $iHttpPutResponseHopLimit = $oJResp.IntOf("image.infrastructureConfiguration.instanceMetadataOptions.httpPutResponseHopLimit")
Local $sHttpTokens = $oJResp.StringOf("image.infrastructureConfiguration.instanceMetadataOptions.httpTokens")
Local $sInstanceProfileName = $oJResp.StringOf("image.infrastructureConfiguration.instanceProfileName")
Local $sKeyPair = $oJResp.StringOf("image.infrastructureConfiguration.keyPair")
Local $sS3BucketName = $oJResp.StringOf("image.infrastructureConfiguration.logging.s3Logs.s3BucketName")
Local $sS3KeyPrefix = $oJResp.StringOf("image.infrastructureConfiguration.logging.s3Logs.s3KeyPrefix")
Local $sInfrastructureConfigurationName = $oJResp.StringOf("image.infrastructureConfiguration.name")
Local $sResourceTagsString = $oJResp.StringOf("image.infrastructureConfiguration.resourceTags.string")
Local $sSnsTopicArn = $oJResp.StringOf("image.infrastructureConfiguration.snsTopicArn")
Local $sSubnetId = $oJResp.StringOf("image.infrastructureConfiguration.subnetId")
$sTagsString = $oJResp.StringOf("image.infrastructureConfiguration.tags.string")
Local $iTerminateInstanceOnFailure = $oJResp.IntOf("image.infrastructureConfiguration.terminateInstanceOnFailure")
Local $sImageName = $oJResp.StringOf("image.name")
Local $sOsVersion = $oJResp.StringOf("image.osVersion")
Local $sImagePlatform = $oJResp.StringOf("image.platform")
Local $sSourcePipelineArn = $oJResp.StringOf("image.sourcePipelineArn")
Local $sSourcePipelineName = $oJResp.StringOf("image.sourcePipelineName")
Local $sReason = $oJResp.StringOf("image.state.reason")
Local $sStatus = $oJResp.StringOf("image.state.status")
$sTagsString = $oJResp.StringOf("image.tags.string")
Local $sImageType = $oJResp.StringOf("image.type")
Local $sImageVersion = $oJResp.StringOf("image.version")
Local $sRequestId = $oJResp.StringOf("requestId")
Local $i = 0
Local $iCount_i = $oJResp.SizeOfArray("image.containerRecipe.components")
While $i < $iCount_i
$oJResp.I = $i
$sComponentArn = $oJResp.StringOf("image.containerRecipe.components[i].componentArn")
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("image.containerRecipe.components[i].parameters")
While $iJ < $iCount_j
$oJResp.J = $iJ
$sName = $oJResp.StringOf("image.containerRecipe.components[i].parameters[j].name")
$iK = 0
$iCount_k = $oJResp.SizeOfArray("image.containerRecipe.components[i].parameters[j].value")
While $iK < $iCount_k
$oJResp.K = $iK
$strVal = $oJResp.StringOf("image.containerRecipe.components[i].parameters[j].value[k]")
$iK = $iK + 1
Wend
$iJ = $iJ + 1
Wend
$i = $i + 1
Wend
$i = 0
$iCount_i = $oJResp.SizeOfArray("image.containerRecipe.instanceConfiguration.blockDeviceMappings")
While $i < $iCount_i
$oJResp.I = $i
$sDeviceName = $oJResp.StringOf("image.containerRecipe.instanceConfiguration.blockDeviceMappings[i].deviceName")
$iDeleteOnTermination = $oJResp.IntOf("image.containerRecipe.instanceConfiguration.blockDeviceMappings[i].ebs.deleteOnTermination")
$iEbsEncrypted = $oJResp.IntOf("image.containerRecipe.instanceConfiguration.blockDeviceMappings[i].ebs.encrypted")
$iIops = $oJResp.IntOf("image.containerRecipe.instanceConfiguration.blockDeviceMappings[i].ebs.iops")
$sEbsKmsKeyId = $oJResp.StringOf("image.containerRecipe.instanceConfiguration.blockDeviceMappings[i].ebs.kmsKeyId")
$sSnapshotId = $oJResp.StringOf("image.containerRecipe.instanceConfiguration.blockDeviceMappings[i].ebs.snapshotId")
$iThroughput = $oJResp.IntOf("image.containerRecipe.instanceConfiguration.blockDeviceMappings[i].ebs.throughput")
$iVolumeSize = $oJResp.IntOf("image.containerRecipe.instanceConfiguration.blockDeviceMappings[i].ebs.volumeSize")
$sVolumeType = $oJResp.StringOf("image.containerRecipe.instanceConfiguration.blockDeviceMappings[i].ebs.volumeType")
$sNoDevice = $oJResp.StringOf("image.containerRecipe.instanceConfiguration.blockDeviceMappings[i].noDevice")
$sVirtualName = $oJResp.StringOf("image.containerRecipe.instanceConfiguration.blockDeviceMappings[i].virtualName")
$i = $i + 1
Wend
$i = 0
$iCount_i = $oJResp.SizeOfArray("image.distributionConfiguration.distributions")
While $i < $iCount_i
$oJResp.I = $i
$sAmiTagsString = $oJResp.StringOf("image.distributionConfiguration.distributions[i].amiDistributionConfiguration.amiTags.string")
$sAmiDistributionConfigurationDescription = $oJResp.StringOf("image.distributionConfiguration.distributions[i].amiDistributionConfiguration.description")
$sAmiDistributionConfigurationKmsKeyId = $oJResp.StringOf("image.distributionConfiguration.distributions[i].amiDistributionConfiguration.kmsKeyId")
$sAmiDistributionConfigurationName = $oJResp.StringOf("image.distributionConfiguration.distributions[i].amiDistributionConfiguration.name")
$sContainerDistributionConfigurationDescription = $oJResp.StringOf("image.distributionConfiguration.distributions[i].containerDistributionConfiguration.description")
$sTargetRepositoryRepositoryName = $oJResp.StringOf("image.distributionConfiguration.distributions[i].containerDistributionConfiguration.targetRepository.repositoryName")
$sTargetRepositoryService = $oJResp.StringOf("image.distributionConfiguration.distributions[i].containerDistributionConfiguration.targetRepository.service")
$sRegion = $oJResp.StringOf("image.distributionConfiguration.distributions[i].region")
$sDiskImageFormat = $oJResp.StringOf("image.distributionConfiguration.distributions[i].s3ExportConfiguration.diskImageFormat")
$sRoleName = $oJResp.StringOf("image.distributionConfiguration.distributions[i].s3ExportConfiguration.roleName")
$sS3Bucket = $oJResp.StringOf("image.distributionConfiguration.distributions[i].s3ExportConfiguration.s3Bucket")
$sS3Prefix = $oJResp.StringOf("image.distributionConfiguration.distributions[i].s3ExportConfiguration.s3Prefix")
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("image.distributionConfiguration.distributions[i].amiDistributionConfiguration.launchPermission.organizationalUnitArns")
While $iJ < $iCount_j
$oJResp.J = $iJ
$strVal = $oJResp.StringOf("image.distributionConfiguration.distributions[i].amiDistributionConfiguration.launchPermission.organizationalUnitArns[j]")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("image.distributionConfiguration.distributions[i].amiDistributionConfiguration.launchPermission.organizationArns")
While $iJ < $iCount_j
$oJResp.J = $iJ
$strVal = $oJResp.StringOf("image.distributionConfiguration.distributions[i].amiDistributionConfiguration.launchPermission.organizationArns[j]")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("image.distributionConfiguration.distributions[i].amiDistributionConfiguration.launchPermission.userGroups")
While $iJ < $iCount_j
$oJResp.J = $iJ
$strVal = $oJResp.StringOf("image.distributionConfiguration.distributions[i].amiDistributionConfiguration.launchPermission.userGroups[j]")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("image.distributionConfiguration.distributions[i].amiDistributionConfiguration.launchPermission.userIds")
While $iJ < $iCount_j
$oJResp.J = $iJ
$strVal = $oJResp.StringOf("image.distributionConfiguration.distributions[i].amiDistributionConfiguration.launchPermission.userIds[j]")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("image.distributionConfiguration.distributions[i].amiDistributionConfiguration.targetAccountIds")
While $iJ < $iCount_j
$oJResp.J = $iJ
$strVal = $oJResp.StringOf("image.distributionConfiguration.distributions[i].amiDistributionConfiguration.targetAccountIds[j]")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("image.distributionConfiguration.distributions[i].containerDistributionConfiguration.containerTags")
While $iJ < $iCount_j
$oJResp.J = $iJ
$strVal = $oJResp.StringOf("image.distributionConfiguration.distributions[i].containerDistributionConfiguration.containerTags[j]")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("image.distributionConfiguration.distributions[i].fastLaunchConfigurations")
While $iJ < $iCount_j
$oJResp.J = $iJ
$sAccountId = $oJResp.StringOf("image.distributionConfiguration.distributions[i].fastLaunchConfigurations[j].accountId")
$iEnabled = $oJResp.IntOf("image.distributionConfiguration.distributions[i].fastLaunchConfigurations[j].enabled")
$sLaunchTemplateId = $oJResp.StringOf("image.distributionConfiguration.distributions[i].fastLaunchConfigurations[j].launchTemplate.launchTemplateId")
$sLaunchTemplateName = $oJResp.StringOf("image.distributionConfiguration.distributions[i].fastLaunchConfigurations[j].launchTemplate.launchTemplateName")
$sLaunchTemplateVersion = $oJResp.StringOf("image.distributionConfiguration.distributions[i].fastLaunchConfigurations[j].launchTemplate.launchTemplateVersion")
$iMaxParallelLaunches = $oJResp.IntOf("image.distributionConfiguration.distributions[i].fastLaunchConfigurations[j].maxParallelLaunches")
$iTargetResourceCount = $oJResp.IntOf("image.distributionConfiguration.distributions[i].fastLaunchConfigurations[j].snapshotConfiguration.targetResourceCount")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("image.distributionConfiguration.distributions[i].launchTemplateConfigurations")
While $iJ < $iCount_j
$oJResp.J = $iJ
$sAccountId = $oJResp.StringOf("image.distributionConfiguration.distributions[i].launchTemplateConfigurations[j].accountId")
$sLaunchTemplateId = $oJResp.StringOf("image.distributionConfiguration.distributions[i].launchTemplateConfigurations[j].launchTemplateId")
$iSetDefaultVersion = $oJResp.IntOf("image.distributionConfiguration.distributions[i].launchTemplateConfigurations[j].setDefaultVersion")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("image.distributionConfiguration.distributions[i].licenseConfigurationArns")
While $iJ < $iCount_j
$oJResp.J = $iJ
$strVal = $oJResp.StringOf("image.distributionConfiguration.distributions[i].licenseConfigurationArns[j]")
$iJ = $iJ + 1
Wend
$i = $i + 1
Wend
$i = 0
$iCount_i = $oJResp.SizeOfArray("image.imageRecipe.blockDeviceMappings")
While $i < $iCount_i
$oJResp.I = $i
$sDeviceName = $oJResp.StringOf("image.imageRecipe.blockDeviceMappings[i].deviceName")
$iEbsDeleteOnTermination = $oJResp.IntOf("image.imageRecipe.blockDeviceMappings[i].ebs.deleteOnTermination")
$iEbsEncrypted = $oJResp.IntOf("image.imageRecipe.blockDeviceMappings[i].ebs.encrypted")
$iEbsIops = $oJResp.IntOf("image.imageRecipe.blockDeviceMappings[i].ebs.iops")
$sEbsKmsKeyId = $oJResp.StringOf("image.imageRecipe.blockDeviceMappings[i].ebs.kmsKeyId")
$sEbsSnapshotId = $oJResp.StringOf("image.imageRecipe.blockDeviceMappings[i].ebs.snapshotId")
$iEbsThroughput = $oJResp.IntOf("image.imageRecipe.blockDeviceMappings[i].ebs.throughput")
$iEbsVolumeSize = $oJResp.IntOf("image.imageRecipe.blockDeviceMappings[i].ebs.volumeSize")
$sEbsVolumeType = $oJResp.StringOf("image.imageRecipe.blockDeviceMappings[i].ebs.volumeType")
$sNoDevice = $oJResp.StringOf("image.imageRecipe.blockDeviceMappings[i].noDevice")
$sVirtualName = $oJResp.StringOf("image.imageRecipe.blockDeviceMappings[i].virtualName")
$i = $i + 1
Wend
$i = 0
$iCount_i = $oJResp.SizeOfArray("image.imageRecipe.components")
While $i < $iCount_i
$oJResp.I = $i
$sComponentArn = $oJResp.StringOf("image.imageRecipe.components[i].componentArn")
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("image.imageRecipe.components[i].parameters")
While $iJ < $iCount_j
$oJResp.J = $iJ
$sName = $oJResp.StringOf("image.imageRecipe.components[i].parameters[j].name")
$iK = 0
$iCount_k = $oJResp.SizeOfArray("image.imageRecipe.components[i].parameters[j].value")
While $iK < $iCount_k
$oJResp.K = $iK
$strVal = $oJResp.StringOf("image.imageRecipe.components[i].parameters[j].value[k]")
$iK = $iK + 1
Wend
$iJ = $iJ + 1
Wend
$i = $i + 1
Wend
$i = 0
$iCount_i = $oJResp.SizeOfArray("image.infrastructureConfiguration.instanceTypes")
While $i < $iCount_i
$oJResp.I = $i
$strVal = $oJResp.StringOf("image.infrastructureConfiguration.instanceTypes[i]")
$i = $i + 1
Wend
$i = 0
$iCount_i = $oJResp.SizeOfArray("image.infrastructureConfiguration.securityGroupIds")
While $i < $iCount_i
$oJResp.I = $i
$strVal = $oJResp.StringOf("image.infrastructureConfiguration.securityGroupIds[i]")
$i = $i + 1
Wend
$i = 0
$iCount_i = $oJResp.SizeOfArray("image.outputResources.amis")
While $i < $iCount_i
$oJResp.I = $i
$sAccountId = $oJResp.StringOf("image.outputResources.amis[i].accountId")
$sDescription = $oJResp.StringOf("image.outputResources.amis[i].description")
$sImage = $oJResp.StringOf("image.outputResources.amis[i].image")
$sName = $oJResp.StringOf("image.outputResources.amis[i].name")
$sRegion = $oJResp.StringOf("image.outputResources.amis[i].region")
$stateReason = $oJResp.StringOf("image.outputResources.amis[i].state.reason")
$stateStatus = $oJResp.StringOf("image.outputResources.amis[i].state.status")
$i = $i + 1
Wend
$i = 0
$iCount_i = $oJResp.SizeOfArray("image.outputResources.containers")
While $i < $iCount_i
$oJResp.I = $i
$sRegion = $oJResp.StringOf("image.outputResources.containers[i].region")
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("image.outputResources.containers[i].imageUris")
While $iJ < $iCount_j
$oJResp.J = $iJ
$strVal = $oJResp.StringOf("image.outputResources.containers[i].imageUris[j]")
$iJ = $iJ + 1
Wend
$i = $i + 1
Wend
; A sample JSON response body parsed by the above code:
; {
; "image": {
; "arn": "string",
; "buildType": "string",
; "containerRecipe": {
; "arn": "string",
; "components": [
; {
; "componentArn": "string",
; "parameters": [
; {
; "name": "string",
; "value": [
; "string"
; ]
; }
; ]
; }
; ],
; "containerType": "string",
; "dateCreated": "string",
; "description": "string",
; "dockerfileTemplateData": "string",
; "encrypted": boolean,
; "instanceConfiguration": {
; "blockDeviceMappings": [
; {
; "deviceName": "string",
; "ebs": {
; "deleteOnTermination": boolean,
; "encrypted": boolean,
; "iops": number,
; "kmsKeyId": "string",
; "snapshotId": "string",
; "throughput": number,
; "volumeSize": number,
; "volumeType": "string"
; },
; "noDevice": "string",
; "virtualName": "string"
; }
; ],
; "image": "string"
; },
; "kmsKeyId": "string",
; "name": "string",
; "owner": "string",
; "parentImage": "string",
; "platform": "string",
; "tags": {
; "string": "string"
; },
; "targetRepository": {
; "repositoryName": "string",
; "service": "string"
; },
; "version": "string",
; "workingDirectory": "string"
; },
; "dateCreated": "string",
; "distributionConfiguration": {
; "arn": "string",
; "dateCreated": "string",
; "dateUpdated": "string",
; "description": "string",
; "distributions": [
; {
; "amiDistributionConfiguration": {
; "amiTags": {
; "string": "string"
; },
; "description": "string",
; "kmsKeyId": "string",
; "launchPermission": {
; "organizationalUnitArns": [
; "string"
; ],
; "organizationArns": [
; "string"
; ],
; "userGroups": [
; "string"
; ],
; "userIds": [
; "string"
; ]
; },
; "name": "string",
; "targetAccountIds": [
; "string"
; ]
; },
; "containerDistributionConfiguration": {
; "containerTags": [
; "string"
; ],
; "description": "string",
; "targetRepository": {
; "repositoryName": "string",
; "service": "string"
; }
; },
; "fastLaunchConfigurations": [
; {
; "accountId": "string",
; "enabled": boolean,
; "launchTemplate": {
; "launchTemplateId": "string",
; "launchTemplateName": "string",
; "launchTemplateVersion": "string"
; },
; "maxParallelLaunches": number,
; "snapshotConfiguration": {
; "targetResourceCount": number
; }
; }
; ],
; "launchTemplateConfigurations": [
; {
; "accountId": "string",
; "launchTemplateId": "string",
; "setDefaultVersion": boolean
; }
; ],
; "licenseConfigurationArns": [
; "string"
; ],
; "region": "string",
; "s3ExportConfiguration": {
; "diskImageFormat": "string",
; "roleName": "string",
; "s3Bucket": "string",
; "s3Prefix": "string"
; }
; }
; ],
; "name": "string",
; "tags": {
; "string": "string"
; },
; "timeoutMinutes": number
; },
; "enhancedImageMetadataEnabled": boolean,
; "imageRecipe": {
; "additionalInstanceConfiguration": {
; "systemsManagerAgent": {
; "uninstallAfterBuild": boolean
; },
; "userDataOverride": "string"
; },
; "arn": "string",
; "blockDeviceMappings": [
; {
; "deviceName": "string",
; "ebs": {
; "deleteOnTermination": boolean,
; "encrypted": boolean,
; "iops": number,
; "kmsKeyId": "string",
; "snapshotId": "string",
; "throughput": number,
; "volumeSize": number,
; "volumeType": "string"
; },
; "noDevice": "string",
; "virtualName": "string"
; }
; ],
; "components": [
; {
; "componentArn": "string",
; "parameters": [
; {
; "name": "string",
; "value": [
; "string"
; ]
; }
; ]
; }
; ],
; "dateCreated": "string",
; "description": "string",
; "name": "string",
; "owner": "string",
; "parentImage": "string",
; "platform": "string",
; "tags": {
; "string": "string"
; },
; "type": "string",
; "version": "string",
; "workingDirectory": "string"
; },
; "imageTestsConfiguration": {
; "imageTestsEnabled": boolean,
; "timeoutMinutes": number
; },
; "infrastructureConfiguration": {
; "arn": "string",
; "dateCreated": "string",
; "dateUpdated": "string",
; "description": "string",
; "instanceMetadataOptions": {
; "httpPutResponseHopLimit": number,
; "httpTokens": "string"
; },
; "instanceProfileName": "string",
; "instanceTypes": [
; "string"
; ],
; "keyPair": "string",
; "logging": {
; "s3Logs": {
; "s3BucketName": "string",
; "s3KeyPrefix": "string"
; }
; },
; "name": "string",
; "resourceTags": {
; "string": "string"
; },
; "securityGroupIds": [
; "string"
; ],
; "snsTopicArn": "string",
; "subnetId": "string",
; "tags": {
; "string": "string"
; },
; "terminateInstanceOnFailure": boolean
; },
; "name": "string",
; "osVersion": "string",
; "outputResources": {
; "amis": [
; {
; "accountId": "string",
; "description": "string",
; "image": "string",
; "name": "string",
; "region": "string",
; "state": {
; "reason": "string",
; "status": "string"
; }
; }
; ],
; "containers": [
; {
; "imageUris": [
; "string"
; ],
; "region": "string"
; }
; ]
; },
; "platform": "string",
; "sourcePipelineArn": "string",
; "sourcePipelineName": "string",
; "state": {
; "reason": "string",
; "status": "string"
; },
; "tags": {
; "string": "string"
; },
; "type": "string",
; "version": "string"
; },
; "requestId": "string"
; }