Skip to main content

custom_plugins

Creates, updates, deletes or gets a custom_plugin resource or lists custom_plugins in a region

Overview

Namecustom_plugins
TypeResource
DescriptionAn example resource schema demonstrating some basic constructs and validation rules.
Idaws.kafkaconnect.custom_plugins

Fields

NameDatatypeDescription
namestringThe name of the custom plugin.
descriptionstringA summary description of the custom plugin.
custom_plugin_arnstringThe Amazon Resource Name (ARN) of the custom plugin to use.
content_typestringThe type of the plugin file.
file_descriptionobjectDetails about the custom plugin file.
locationobjectInformation about the location of a custom plugin.
revisionintegerThe revision of the custom plugin.
tagsarrayAn array of key-value pairs to apply to this resource.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTName, ContentType, Location, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all custom_plugins in a region.

SELECT
region,
name,
description,
custom_plugin_arn,
content_type,
file_description,
location,
revision,
tags
FROM aws.kafkaconnect.custom_plugins
WHERE region = 'us-east-1';

Gets all properties from an individual custom_plugin.

SELECT
region,
name,
description,
custom_plugin_arn,
content_type,
file_description,
location,
revision,
tags
FROM aws.kafkaconnect.custom_plugins
WHERE region = 'us-east-1' AND data__Identifier = '<CustomPluginArn>';

INSERT example

Use the following StackQL query and manifest file to create a new custom_plugin resource, using stack-deploy.

/*+ create */
INSERT INTO aws.kafkaconnect.custom_plugins (
Name,
ContentType,
Location,
region
)
SELECT
'{{ Name }}',
'{{ ContentType }}',
'{{ Location }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.kafkaconnect.custom_plugins
WHERE data__Identifier = '<CustomPluginArn>'
AND region = 'us-east-1';

Permissions

To operate on the custom_plugins resource, the following permissions are required:

Create

kafkaconnect:DescribeCustomPlugin,
kafkaconnect:ListTagsForResource,
kafkaconnect:CreateCustomPlugin,
kafkaconnect:TagResource,
s3:GetObject,
s3:GetObjectVersion,
s3:GetObjectAttributes,
s3:GetObjectVersionAttributes

Read

kafkaconnect:DescribeCustomPlugin,
kafkaconnect:ListTagsForResource

Update

kafkaconnect:DescribeCustomPlugin,
kafkaconnect:ListTagsForResource,
kafkaconnect:TagResource,
kafkaconnect:UntagResource

Delete

kafkaconnect:DeleteCustomPlugin,
kafkaconnect:DescribeCustomPlugin

List

kafkaconnect:ListCustomPlugins