AWS::Connect::SecurityKey
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
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"