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
Idaws.b2bi.profiles

Fields

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

Methods

NameAccessible byRequired Params
create_resourceINSERTBusinessName, Logging, Name, Phone, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all profiles in a region.

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

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 aws.b2bi.profiles
WHERE region = 'us-east-1' AND data__Identifier = '<ProfileId>';

INSERT example

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

/*+ create */
INSERT INTO aws.b2bi.profiles (
BusinessName,
Logging,
Name,
Phone,
region
)
SELECT
'{{ BusinessName }}',
'{{ Logging }}',
'{{ Name }}',
'{{ Phone }}',
'{{ region }}';

DELETE example

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

Permissions

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

Create

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

Read

b2bi:GetProfile,
b2bi:ListTagsForResource

Update

b2bi:TagResource,
b2bi:UntagResource,
b2bi:UpdateProfile

Delete

b2bi:DeleteProfile,
logs:DeleteLogDelivery,
logs:ListLogDeliveries

List

b2bi:ListProfiles