Skip to main content

metered_products

Creates, updates, deletes or gets a metered_product resource or lists metered_products in a region

Overview

Namemetered_products
TypeResource
DescriptionDefinition of AWS::Deadline::MeteredProduct Resource Type
Idaws.deadline.metered_products

Fields

NameDatatypeDescription
license_endpoint_idstring
product_idstring
portinteger
familystring
vendorstring
arnstring
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTregion
delete_resourceDELETEdata__Identifier, region
list_resourcesSELECTregion
get_resourceSELECTdata__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.

/*+ create */
INSERT INTO aws.deadline.metered_products (
LicenseEndpointId,
ProductId,
Port,
Family,
Vendor,
region
)
SELECT
'{{ LicenseEndpointId }}',
'{{ ProductId }}',
'{{ Port }}',
'{{ Family }}',
'{{ Vendor }}',
'{{ region }}';

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