Skip to main content

public_keys

Creates, updates, deletes or gets a public_key resource or lists public_keys in a region

Overview

Namepublic_keys
TypeResource
DescriptionResource Type definition for AWS::IVS::PublicKey
Idaws.ivs.public_keys

Fields

NameDatatypeDescription
namestringName of the public key to be imported. 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.

For more information, see AWS::IVS::PublicKey.

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 public_keys in a region.

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

Gets all properties from an individual public_key.

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

INSERT example

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

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

DELETE example

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

Permissions

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

Create

ivs:ImportPublicKey,
ivs:TagResource

Read

ivs:GetPublicKey

Update

ivs:GetPublicKey,
ivs:ListTagsForResource,
ivs:UntagResource,
ivs:TagResource

Delete

ivs:DeletePublicKey,
ivs:UntagResource

List

ivs:ListPublicKeys,
ivs:ListTagsForResource