Skip to main content

security_profiles

Creates, updates, deletes, gets or lists a security_profiles resource.

Overview

Namesecurity_profiles
TypeResource
Idaws.connect.security_profiles

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
allowed_access_control_hierarchy_group_idstringThe identifier of the hierarchy group that a security profile uses to restrict access to resources in Connect Customer.
allowed_access_control_tagsobjectThe list of tags that a security profile uses to restrict access to resources in Connect Customer.
arnstringThe Amazon Resource Name (ARN) for the security profile.
descriptionstringThe description of the security profile.
granular_access_control_configurationobjectContains granular access control configuration for security profiles, including data table access permissions.
hierarchy_restricted_resourcesarrayThe list of resources that a security profile applies hierarchy restrictions to in Connect Customer. Following are acceptable ResourceNames: User.
idstringThe identifier for the security profile.
last_modified_regionstringThe Amazon Web Services Region where this resource was last modified. (pattern: <code>[a-z]{2}(-[a-z]+){1,2}(-[0-9])?</code>)
last_modified_timestring (date-time)The timestamp when this resource was last modified.
organization_resource_idstringThe organization resource identifier for the security profile.
security_profile_namestringThe name for the security profile.
tag_restricted_resourcesarrayThe list of resources that a security profile applies tag restrictions to in Connect Customer.
tagsobjectThe tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_security_profileselectsecurity_profile_id, instance_id, regionGets basic information about the security profile. For information about security profiles, see Security Profiles in the Connect Customer Administrator Guide. For a mapping of the API name and user interface name of the security profile permissions, see List of security profile permissions.
list_security_profilesselectinstance_id, regionnextToken, maxResultsProvides summary information about the security profiles for the specified Connect Customer instance. For more information about security profiles, see Security Profiles in the Connect Customer Administrator Guide. For a mapping of the API name and user interface name of the security profile permissions, see List of security profile permissions.
search_security_profilesselectregionSearches security profiles in an Connect Customer instance, with optional filtering. For information about security profiles, see Security Profiles in the Connect Customer Administrator Guide. For a mapping of the API name and user interface name of the security profile permissions, see List of security profile permissions.
create_security_profileinsertinstance_id, region, SecurityProfileNameCreates a security profile. For information about security profiles, see Security Profiles in the Connect Customer Administrator Guide. For a mapping of the API name and user interface name of the security profile permissions, see List of security profile permissions.
associate_security_profilesupdateinstance_id, region, SecurityProfiles, EntityType, EntityArnAssociate security profiles with an Entity in an Amazon Connect instance.
update_user_security_profilesupdateuser_id, instance_id, region, SecurityProfileIdsAssigns the specified security profiles to the specified user.
update_security_profileupdatesecurity_profile_id, instance_id, regionUpdates a security profile. For information about security profiles, see Security Profiles in the Connect Customer Administrator Guide. For a mapping of the API name and user interface name of the security profile permissions, see List of security profile permissions.
delete_security_profiledeleteinstance_id, security_profile_id, regionDeletes a security profile.
disassociate_security_profilesexecinstance_id, region, SecurityProfiles, EntityType, EntityArnDisassociates a security profile attached to a Q in Connect AI Agent Entity in an Amazon Connect instance.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
instance_idstringThe identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
regionstringAWS region (default: us-east-1)
security_profile_idstringThe identifier for the security profle.
user_idstringThe identifier of the user account.
maxResultsintegerThe maximum number of results to return per page. The default MaxResult size is 100.
nextTokenstringThe token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

SELECT examples

Gets basic information about the security profile. For information about security profiles, see Security Profiles in the Connect Customer Administrator Guide. For a mapping of the API name and user interface name of the security profile permissions, see List of security profile permissions.

SELECT
allowed_access_control_hierarchy_group_id,
allowed_access_control_tags,
arn,
description,
granular_access_control_configuration,
hierarchy_restricted_resources,
id,
last_modified_region,
last_modified_time,
organization_resource_id,
security_profile_name,
tag_restricted_resources,
tags
FROM aws.connect.security_profiles
WHERE security_profile_id = '{{ security_profile_id }}' -- required
AND instance_id = '{{ instance_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a security profile. For information about security profiles, see Security Profiles in the Connect Customer Administrator Guide. For a mapping of the API name and user interface name of the security profile permissions, see List of security profile permissions.

INSERT INTO aws.connect.security_profiles (
SecurityProfileName,
Description,
Permissions,
Tags,
AllowedAccessControlTags,
TagRestrictedResources,
Applications,
HierarchyRestrictedResources,
AllowedAccessControlHierarchyGroupId,
AllowedFlowModules,
GranularAccessControlConfiguration,
instance_id,
region
)
SELECT
'{{ SecurityProfileName }}' /* required */,
'{{ Description }}',
'{{ Permissions }}',
'{{ Tags }}',
'{{ AllowedAccessControlTags }}',
'{{ TagRestrictedResources }}',
'{{ Applications }}',
'{{ HierarchyRestrictedResources }}',
'{{ AllowedAccessControlHierarchyGroupId }}',
'{{ AllowedFlowModules }}',
'{{ GranularAccessControlConfiguration }}',
'{{ instance_id }}',
'{{ region }}'
RETURNING
security_profile_arn,
security_profile_id
;

UPDATE examples

Associate security profiles with an Entity in an Amazon Connect instance.

UPDATE aws.connect.security_profiles
SET
SecurityProfiles = '{{ SecurityProfiles }}',
EntityType = '{{ EntityType }}',
EntityArn = '{{ EntityArn }}'
WHERE
instance_id = '{{ instance_id }}' --required
AND region = '{{ region }}' --required
AND SecurityProfiles = '{{ SecurityProfiles }}' --required
AND EntityType = '{{ EntityType }}' --required
AND EntityArn = '{{ EntityArn }}' --required;

DELETE examples

Deletes a security profile.

DELETE FROM aws.connect.security_profiles
WHERE instance_id = '{{ instance_id }}' --required
AND security_profile_id = '{{ security_profile_id }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods

Disassociates a security profile attached to a Q in Connect AI Agent Entity in an Amazon Connect instance.

EXEC aws.connect.security_profiles.disassociate_security_profiles
@instance_id='{{ instance_id }}' --required,
@region='{{ region }}' --required
@@json=
'{
"SecurityProfiles": "{{ SecurityProfiles }}",
"EntityType": "{{ EntityType }}",
"EntityArn": "{{ EntityArn }}"
}'
;