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

Fields

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

For more information, see AWS::B2BI::Capability.

Methods

NameResourceAccessible byRequired Params
create_resourcecapabilitiesINSERTConfiguration, Name, Type, region
delete_resourcecapabilitiesDELETEIdentifier, region
update_resourcecapabilitiesUPDATEIdentifier, PatchDocument, region
list_resourcescapabilities_list_onlySELECTregion
get_resourcecapabilitiesSELECTIdentifier, region

SELECT examples

Gets all properties from an individual capability.

SELECT
region,
capability_arn,
capability_id,
configuration,
created_at,
instructions_documents,
modified_at,
name,
tags,
type
FROM awscc.b2bi.capabilities
WHERE
region = '{{ region }}' AND
Identifier = '{{ capability_id }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.b2bi.capabilities (
Configuration,
Name,
Type,
region
)
SELECT
'{{ configuration }}',
'{{ name }}',
'{{ type }}',
'{{ 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 capability resource, using stack-deploy.

/*+ update */
UPDATE awscc.b2bi.capabilities
SET PatchDocument = string('{{ {
"Configuration": configuration,
"InstructionsDocuments": instructions_documents,
"Name": name,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ capability_id }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.b2bi.capabilities
WHERE
Identifier = '{{ capability_id }}' 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 capabilities resource, the following permissions are required:

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