Skip to main content

hypervisors

Creates, updates, deletes or gets a hypervisor resource or lists hypervisors in a region

Overview

Namehypervisors
TypeResource
DescriptionDefinition of AWS::BackupGateway::Hypervisor Resource Type
Idaws.backupgateway.hypervisors

Fields

NameDatatypeDescription
hoststring
hypervisor_arnstring
kms_key_arnstring
log_group_arnstring
namestring
passwordstring
tagsarray
usernamestring
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 hypervisors in a region.

SELECT
region,
host,
hypervisor_arn,
kms_key_arn,
log_group_arn,
name,
password,
tags,
username
FROM aws.backupgateway.hypervisors
WHERE region = 'us-east-1';

Gets all properties from an individual hypervisor.

SELECT
region,
host,
hypervisor_arn,
kms_key_arn,
log_group_arn,
name,
password,
tags,
username
FROM aws.backupgateway.hypervisors
WHERE region = 'us-east-1' AND data__Identifier = '<HypervisorArn>';

INSERT example

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

/*+ create */
INSERT INTO aws.backupgateway.hypervisors (
Host,
KmsKeyArn,
LogGroupArn,
Name,
Password,
Tags,
Username,
region
)
SELECT
'{{ Host }}',
'{{ KmsKeyArn }}',
'{{ LogGroupArn }}',
'{{ Name }}',
'{{ Password }}',
'{{ Tags }}',
'{{ Username }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.backupgateway.hypervisors
WHERE data__Identifier = '<HypervisorArn>'
AND region = 'us-east-1';

Permissions

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

Create

backup-gateway:ImportHypervisorConfiguration,
backup-gateway:GetHypervisor,
backup-gateway:ListHypervisors,
backup-gateway:TagResource,
kms:CreateGrant,
kms:Encrypt,
kms:Decrypt

Read

backup-gateway:GetHypervisor,
backup-gateway:ListHypervisors

Update

backup-gateway:UpdateHypervisor,
backup-gateway:GetHypervisor,
backup-gateway:ListHypervisors,
backup-gateway:ImportHypervisorConfiguration,
backup-gateway:DeleteHypervisor

Delete

backup-gateway:DeleteHypervisor,
backup-gateway:GetHypervisor,
backup-gateway:ListHypervisors

List

backup-gateway:ListHypervisors