# ActionProps

Properties for the Action construct.

Extends: ActionProps
Used as props by: Action

- Source: [`aws-appconfig/lib/extension.ts`](https://github.com/aws/aws-cdk/blob/v2.276.0/packages/aws-cdk-lib/aws-appconfig/lib/extension.ts#L154)
- Type last changed: v2.130.0 · 23 Feb 2024

## Example

```ts
declare const fn: lambda.Function;

new appconfig.Extension(this, 'MyExtension', {
  actions: [
    new appconfig.Action({
      actionPoints: [appconfig.ActionPoint.ON_DEPLOYMENT_START],
      eventDestination: new appconfig.LambdaDestination(fn),
    }),
  ],
});
```

## Properties

- `actionPoints`: [ActionPoint](/cdk/api/v2/docs/aws-cdk-lib.aws_appconfig.ActionPoint.html)[] (required) — The action points that will trigger the extension action.

- `description`: string — The description for the action.

  **Default:** No description.

- `eventDestination`: [IEventDestination](/cdk/api/v2/docs/aws-cdk-lib.aws_appconfig.IEventDestination.html) (required) — The event destination for the action.

- `executionRole`: [IRole](/cdk/api/v2/docs/aws-cdk-lib.aws_iam.IRole.html) — The execution role for the action.

  **Default:** A role is generated.

- `invokeWithoutExecutionRole`: boolean = false — The flag that specifies whether or not to create the execution role.

  If set to true, then the role will not be auto-generated under the assumption
  there is already the corresponding resource-based policy attached to the event
  destination. If false, the execution role will be generated if not provided.

- `name`: string — The name for the action.

  **Default:** A name is generated.
