# IncludeResourcesProperty

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

- Source: Generated at build time
- Type last changed: v2.110.0 · 17 Nov 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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
};
```

Golang:

```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

- `amis`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Specifies whether the lifecycle action should apply to distributed AMIs.

- `containers`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Specifies whether the lifecycle action should apply to distributed containers.

- `snapshots`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Specifies whether the lifecycle action should apply to snapshots associated with distributed AMIs.
