Skip to main content

monitors

Creates, updates, deletes or gets a monitor resource or lists monitors in a region

Overview

Namemonitors
TypeResource
DescriptionDefinition of AWS::Deadline::Monitor Resource Type
Idawscc.deadline.monitors

Fields

NameDatatypeDescription
display_namestring
identity_center_application_arnstring
identity_center_instance_arnstring
monitor_idstring
role_arnstring
subdomainstring
tagsarrayAn array of key-value pairs to apply to this resource.
urlstring
arnstring
regionstringAWS region.

For more information, see AWS::Deadline::Monitor.

Methods

NameResourceAccessible byRequired Params
create_resourcemonitorsINSERTDisplayName, IdentityCenterInstanceArn, RoleArn, Subdomain, region
delete_resourcemonitorsDELETEIdentifier, region
update_resourcemonitorsUPDATEIdentifier, PatchDocument, region
list_resourcesmonitors_list_onlySELECTregion
get_resourcemonitorsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual monitor.

SELECT
region,
display_name,
identity_center_application_arn,
identity_center_instance_arn,
monitor_id,
role_arn,
subdomain,
tags,
url,
arn
FROM awscc.deadline.monitors
WHERE
region = 'us-east-1' AND
Identifier = '{{ arn }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.deadline.monitors (
DisplayName,
IdentityCenterInstanceArn,
RoleArn,
Subdomain,
region
)
SELECT
'{{ display_name }}',
'{{ identity_center_instance_arn }}',
'{{ role_arn }}',
'{{ subdomain }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a monitor resource, using stack-deploy.

/*+ update */
UPDATE awscc.deadline.monitors
SET PatchDocument = string('{{ {
"DisplayName": display_name,
"RoleArn": role_arn,
"Subdomain": subdomain,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ arn }}';

DELETE example

/*+ delete */
DELETE FROM awscc.deadline.monitors
WHERE
Identifier = '{{ arn }}' AND
region = 'us-east-1';

Permissions

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

deadline:CreateMonitor,
deadline:GetMonitor,
deadline:TagResource,
deadline:ListTagsForResource,
iam:PassRole,
kms:CreateGrant,
sso:CreateApplication,
sso:DeleteApplication,
sso:PutApplicationAssignmentConfiguration,
sso:PutApplicationAuthenticationMethod,
sso:PutApplicationGrant