ActionProperty Struct
Contains selection criteria for the lifecycle policy.
| Source | |
|---|---|
| Type last changed |
Example
ts
// 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 actionProperty: imagebuilder.CfnLifecyclePolicy.ActionProperty = {
type: 'type',
// the properties below are optional
includeResources: {
amis: false,
containers: false,
snapshots: false,
},
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_imagebuilder as imagebuilder
action_property = imagebuilder.CfnLifecyclePolicy.ActionProperty(
type="type",
# the properties below are optional
include_resources=imagebuilder.CfnLifecyclePolicy.IncludeResourcesProperty(
amis=False,
containers=False,
snapshots=False
)
)
java
// 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.*;
ActionProperty actionProperty = ActionProperty.builder()
.type("type")
// the properties below are optional
.includeResources(IncludeResourcesProperty.builder()
.amis(false)
.containers(false)
.snapshots(false)
.build())
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ImageBuilder;
var actionProperty = new ActionProperty {
Type = "type",
// the properties below are optional
IncludeResources = new IncludeResourcesProperty {
Amis = false,
Containers = false,
Snapshots = false
}
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
actionProperty := &ActionProperty{
Type: jsii.String("type"),
// the properties below are optional
IncludeResources: &IncludeResourcesProperty{
Amis: jsii.Boolean(false),
Containers: jsii.Boolean(false),
Snapshots: jsii.Boolean(false),
},
}
Properties
includeResourcesoptionalIResolvable | CfnLifecyclePolicy.include_resourcesoptionaltyping.Union[IResolvable, IncludeResourcesProperty]includeResourcesoptionalIResolvableIncludeResourcesoptionalIResolvableIncludeResourcesoptionalinterface{} #Specifies the resources that the lifecycle policy applies to.
Specifies the lifecycle action to take.