updateDistributionConfiguration

Updates a distribution configuration. Distribution configurations define and configure the outputs for your images, including the target Regions, accounts, and settings for each Region.

This operation doesn't support selective updates. The request replaces the stored configuration, so include every setting that you want to keep.

Samples

// The following example replaces the distribution settings for the specified configuration with a
// single distribution that names the output AMI with the build date.
val resp = imagebuilderClient.updateDistributionConfiguration {
    distributionConfigurationArn = "arn:aws:imagebuilder:us-west-2:111122223333:distribution-configuration/my-example-distribution"
    distributions = listOf<Distribution>(
        Distribution {
            region = "us-west-2"
            amiDistributionConfiguration = AmiDistributionConfiguration {
                name = "my-example-image-{{ imagebuilder:buildDate }}"
            }
        }            
    )
    clientToken = "a1b2c3d4-5678-90ab-cdef-EXAMPLEccccc"
}