interface PolicyDetailProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ImageBuilder.CfnLifecyclePolicy.PolicyDetailProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsimagebuilder#CfnLifecyclePolicy_PolicyDetailProperty |
Java | software.amazon.awscdk.services.imagebuilder.CfnLifecyclePolicy.PolicyDetailProperty |
Python | aws_cdk.aws_imagebuilder.CfnLifecyclePolicy.PolicyDetailProperty |
TypeScript | aws-cdk-lib » aws_imagebuilder » CfnLifecyclePolicy » PolicyDetailProperty |
The configuration details for a lifecycle policy resource.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_imagebuilder as imagebuilder } from 'aws-cdk-lib';
const policyDetailProperty: imagebuilder.CfnLifecyclePolicy.PolicyDetailProperty = {
action: {
type: 'type',
// the properties below are optional
includeResources: {
amis: false,
containers: false,
snapshots: false,
},
},
filter: {
type: 'type',
value: 123,
// the properties below are optional
retainAtLeast: 123,
unit: 'unit',
},
// the properties below are optional
exclusionRules: {
amis: {
isPublic: false,
lastLaunched: {
unit: 'unit',
value: 123,
},
regions: ['regions'],
sharedAccounts: ['sharedAccounts'],
tagMap: {
tagMapKey: 'tagMap',
},
},
tagMap: {
tagMapKey: 'tagMap',
},
},
};
Properties
| Name | Type | Description |
|---|---|---|
| action | IResolvable | Action | Configuration details for the policy action. |
| filter | IResolvable | Filter | Specifies the resources that the lifecycle policy applies to. |
| exclusion | IResolvable | Exclusion | Additional rules to specify resources that should be exempt from policy actions. |
action
Type:
IResolvable | Action
Configuration details for the policy action.
filter
Type:
IResolvable | Filter
Specifies the resources that the lifecycle policy applies to.
exclusionRules?
Type:
IResolvable | Exclusion
(optional)
Additional rules to specify resources that should be exempt from policy actions.

.NET
Go
Java
Python
TypeScript