# Action

Defines an action for an extension.

- Source: [`aws-appconfig/lib/extension.ts`](https://github.com/aws/aws-cdk/blob/v2.273.0/packages/aws-cdk-lib/aws-appconfig/lib/extension.ts#L201)
- 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),
    }),
  ],
});
```

## Initializer

```ts
new Action(props: ActionProps)
```

## 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.

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

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

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