CfnCustomPluginProps
Struct External
Properties for defining a CfnCustomPlugin.
| Source | |
|---|---|
| Type last changed |
Example
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
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
// 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();
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
// 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
The format of the plugin file.
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #The description of the custom plugin.
locationIResolvable | CfnCustomPlugin.locationtyping.Union[IResolvable, CustomPluginLocationProperty]locationIResolvableLocationIResolvableLocationinterface{} required #Information about the location of the custom plugin.
The name of the custom plugin.