# CfnCustomPluginProps

Struct · External

Properties for defining a `CfnCustomPlugin`.

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

- Source: Generated at build time
- Type last changed: v2.134.0 · 26 Mar 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_kafkaconnect as kafkaconnect } from 'aws-cdk-lib';
const cfnCustomPluginProps: kafkaconnect.CfnCustomPluginProps = {
  contentType: 'contentType',
  location: {
    s3Location: {
      bucketArn: 'bucketArn',
      fileKey: 'fileKey',

      // the properties below are optional
      objectVersion: 'objectVersion',
    },
  },
  name: 'name',

  // the properties below are optional
  description: 'description',
  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_kafkaconnect as kafkaconnect

cfn_custom_plugin_props = kafkaconnect.CfnCustomPluginProps(
    content_type="contentType",
    location=kafkaconnect.CfnCustomPlugin.CustomPluginLocationProperty(
        s3_location=kafkaconnect.CfnCustomPlugin.S3LocationProperty(
            bucket_arn="bucketArn",
            file_key="fileKey",

            # the properties below are optional
            object_version="objectVersion"
        )
    ),
    name="name",

    # the properties below are optional
    description="description",
    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.kafkaconnect.*;

CfnCustomPluginProps cfnCustomPluginProps = CfnCustomPluginProps.builder()
        .contentType("contentType")
        .location(CustomPluginLocationProperty.builder()
                .s3Location(S3LocationProperty.builder()
                        .bucketArn("bucketArn")
                        .fileKey("fileKey")

                        // the properties below are optional
                        .objectVersion("objectVersion")
                        .build())
                .build())
        .name("name")

        // the properties below are optional
        .description("description")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .build();
```

C#:

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

var cfnCustomPluginProps = new CfnCustomPluginProps {
    ContentType = "contentType",
    Location = new CustomPluginLocationProperty {
        S3Location = new S3LocationProperty {
            BucketArn = "bucketArn",
            FileKey = "fileKey",

            // the properties below are optional
            ObjectVersion = "objectVersion"
        }
    },
    Name = "name",

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

Go:

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

cfnCustomPluginProps := &CfnCustomPluginProps{
	ContentType: jsii.String("contentType"),
	Location: &CustomPluginLocationProperty{
		S3Location: &S3LocationProperty{
			BucketArn: jsii.String("bucketArn"),
			FileKey: jsii.String("fileKey"),

			// the properties below are optional
			ObjectVersion: jsii.String("objectVersion"),
		},
	},
	Name: jsii.String("name"),

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

## Properties

- `contentType`: string (required) — The format of the plugin file.

- `description`: string — The description of the custom plugin.

- `location`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnCustomPlugin.CustomPluginLocationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_kafkaconnect.CfnCustomPlugin.CustomPluginLocationProperty.html) (required) — Information about the location of the custom plugin.

- `name`: string (required) — The name of the custom plugin.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — An array of key-value pairs to apply to this resource.
