Skip to main content

batch_scram_secrets

Creates, updates, deletes or gets a batch_scram_secret resource or lists batch_scram_secrets in a region

Overview

Namebatch_scram_secrets
TypeResource
DescriptionResource Type definition for AWS::MSK::BatchScramSecret
Idaws.msk.batch_scram_secrets

Fields

NameDatatypeDescription
cluster_arnstring
secret_arn_listarray
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTClusterArn, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all batch_scram_secrets in a region.

SELECT
region,
cluster_arn,
secret_arn_list
FROM aws.msk.batch_scram_secrets
WHERE region = 'us-east-1';

Gets all properties from an individual batch_scram_secret.

SELECT
region,
cluster_arn,
secret_arn_list
FROM aws.msk.batch_scram_secrets
WHERE region = 'us-east-1' AND data__Identifier = '<ClusterArn>';

INSERT example

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

/*+ create */
INSERT INTO aws.msk.batch_scram_secrets (
ClusterArn,
region
)
SELECT
'{{ ClusterArn }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.msk.batch_scram_secrets
WHERE data__Identifier = '<ClusterArn>'
AND region = 'us-east-1';

Permissions

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

Create

kafka:BatchAssociateScramSecret,
kafka:ListScramSecrets,
kms:CreateGrant,
kms:DescribeKey,
secretsmanager:GetSecretValue

Delete

kafka:BatchDisassociateScramSecret,
kafka:ListScramSecrets,
kms:CreateGrant,
kms:DescribeKey

List

kafka:ListScramSecrets,
kms:CreateGrant,
kms:DescribeKey,
secretsmanager:GetSecretValue

Read

kafka:ListScramSecrets,
kms:CreateGrant,
kms:DescribeKey,
secretsmanager:GetSecretValue

Update

kafka:BatchAssociateScramSecret,
kafka:BatchDisassociateScramSecret,
kafka:ListScramSecrets,
kms:CreateGrant,
kms:DescribeKey,
secretsmanager:GetSecretValue