# ActionProperty

Contains selection criteria for the lifecycle policy.

- 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 actionProperty: imagebuilder.CfnLifecyclePolicy.ActionProperty = {
  type: 'type',

  // the properties below are optional
  includeResources: {
    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

action_property = imagebuilder.CfnLifecyclePolicy.ActionProperty(
    type="type",

    # the properties below are optional
    include_resources=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.*;

ActionProperty actionProperty = ActionProperty.builder()
        .type("type")

        // the properties below are optional
        .includeResources(IncludeResourcesProperty.builder()
                .amis(false)
                .containers(false)
                .snapshots(false)
                .build())
        .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 actionProperty = new ActionProperty {
    Type = "type",

    // the properties below are optional
    IncludeResources = 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"

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

- `includeResources`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnLifecyclePolicy.IncludeResourcesProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_imagebuilder.CfnLifecyclePolicy.IncludeResourcesProperty.html) — Specifies the resources that the lifecycle policy applies to.

- `type`: string (required) — Specifies the lifecycle action to take.
