Skip to main content

profiles

Creates, updates, deletes or gets a profile resource or lists profiles in a region

Overview

Nameprofiles
TypeResource
DescriptionDefinition of AWS::B2BI::Profile Resource Type
Idawscc.b2bi.profiles

Fields

NameDatatypeDescription
business_namestring
created_atstring
emailstring
log_group_namestring
loggingstring
modified_atstring
namestring
phonestring
profile_arnstring
profile_idstring
tagsarray
regionstringAWS region.

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

Methods

NameResourceAccessible byRequired Params
create_resourceprofilesINSERTBusinessName, Logging, Name, Phone, region
delete_resourceprofilesDELETEIdentifier, region
update_resourceprofilesUPDATEIdentifier, PatchDocument, region
list_resourcesprofiles_list_onlySELECTregion
get_resourceprofilesSELECTIdentifier, region

SELECT examples

Gets all properties from an individual profile.

SELECT
region,
business_name,
created_at,
email,
log_group_name,
logging,
modified_at,
name,
phone,
profile_arn,
profile_id,
tags
FROM awscc.b2bi.profiles
WHERE
region = 'us-east-1' AND
Identifier = '{{ profile_id }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.b2bi.profiles (
BusinessName,
Logging,
Name,
Phone,
region
)
SELECT
'{{ business_name }}',
'{{ logging }}',
'{{ name }}',
'{{ phone }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a profile resource, using stack-deploy.

/*+ update */
UPDATE awscc.b2bi.profiles
SET PatchDocument = string('{{ {
"BusinessName": business_name,
"Email": email,
"Name": name,
"Phone": phone,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ profile_id }}';

DELETE example

/*+ delete */
DELETE FROM awscc.b2bi.profiles
WHERE
Identifier = '{{ profile_id }}' AND
region = 'us-east-1';

Permissions

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

b2bi:CreateProfile,
b2bi:TagResource,
logs:CreateLogDelivery,
logs:CreateLogGroup,
logs:CreateLogStream,
logs:DescribeLogGroups,
logs:DescribeLogStreams,
logs:DescribeResourcePolicies,
logs:ListLogDeliveries,
logs:PutLogEvents,
logs:PutResourcePolicy