Skip to main content

usage_profiles

Creates, updates, deletes or gets an usage_profile resource or lists usage_profiles in a region

Overview

Nameusage_profiles
TypeResource
DescriptionThis creates a Resource of UsageProfile type.
Idaws.glue.usage_profiles

Fields

NameDatatypeDescription
namestringThe name of the UsageProfile.
descriptionstringThe description of the UsageProfile.
configurationundefinedUsageProfile configuration for supported service ex: (Jobs, Sessions).
tagsarrayThe tags to be applied to this UsageProfiles.
created_onstringCreation time.
regionstringAWS region.

For more information, see AWS::Glue::UsageProfile.

Methods

NameAccessible byRequired Params
create_resourceINSERTName, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all usage_profiles in a region.

SELECT
region,
name,
description,
configuration,
tags,
created_on
FROM aws.glue.usage_profiles
WHERE region = 'us-east-1';

Gets all properties from an individual usage_profile.

SELECT
region,
name,
description,
configuration,
tags,
created_on
FROM aws.glue.usage_profiles
WHERE region = 'us-east-1' AND data__Identifier = '<Name>';

INSERT example

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

/*+ create */
INSERT INTO aws.glue.usage_profiles (
Name,
region
)
SELECT
'{{ Name }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.glue.usage_profiles
WHERE data__Identifier = '<Name>'
AND region = 'us-east-1';

Permissions

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

Create

glue:CreateUsageProfile,
glue:GetUsageProfile,
glue:GetTags,
glue:TagResource

Read

glue:GetUsageProfile,
glue:GetTags

Update

glue:UpdateUsageProfile,
glue:GetUsageProfile,
glue:TagResource,
glue:UntagResource,
glue:GetTags

Delete

glue:DeleteUsageProfile,
glue:GetUsageProfile

List

glue:ListUsageProfiles