Skip to main content

worker_configurations

Creates, updates, deletes or gets a worker_configuration resource or lists worker_configurations in a region

Overview

Nameworker_configurations
TypeResource
DescriptionThe configuration of the workers, which are the processes that run the connector logic.
Idaws.kafkaconnect.worker_configurations

Fields

NameDatatypeDescription
namestringThe name of the worker configuration.
descriptionstringA summary description of the worker configuration.
worker_configuration_arnstringThe Amazon Resource Name (ARN) of the custom configuration.
properties_file_contentstringBase64 encoded contents of connect-distributed.properties file.
revisionintegerThe description of a revision of the worker configuration.
tagsarrayA collection of tags associated with a resource
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTName, PropertiesFileContent, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all worker_configurations in a region.

SELECT
region,
name,
description,
worker_configuration_arn,
properties_file_content,
revision,
tags
FROM aws.kafkaconnect.worker_configurations
WHERE region = 'us-east-1';

Gets all properties from an individual worker_configuration.

SELECT
region,
name,
description,
worker_configuration_arn,
properties_file_content,
revision,
tags
FROM aws.kafkaconnect.worker_configurations
WHERE region = 'us-east-1' AND data__Identifier = '<WorkerConfigurationArn>';

INSERT example

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

/*+ create */
INSERT INTO aws.kafkaconnect.worker_configurations (
Name,
PropertiesFileContent,
region
)
SELECT
'{{ Name }}',
'{{ PropertiesFileContent }}',
'{{ region }}';

DELETE example

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

Permissions

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

Create

kafkaconnect:DescribeWorkerConfiguration,
kafkaconnect:CreateWorkerConfiguration,
kafkaconnect:TagResource,
kafkaconnect:ListTagsForResource

Read

kafkaconnect:DescribeWorkerConfiguration,
kafkaconnect:ListTagsForResource

Update

kafkaconnect:DescribeWorkerConfiguration,
kafkaconnect:ListTagsForResource,
kafkaconnect:TagResource,
kafkaconnect:UntagResource

Delete

kafkaconnect:DescribeWorkerConfiguration,
kafkaconnect:DeleteWorkerConfiguration

List

kafkaconnect:ListWorkerConfigurations