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 = '{{ region }}' 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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.connect.security_profiles
WHERE
Identifier = '{{ security_profile_arn }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

connect:CreateSecurityProfile,
connect:TagResource