Skip to main content

capabilities

Creates, updates, deletes or gets a capability resource or lists capabilities in a region

Overview

Namecapabilities
TypeResource
DescriptionDefinition of AWS::B2BI::Capability Resource Type
Idaws.b2bi.capabilities

Fields

NameDatatypeDescription
capability_arnstring
capability_idstring
configurationundefined
created_atstring
instructions_documentsarray
modified_atstring
namestring
tagsarray
typestring
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTConfiguration, Name, Type, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all capabilities in a region.

SELECT
region,
capability_arn,
capability_id,
configuration,
created_at,
instructions_documents,
modified_at,
name,
tags,
type
FROM aws.b2bi.capabilities
WHERE region = 'us-east-1';

Gets all properties from an individual capability.

SELECT
region,
capability_arn,
capability_id,
configuration,
created_at,
instructions_documents,
modified_at,
name,
tags,
type
FROM aws.b2bi.capabilities
WHERE region = 'us-east-1' AND data__Identifier = '<CapabilityId>';

INSERT example

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

/*+ create */
INSERT INTO aws.b2bi.capabilities (
Configuration,
Name,
Type,
region
)
SELECT
'{{ Configuration }}',
'{{ Name }}',
'{{ Type }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.b2bi.capabilities
WHERE data__Identifier = '<CapabilityId>'
AND region = 'us-east-1';

Permissions

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

Create

b2bi:CreateCapability,
b2bi:TagResource,
events:ListRules,
events:PutRule,
events:PutTargets,
logs:CreateLogDelivery,
logs:CreateLogGroup,
logs:CreateLogStream,
logs:DescribeLogGroups,
logs:DescribeLogStreams,
logs:DescribeResourcePolicies,
logs:ListLogDeliveries,
logs:PutLogEvents,
logs:PutResourcePolicy,
s3:GetObject,
s3:ListBucket

Read

b2bi:GetCapability,
b2bi:ListTagsForResource

Update

b2bi:TagResource,
b2bi:UntagResource,
b2bi:UpdateCapability

Delete

b2bi:DeleteCapability

List

b2bi:ListCapabilities