Skip to main content

security_profiles

Creates, updates, deletes or gets a security_profile resource or lists security_profiles in a region

Overview

Namesecurity_profiles
TypeResource
DescriptionResource Type definition for AWS::Connect::SecurityProfile
Idawscc.connect.security_profiles

Fields

NameDatatypeDescription
allowed_access_control_tagsarrayThe list of tags that a security profile uses to restrict access to resources in Amazon Connect.
descriptionstringThe description of the security profile.
instance_arnstringThe identifier of the Amazon Connect instance.
permissionsarrayPermissions assigned to the security profile.
security_profile_arnstringThe Amazon Resource Name (ARN) for the security profile.
security_profile_namestringThe name of the security profile.
tag_restricted_resourcesarrayThe list of resources that a security profile applies tag restrictions to in Amazon Connect.
hierarchy_restricted_resourcesarrayThe list of resources that a security profile applies hierarchy restrictions to in Amazon Connect.
allowed_access_control_hierarchy_group_idstringThe identifier of the hierarchy group that a security profile uses to restrict access to resources in Amazon Connect.
applicationsarrayA list of third-party applications that the security profile will give access to.
tagsarrayThe tags used to organize, track, or control access for this resource.
last_modified_regionstringThe AWS Region where this resource was last modified.
last_modified_timenumberThe timestamp when this resource was last modified.
regionstringAWS region.

For more information, see AWS::Connect::SecurityProfile.

Methods

NameResourceAccessible byRequired Params
create_resourcesecurity_profilesINSERTInstanceArn, SecurityProfileName, region
delete_resourcesecurity_profilesDELETEIdentifier, region
update_resourcesecurity_profilesUPDATEIdentifier, PatchDocument, region
list_resourcessecurity_profiles_list_onlySELECTregion
get_resourcesecurity_profilesSELECTIdentifier, region

SELECT examples

Gets all properties from an individual security_profile.

SELECT
region,
allowed_access_control_tags,
description,
instance_arn,
permissions,
security_profile_arn,
security_profile_name,
tag_restricted_resources,
hierarchy_restricted_resources,
allowed_access_control_hierarchy_group_id,
applications,
tags,
last_modified_region,
last_modified_time
FROM awscc.connect.security_profiles
WHERE
region = 'us-east-1' AND
Identifier = '{{ security_profile_arn }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.connect.security_profiles (
InstanceArn,
SecurityProfileName,
region
)
SELECT
'{{ instance_arn }}',
'{{ security_profile_name }}',
'{{ region }}';

UPDATE example

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

/*+ update */
UPDATE awscc.connect.security_profiles
SET PatchDocument = string('{{ {
"AllowedAccessControlTags": allowed_access_control_tags,
"Description": description,
"Permissions": permissions,
"TagRestrictedResources": tag_restricted_resources,
"HierarchyRestrictedResources": hierarchy_restricted_resources,
"AllowedAccessControlHierarchyGroupId": allowed_access_control_hierarchy_group_id,
"Applications": applications,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ security_profile_arn }}';

DELETE example

/*+ delete */
DELETE FROM awscc.connect.security_profiles
WHERE
Identifier = '{{ security_profile_arn }}' AND
region = 'us-east-1';

Permissions

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

connect:CreateSecurityProfile,
connect:TagResource