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 = '{{ region }}' 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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.kafkaconnect.custom_plugins
WHERE
Identifier = '{{ custom_plugin_arn }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

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