Skip to content
v2.278.0

IncludeResourcesProperty Struct ​

Specifies how the lifecycle policy should apply actions to selected resources.

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 includeResourcesProperty: imagebuilder.CfnLifecyclePolicy.IncludeResourcesProperty = {
  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

include_resources_property = 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.*;

IncludeResourcesProperty includeResourcesProperty = IncludeResourcesProperty.builder()
        .amis(false)
        .containers(false)
        .snapshots(false)
        .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 includeResourcesProperty = 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"

includeResourcesProperty := &IncludeResourcesProperty{
	Amis: jsii.Boolean(false),
	Containers: jsii.Boolean(false),
	Snapshots: jsii.Boolean(false),
}

Properties ​

amisoptionalboolean | IResolvableamisoptionaltyping.Union[bool, IResolvable]amisoptionalBooleanAmisoptionalboolAmisoptionalinterface{} #
Specifies whether the lifecycle action should apply to distributed AMIs.
containersoptionalboolean | IResolvablecontainersoptionaltyping.Union[bool, IResolvable]containersoptionalBooleanContainersoptionalboolContainersoptionalinterface{} #
Specifies whether the lifecycle action should apply to distributed containers.
snapshotsoptionalboolean | IResolvablesnapshotsoptionaltyping.Union[bool, IResolvable]snapshotsoptionalBooleanSnapshotsoptionalboolSnapshotsoptionalinterface{} #
Specifies whether the lifecycle action should apply to snapshots associated with distributed AMIs.