monitors
Creates, updates, deletes or gets a monitor resource or lists monitors in a region
Overview
| Name | monitors |
| Type | Resource |
| Description | Definition of AWS::Deadline::Monitor Resource Type |
| Id | awscc.deadline.monitors |
Fields
- get (all properties)
- list (identifiers only)
| Name | Datatype | Description |
|---|---|---|
display_name | string | |
identity_center_application_arn | string | |
identity_center_instance_arn | string | |
monitor_id | string | |
role_arn | string | |
subdomain | string | |
tags | array | An array of key-value pairs to apply to this resource. |
url | string | |
arn | string | |
region | string | AWS region. |
| Name | Datatype | Description |
|---|---|---|
arn | string | |
region | string | AWS region. |
For more information, see AWS::Deadline::Monitor.
Methods
| Name | Resource | Accessible by | Required Params |
|---|---|---|---|
create_resource | monitors | INSERT | DisplayName, IdentityCenterInstanceArn, RoleArn, Subdomain, region |
delete_resource | monitors | DELETE | Identifier, region |
update_resource | monitors | UPDATE | Identifier, PatchDocument, region |
list_resources | monitors_list_only | SELECT | region |
get_resource | monitors | SELECT | Identifier, region |
SELECT examples
- get (all properties)
- list (identifiers only)
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 }}';
Lists all monitors in a region.
SELECT
region,
arn
FROM awscc.deadline.monitors_list_only
WHERE
region = 'us-east-1';
INSERT example
Use the following StackQL query and manifest file to create a new monitor resource, using stack-deploy.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO awscc.deadline.monitors (
DisplayName,
IdentityCenterInstanceArn,
RoleArn,
Subdomain,
region
)
SELECT
'{{ display_name }}',
'{{ identity_center_instance_arn }}',
'{{ role_arn }}',
'{{ subdomain }}',
'{{ region }}';
/*+ create */
INSERT INTO awscc.deadline.monitors (
DisplayName,
IdentityCenterInstanceArn,
RoleArn,
Subdomain,
Tags,
region
)
SELECT
'{{ display_name }}',
'{{ identity_center_instance_arn }}',
'{{ role_arn }}',
'{{ subdomain }}',
'{{ tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: monitor
props:
- name: display_name
value: '{{ display_name }}'
- name: identity_center_instance_arn
value: '{{ identity_center_instance_arn }}'
- name: role_arn
value: '{{ role_arn }}'
- name: subdomain
value: '{{ subdomain }}'
- name: tags
value:
- key: '{{ key }}'
value: '{{ value }}'
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:
- Create
- Read
- Update
- Delete
- List
deadline:CreateMonitor,
deadline:GetMonitor,
deadline:TagResource,
deadline:ListTagsForResource,
iam:PassRole,
kms:CreateGrant,
sso:CreateApplication,
sso:DeleteApplication,
sso:PutApplicationAssignmentConfiguration,
sso:PutApplicationAuthenticationMethod,
sso:PutApplicationGrant
deadline:GetMonitor,
deadline:ListTagsForResource
deadline:GetMonitor,
deadline:TagResource,
deadline:UntagResource,
deadline:ListTagsForResource,
deadline:UpdateMonitor,
iam:PassRole,
kms:CreateGrant,
sso:PutApplicationGrant,
sso:UpdateApplication
deadline:DeleteMonitor,
deadline:GetMonitor,
sso:DeleteApplication
deadline:ListMonitors