Provides an Amazon Connect Security Profile resource. For more information see Amazon Connect: Getting Started
resource "aws_connect_security_profile" "example" {
instance_id = "aaaaaaaa-bbbb-cccc-dddd-111111111111"
name = "example"
description = "example description"
permissions = [
"BasicAgentAccess",
"OutboundCallAccess",
]
tags = {
"Name" = "Example Security Profile"
}
}
This resource supports the following arguments:
description
- (Optional) Specifies the description of the Security Profile.instance_id
- (Required) Specifies the identifier of the hosting Amazon Connect Instance.name
- (Required) Specifies the name of the Security Profile.permissions
- (Optional) Specifies a list of permissions assigned to the security profile.tags
- (Optional) Tags to apply to the Security Profile. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.This resource exports the following attributes in addition to the arguments above:
arn
- The Amazon Resource Name (ARN) of the Security Profile.organization_resource_id
- The organization resource identifier for the security profile.security_profile_id
- The identifier for the Security Profile.id
- The identifier of the hosting Amazon Connect Instance and identifier of the Security Profile separated by a colon (:
).tags_all
- A map of tags assigned to the resource, including those inherited from the provider default_tags
configuration block.In Terraform v1.5.0 and later, use an import
block to import Amazon Connect Security Profiles using the instance_id
and security_profile_id
separated by a colon (:
). For example:
import {
to = aws_connect_security_profile.example
id = "f1288a1f-6193-445a-b47e-af739b2:c1d4e5f6-1b3c-1b3c-1b3c-c1d4e5f6c1d4e5"
}
Using terraform import
, import Amazon Connect Security Profiles using the instance_id
and security_profile_id
separated by a colon (:
). For example:
% terraform import aws_connect_security_profile.example f1288a1f-6193-445a-b47e-af739b2:c1d4e5f6-1b3c-1b3c-1b3c-c1d4e5f6c1d4e5