# Parameter

Defines a parameter for an extension.

- Source: [`aws-appconfig/lib/extension.ts`](https://github.com/aws/aws-cdk/blob/v2.277.0/packages/aws-cdk-lib/aws-appconfig/lib/extension.ts#L245)
- 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),
    }),
  ],
  parameters: [
    appconfig.Parameter.required('testParam', 'true'),
    appconfig.Parameter.notRequired('testNotRequiredParam'),
  ]
});
```

## Properties

- `description`: string — The description of the parameter.

- `isRequired`: boolean — A boolean that indicates if the parameter is required or optional.

- `name`: string — The name of the parameter.

- `value`: string — The value of the parameter.

## Methods

- `notRequired(name: string, value?: string, description?: string): Parameter // chainable` (static) — An optional parameter for an extension.

  **Parameters**

  - `name` — The name of the parameter.
  - `value` — The value of the parameter.
  - `description` — A description for the parameter.

- `required(name: string, value: string, description?: string): Parameter // chainable` (static) — A required parameter for an extension.

  **Parameters**

  - `name` — The name of the parameter.
  - `value` — The value of the parameter.
  - `description` — A description for the parameter.
