# CfnExtensionProps

Properties for defining a `CfnExtension`.

Used as props by: [CfnExtension](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appconfig.CfnExtension.html)

- Source: Generated at build time
- Type last changed: v2.78.0 · 4 May 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_appconfig as appconfig } from 'aws-cdk-lib';

declare const actions: any;
const cfnExtensionProps: appconfig.CfnExtensionProps = {
  actions: actions,
  name: 'name',

  // the properties below are optional
  description: 'description',
  latestVersionNumber: 123,
  parameters: {
    parametersKey: {
      required: false,

      // the properties below are optional
      description: 'description',
      dynamic: false,
    },
  },
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

Python:

```python
from aws_cdk import CfnTag
# 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

# actions: Any

cfn_extension_props = appconfig.CfnExtensionProps(
    actions=actions,
    name="name",

    # the properties below are optional
    description="description",
    latest_version_number=123,
    parameters={
        "parameters_key": appconfig.CfnExtension.ParameterProperty(
            required=False,

            # the properties below are optional
            description="description",
            dynamic=False
        )
    },
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
```

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

Object actions;

CfnExtensionProps cfnExtensionProps = CfnExtensionProps.builder()
        .actions(actions)
        .name("name")

        // the properties below are optional
        .description("description")
        .latestVersionNumber(123)
        .parameters(Map.of(
                "parametersKey", ParameterProperty.builder()
                        .required(false)

                        // the properties below are optional
                        .description("description")
                        .dynamic(false)
                        .build()))
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .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.AppConfig;

var actions;

var cfnExtensionProps = new CfnExtensionProps {
    Actions = actions,
    Name = "name",

    // the properties below are optional
    Description = "description",
    LatestVersionNumber = 123,
    Parameters = new Dictionary<string, object> {
        { "parametersKey", new ParameterProperty {
            Required = false,

            // the properties below are optional
            Description = "description",
            Dynamic = false
        } }
    },
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
```

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 actions interface{}

cfnExtensionProps := &CfnExtensionProps{
	Actions: actions,
	Name: jsii.String("name"),

	// the properties below are optional
	Description: jsii.String("description"),
	LatestVersionNumber: jsii.Number(123),
	Parameters: map[string]interface{}{
		"parametersKey": &ParameterProperty{
			"required": jsii.Boolean(false),

			// the properties below are optional
			"description": jsii.String("description"),
			"dynamic": jsii.Boolean(false),
		},
	},
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}
```

## Properties

- `actions`: any (required) — The actions defined in the extension.

- `description`: string — Information about the extension.

- `latestVersionNumber`: number — You can omit this field when you create an 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.

- `name`: string (required) — A name for the extension.

  Each extension name in your account must be unique. Extension versions use the same name.

- `parameters`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | { [key: string]: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnExtension.ParameterProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appconfig.CfnExtension.ParameterProperty.html) } — The parameters accepted by the extension.

  You specify parameter values when you associate the extension to an AWS AppConfig resource by using the `CreateExtensionAssociation` API action. For AWS Lambda extension actions, these parameters are included in the Lambda request object.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — Adds one or more tags for the specified extension.

  Tags are metadata that help you categorize resources in different ways, for example, by purpose, owner, or environment. Each tag consists of a key and an optional value, both of which you define.
