Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

AWS::Connect::SecurityKey

Focus mode

On this page

AWS::Connect::SecurityKey - AWS CloudFormation
Filter View

The security key for the instance.

Note

Only two security keys are allowed per Amazon Connect instance.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "Type" : "AWS::Connect::SecurityKey", "Properties" : { "InstanceId" : String, "Key" : String } }

YAML

Type: AWS::Connect::SecurityKey Properties: InstanceId: String Key: String

Properties

InstanceId

The Amazon Resource Name (ARN) of the instance.

Minimum: 1

Maximum: 100

Required: Yes

Type: String

Pattern: ^arn:aws[-a-z0-9]*:connect:[-a-z0-9]*:[0-9]{12}:instance/[-a-zA-Z0-9]*$

Minimum: 1

Maximum: 100

Update requires: Replacement

Key

A valid security key in PEM format. For example:

"-----BEGIN PUBLIC KEY-----\ [a lot of characters] ----END PUBLIC KEY-----"

Minimum: 1

Maximum: 1024

Required: Yes

Type: String

Minimum: 1

Maximum: 1024

Update requires: Replacement

Return values

Ref

Fn::GetAtt

The Fn::GetAtt intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values.

For more information about using the Fn::GetAtt intrinsic function, see Fn::GetAtt.

AssociationId

An AssociationId is automatically generated when a storage config is associated with an instance.

Examples

Specify a security key for an Amazon Connect instance

The following example specifies a security key for an Amazon Connect instance.

YAML

AWSTemplateFormatVersion: 2010-09-09 Description: Specifies a security key for an Amazon Connect instance Resources: SecurityKey: Type: AWS::Connect::SecurityKey Properties: InstanceId: arn:aws:connect:region-name:aws-account-id:instance/instance-arn Key: "valid-pem-key"
PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.