deleteComponent
inline suspend fun ImagebuilderClient.deleteComponent(crossinline block: DeleteComponentRequest.Builder.() -> Unit): DeleteComponentResponse
Deletes a component build version. The request fails with ResourceDependencyException if an image recipe or container recipe references this component version. It also fails if the component build version is shared with other accounts.
Samples
// The following example deletes the specified component build version.
val resp = imagebuilderClient.deleteComponent {
componentBuildVersionArn = "arn:aws:imagebuilder:us-west-2:111122223333:component/my-example-component/1.0.0/1"
}Content copied to clipboard