interface PolicyDetailProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.ImageBuilder.Mixins.CfnLifecyclePolicyPropsMixin.PolicyDetailProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsimagebuilder/mixins#CfnLifecyclePolicyPropsMixin_PolicyDetailProperty |
Java | software.amazon.awscdk.mixins.preview.services.imagebuilder.mixins.CfnLifecyclePolicyPropsMixin.PolicyDetailProperty |
Python | aws_cdk.mixins_preview.aws_imagebuilder.mixins.CfnLifecyclePolicyPropsMixin.PolicyDetailProperty |
TypeScript | @aws-cdk/mixins-preview » aws_imagebuilder » mixins » CfnLifecyclePolicyPropsMixin » 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 { mixins as imagebuilder_mixins } from '@aws-cdk/mixins-preview/aws-imagebuilder';
const policyDetailProperty: imagebuilder_mixins.CfnLifecyclePolicyPropsMixin.PolicyDetailProperty = {
action: {
includeResources: {
amis: false,
containers: false,
snapshots: false,
},
type: 'type',
},
exclusionRules: {
amis: {
isPublic: false,
lastLaunched: {
unit: 'unit',
value: 123,
},
regions: ['regions'],
sharedAccounts: ['sharedAccounts'],
tagMap: {
tagMapKey: 'tagMap',
},
},
tagMap: {
tagMapKey: 'tagMap',
},
},
filter: {
retainAtLeast: 123,
type: 'type',
unit: 'unit',
value: 123,
},
};
Properties
| Name | Type | Description |
|---|---|---|
| action? | IResolvable | Action | Configuration details for the policy action. |
| exclusion | IResolvable | Exclusion | Additional rules to specify resources that should be exempt from policy actions. |
| filter? | IResolvable | Filter | Specifies the resources that the lifecycle policy applies to. |
action?
Type:
IResolvable | Action
(optional)
Configuration details for the policy action.
exclusionRules?
Type:
IResolvable | Exclusion
(optional)
Additional rules to specify resources that should be exempt from policy actions.
filter?
Type:
IResolvable | Filter
(optional)
Specifies the resources that the lifecycle policy applies to.

.NET
Go
Java
Python
TypeScript