Skip to main content

partnerships

Creates, updates, deletes or gets a partnership resource or lists partnerships in a region

Overview

Namepartnerships
TypeResource
DescriptionDefinition of AWS::B2BI::Partnership Resource Type
Idaws.b2bi.partnerships

Fields

NameDatatypeDescription
capabilitiesarray
created_atstring
emailstring
modified_atstring
namestring
partnership_arnstring
partnership_idstring
phonestring
profile_idstring
tagsarray
trading_partner_idstring
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTEmail, Name, ProfileId, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all partnerships in a region.

SELECT
region,
capabilities,
created_at,
email,
modified_at,
name,
partnership_arn,
partnership_id,
phone,
profile_id,
tags,
trading_partner_id
FROM aws.b2bi.partnerships
WHERE region = 'us-east-1';

Gets all properties from an individual partnership.

SELECT
region,
capabilities,
created_at,
email,
modified_at,
name,
partnership_arn,
partnership_id,
phone,
profile_id,
tags,
trading_partner_id
FROM aws.b2bi.partnerships
WHERE region = 'us-east-1' AND data__Identifier = '<PartnershipId>';

INSERT example

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

/*+ create */
INSERT INTO aws.b2bi.partnerships (
Email,
Name,
ProfileId,
region
)
SELECT
'{{ Email }}',
'{{ Name }}',
'{{ ProfileId }}',
'{{ region }}';

DELETE example

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

Permissions

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

Create

b2bi:CreatePartnership,
b2bi:TagResource,
s3:PutObject

Read

b2bi:GetPartnership,
b2bi:ListTagsForResource

Update

b2bi:TagResource,
b2bi:UntagResource,
b2bi:UpdatePartnership

Delete

b2bi:DeletePartnership

List

b2bi:ListPartnerships