AWS::IVS::PublicKey - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

AWS::IVS::PublicKey

The AWS::IVS::PublicKey resource specifies an Amazon IVS public key used to sign stage participant tokens. For more information, see Distribute Participant Tokens in the Amazon IVS Real-Time Streaming User Guide.

Syntax

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

JSON

{ "Type" : "AWS::IVS::PublicKey", "Properties" : { "Name" : String, "PublicKeyMaterial" : String, "Tags" : [ Tag, ... ] } }

YAML

Type: AWS::IVS::PublicKey Properties: Name: String PublicKeyMaterial: String Tags: - Tag

Properties

Name

Public key name. The value does not need to be unique.

Required: No

Type: String

Pattern: ^[a-zA-Z0-9-_]*$

Minimum: 0

Maximum: 128

Update requires: Replacement

PublicKeyMaterial

The public portion of a customer-generated key pair. Note that this field is required to create the AWS::IVS::PublicKey resource.

Required: No

Type: String

Pattern: -----BEGIN PUBLIC KEY-----\r?\n([a-zA-Z0-9+/=\r\n]+)\r?\n-----END PUBLIC KEY-----(\r?\n)?

Update requires: Replacement

Tags

An array of key-value pairs to apply to this resource.

Required: No

Type: Array of Tag

Maximum: 50

Update requires: No interruption

Return values

Ref

When you pass the logical ID of this resource to the intrinsic Ref function, Ref returns the public key ARN. For example:

{ "Ref": "myPublicKey" }

For the Amazon IVS public key myPublicKey, Ref returns the public key ARN.

For more information about using the Ref function, see 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.

Arn

The public key ARN. For example: arn:aws:ivs:us-west-2:123456789012:public-key/abcdABCDefgh

Fingerprint

The public key identifier. For example: 98:0d:1a:a0:19:96:1e:ea:0a:0a:2c:9a:42:19:2b:e7

Examples

PublicKey Template Examples

The following examples specify an Amazon IVS public key.

JSON

{ "AWSTemplateFormatVersion": "2010-09-09", "Resources": { "PublicKey": { "Type": "AWS::IVS::PublicKey", "Properties": { "PublicKeyMaterial": "-----BEGIN PUBLIC KEY-----\nMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEwOR43ETwEoWif1i14aL8GtDMNkT/kBQm\nh4sas9P//bjCU988rmQQXVBfftKT9xngg+W6hzOEpeUlCRlAtz6b6U79naYYRaSk\nK/UhYGWkXlbJlc9zn13imYWgVGe/BMFp\n-----END PUBLIC KEY-----\n", "Name": "MyPublicKey", "Tags": [ { "Key": "MyKey", "Value": "MyValue" } ] } } } }

YAML

AWSTemplateFormatVersion: 2010-09-09 Resources: PublicKey: Type: AWS::IVS::PublicKey Properties: PublicKeyMaterial: | -----BEGIN PUBLIC KEY----- MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEwOR43ETwEoWif1i14aL8GtDMNkT/kBQm h4sas9P//bjCU988rmQQXVBfftKT9xngg+W6hzOEpeUlCRlAtz6b6U79naYYRaSk K/UhYGWkXlbJlc9zn13imYWgVGe/BMFp -----END PUBLIC KEY----- Name: MyPublicKey Tags: - Key: MyKey Value: MyValue

See also