Interface CfnImage.DeletionSettingsProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnImage.DeletionSettingsProperty.Jsii$Proxy
- Enclosing class:
CfnImage
@Stability(Stable)
public static interface CfnImage.DeletionSettingsProperty
extends software.amazon.jsii.JsiiSerializable
Contains deletion settings of underlying resources of an image when it is replaced or deleted, including its Amazon Machine Images (AMIs), snapshots, or containers.
If you specify the
Retainoption in the DeletionPolicy or UpdateReplacePolicy , the deletion of underlying resources will not be executed.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.imagebuilder.*;
DeletionSettingsProperty deletionSettingsProperty = DeletionSettingsProperty.builder()
.executionRole("executionRole")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnImage.DeletionSettingsPropertystatic final classAn implementation forCfnImage.DeletionSettingsProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to delete the image and its underlying resources.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getExecutionRole
The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to delete the image and its underlying resources.- See Also:
-
builder
-