Skip to main content

playback_key_pairs

Creates, updates, deletes or gets a playback_key_pair resource or lists playback_key_pairs in a region

Overview

Nameplayback_key_pairs
TypeResource
DescriptionResource Type definition for AWS::IVS::PlaybackKeyPair
Idaws.ivs.playback_key_pairs

Fields

NameDatatypeDescription
namestringAn arbitrary string (a nickname) assigned to a playback key pair that helps the customer identify that resource. The value does not need to be unique.
public_key_materialstringThe public portion of a customer-generated key pair.
fingerprintstringKey-pair identifier.
arnstringKey-pair identifier.
tagsarrayA list of key-value pairs that contain metadata for the asset model.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTregion
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all playback_key_pairs in a region.

SELECT
region,
name,
public_key_material,
fingerprint,
arn,
tags
FROM aws.ivs.playback_key_pairs
WHERE region = 'us-east-1';

Gets all properties from an individual playback_key_pair.

SELECT
region,
name,
public_key_material,
fingerprint,
arn,
tags
FROM aws.ivs.playback_key_pairs
WHERE region = 'us-east-1' AND data__Identifier = '<Arn>';

INSERT example

Use the following StackQL query and manifest file to create a new playback_key_pair resource, using stack-deploy.

/*+ create */
INSERT INTO aws.ivs.playback_key_pairs (
Name,
PublicKeyMaterial,
Tags,
region
)
SELECT
'{{ Name }}',
'{{ PublicKeyMaterial }}',
'{{ Tags }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.ivs.playback_key_pairs
WHERE data__Identifier = '<Arn>'
AND region = 'us-east-1';

Permissions

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

Create

ivs:ImportPlaybackKeyPair,
ivs:TagResource

Read

ivs:GetPlaybackKeyPair

Update

ivs:GetPlaybackKeyPair,
ivs:ListTagsForResource,
ivs:UntagResource,
ivs:TagResource

Delete

ivs:DeletePlaybackKeyPair,
ivs:UntagResource

List

ivs:ListPlaybackKeyPairs,
ivs:ListTagsForResource