# ExtensionOptions

Options for the Extension construct.

Used as argument in: [IApplication.atDeploymentTick](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appconfig.IApplication.html#atdeploymenttick), [IApplication.on](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appconfig.IApplication.html#on), IApplication.onDeploymentBaking, IApplication.onDeploymentComplete, IApplication.onDeploymentRolledBack, IApplication.onDeploymentStart, IApplication.onDeploymentStep, IApplication.preCreateHostedConfigurationVersion, IApplication.preStartDeployment, IEnvironment.atDeploymentTick, IEnvironment.on, IEnvironment.onDeploymentBaking, IEnvironment.onDeploymentComplete, IEnvironment.onDeploymentRolledBack, IEnvironment.onDeploymentStart, IEnvironment.onDeploymentStep, IEnvironment.preCreateHostedConfigurationVersion, IEnvironment.preStartDeployment, IExtensible.atDeploymentTick, IExtensible.on, IExtensible.onDeploymentBaking, IExtensible.onDeploymentComplete, IExtensible.onDeploymentRolledBack, IExtensible.onDeploymentStart, IExtensible.onDeploymentStep, IExtensible.preCreateHostedConfigurationVersion, IExtensible.preStartDeployment

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

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_appconfig as appconfig } from 'aws-cdk-lib';

declare const parameter: appconfig.Parameter;
const extensionOptions: appconfig.ExtensionOptions = {
  description: 'description',
  extensionName: 'extensionName',
  latestVersionNumber: 123,
  parameters: [parameter],
};
```

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_appconfig as appconfig

# parameter: appconfig.Parameter

extension_options = appconfig.ExtensionOptions(
    description="description",
    extension_name="extensionName",
    latest_version_number=123,
    parameters=[parameter]
)
```

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.appconfig.*;

Parameter parameter;

ExtensionOptions extensionOptions = ExtensionOptions.builder()
        .description("description")
        .extensionName("extensionName")
        .latestVersionNumber(123)
        .parameters(List.of(parameter))
        .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.AppConfig;

Parameter parameter;

var extensionOptions = new ExtensionOptions {
    Description = "description",
    ExtensionName = "extensionName",
    LatestVersionNumber = 123,
    Parameters = new [] { parameter }
};
```

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"

var parameter Parameter

extensionOptions := &ExtensionOptions{
	Description: jsii.String("description"),
	ExtensionName: jsii.String("extensionName"),
	LatestVersionNumber: jsii.Number(123),
	Parameters: []Parameter{
		parameter,
	},
}
```

## Properties

- `description`: string — A description of the extension.

  **Default:** No description.

- `extensionName`: string — The name of the extension.

  **Default:** A name is generated.

- `latestVersionNumber`: number = None. — The latest version number of the extension.

  When you create a new version,
  specify the most recent current version number. For example, you create version 3,
  enter 2 for this field.

- `parameters`: [Parameter](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appconfig.Parameter.html)[] = None. — The parameters accepted for the extension.
