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.
Idawscc.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.

For more information, see AWS::KafkaConnect::CustomPlugin.

Methods

NameResourceAccessible byRequired Params
create_resourcecustom_pluginsINSERTName, ContentType, Location, region
delete_resourcecustom_pluginsDELETEIdentifier, region
update_resourcecustom_pluginsUPDATEIdentifier, PatchDocument, region
list_resourcescustom_plugins_list_onlySELECTregion
get_resourcecustom_pluginsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual custom_plugin.

SELECT
region,
name,
description,
custom_plugin_arn,
content_type,
file_description,
location,
revision,
tags
FROM awscc.kafkaconnect.custom_plugins
WHERE
region = 'us-east-1' AND
Identifier = '{{ custom_plugin_arn }}';

INSERT example

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

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

UPDATE example

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

/*+ update */
UPDATE awscc.kafkaconnect.custom_plugins
SET PatchDocument = string('{{ {
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ custom_plugin_arn }}';

DELETE example

/*+ delete */
DELETE FROM awscc.kafkaconnect.custom_plugins
WHERE
Identifier = '{{ custom_plugin_arn }}' AND
region = 'us-east-1';

Permissions

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

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