metered_products
Creates, updates, deletes or gets a metered_product
resource or lists metered_products
in a region
Overview
Name | metered_products |
Type | Resource |
Description | Definition of AWS::Deadline::MeteredProduct Resource Type |
Id | aws.deadline.metered_products |
Fields
Name | Datatype | Description |
---|---|---|
license_endpoint_id | string | |
product_id | string | |
port | integer | |
family | string | |
vendor | string | |
arn | string | |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | region |
delete_resource | DELETE | data__Identifier, region |
list_resources | SELECT | region |
get_resource | SELECT | data__Identifier, region |
SELECT
examples
Gets all metered_products
in a region.
SELECT
region,
license_endpoint_id,
product_id,
port,
family,
vendor,
arn
FROM aws.deadline.metered_products
WHERE region = 'us-east-1';
Gets all properties from an individual metered_product
.
SELECT
region,
license_endpoint_id,
product_id,
port,
family,
vendor,
arn
FROM aws.deadline.metered_products
WHERE region = 'us-east-1' AND data__Identifier = '<Arn>';
INSERT
example
Use the following StackQL query and manifest file to create a new metered_product
resource, using stack-deploy
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.deadline.metered_products (
LicenseEndpointId,
ProductId,
Port,
Family,
Vendor,
region
)
SELECT
'{{ LicenseEndpointId }}',
'{{ ProductId }}',
'{{ Port }}',
'{{ Family }}',
'{{ Vendor }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.deadline.metered_products (
LicenseEndpointId,
ProductId,
Port,
Family,
Vendor,
region
)
SELECT
'{{ LicenseEndpointId }}',
'{{ ProductId }}',
'{{ Port }}',
'{{ Family }}',
'{{ Vendor }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: metered_product
props:
- name: LicenseEndpointId
value: '{{ LicenseEndpointId }}'
- name: ProductId
value: '{{ ProductId }}'
- name: Port
value: '{{ Port }}'
- name: Family
value: '{{ Family }}'
- name: Vendor
value: '{{ Vendor }}'
DELETE
example
/*+ delete */
DELETE FROM aws.deadline.metered_products
WHERE data__Identifier = '<Arn>'
AND region = 'us-east-1';
Permissions
To operate on the metered_products
resource, the following permissions are required:
Create
deadline:PutMeteredProduct,
deadline:ListMeteredProducts
Read
deadline:GetMeteredProduct,
deadline:ListMeteredProducts
Delete
deadline:DeleteMeteredProduct,
deadline:ListMeteredProducts
List
deadline:ListMeteredProducts