updateInfrastructureConfiguration
inline suspend fun ImagebuilderClient.updateInfrastructureConfiguration(crossinline block: UpdateInfrastructureConfigurationRequest.Builder.() -> Unit): UpdateInfrastructureConfigurationResponse
Updates an infrastructure configuration. An infrastructure configuration defines the environment in which Image Builder builds and tests your image.
This operation doesn't support selective updates. The request replaces the configuration, so include every setting that you want to keep. Omitted optional properties are cleared.
Samples
// The following example updates an infrastructure configuration to use larger instance types and to
// keep the build instance running when the image build fails.
val resp = imagebuilderClient.updateInfrastructureConfiguration {
infrastructureConfigurationArn = "arn:aws:imagebuilder:us-west-2:111122223333:infrastructure-configuration/my-example-infrastructure"
description = "An infrastructure configuration for Amazon Linux builds"
instanceProfileName = "EC2InstanceProfileForImageBuilder"
instanceTypes = listOf<String>(
"t3.large",
"t3.xlarge"
)
terminateInstanceOnFailure = false
clientToken = "a1b2c3d4-5678-90ab-cdef-EXAMPLEbbbbb"
}Content copied to clipboard