public_keys
Creates, updates, deletes or gets a public_key resource or lists public_keys in a region
Overview
| Name | public_keys |
| Type | Resource |
| Description | Resource Type definition for AWS::IVS::PublicKey |
| Id | awscc.ivs.public_keys |
Fields
- get (all properties)
- list (identifiers only)
| Name | Datatype | Description |
|---|---|---|
name | string | Name of the public key to be imported. The value does not need to be unique. |
public_key_material | string | The public portion of a customer-generated key pair. This field is required to create the AWS::IVS::PublicKey resource. |
fingerprint | string | Key-pair identifier. |
arn | string | Key-pair identifier. |
tags | array | A list of key-value pairs that contain metadata for the asset model. |
region | string | AWS region. |
| Name | Datatype | Description |
|---|---|---|
arn | string | Key-pair identifier. |
region | string | AWS region. |
For more information, see AWS::IVS::PublicKey.
Methods
| Name | Resource | Accessible by | Required Params |
|---|---|---|---|
create_resource | public_keys | INSERT | region |
delete_resource | public_keys | DELETE | Identifier, region |
update_resource | public_keys | UPDATE | Identifier, PatchDocument, region |
list_resources | public_keys_list_only | SELECT | region |
get_resource | public_keys | SELECT | Identifier, region |
SELECT examples
- get (all properties)
- list (identifiers only)
Gets all properties from an individual public_key.
SELECT
region,
name,
public_key_material,
fingerprint,
arn,
tags
FROM awscc.ivs.public_keys
WHERE
region = 'us-east-1' AND
Identifier = '{{ arn }}';
Lists all public_keys in a region.
SELECT
region,
arn
FROM awscc.ivs.public_keys_list_only
WHERE
region = 'us-east-1';
INSERT example
Use the following StackQL query and manifest file to create a new public_key resource, using stack-deploy.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO awscc.ivs.public_keys (
Name,
PublicKeyMaterial,
Tags,
region
)
SELECT
'{{ name }}',
'{{ public_key_material }}',
'{{ tags }}',
'{{ region }}';
/*+ create */
INSERT INTO awscc.ivs.public_keys (
Name,
PublicKeyMaterial,
Tags,
region
)
SELECT
'{{ name }}',
'{{ public_key_material }}',
'{{ tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: public_key
props:
- name: name
value: '{{ name }}'
- name: public_key_material
value: '{{ public_key_material }}'
- name: tags
value:
- key: '{{ key }}'
value: '{{ value }}'
UPDATE example
Use the following StackQL query and manifest file to update a public_key resource, using stack-deploy.
/*+ update */
UPDATE awscc.ivs.public_keys
SET PatchDocument = string('{{ {
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ arn }}';
DELETE example
/*+ delete */
DELETE FROM awscc.ivs.public_keys
WHERE
Identifier = '{{ arn }}' AND
region = 'us-east-1';
Permissions
To operate on the public_keys resource, the following permissions are required:
- Create
- Read
- Update
- Delete
- List
ivs:ImportPublicKey,
ivs:TagResource
ivs:GetPublicKey
ivs:GetPublicKey,
ivs:ListTagsForResource,
ivs:UntagResource,
ivs:TagResource
ivs:DeletePublicKey,
ivs:UntagResource
ivs:ListPublicKeys,
ivs:ListTagsForResource