Skip to main content

billing_groups

Creates, updates, deletes or gets a billing_group resource or lists billing_groups in a region

Overview

Namebilling_groups
TypeResource
DescriptionResource Type definition for AWS::IoT::BillingGroup
Idaws.iot.billing_groups

Fields

NameDatatypeDescription
idstring
arnstring
billing_group_namestring
tagsarrayAn array of key-value pairs to apply to this resource.
billing_group_propertiesobject
regionstringAWS region.

Methods

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

SELECT examples

Gets all billing_groups in a region.

SELECT
region,
id,
arn,
billing_group_name,
tags,
billing_group_properties
FROM aws.iot.billing_groups
WHERE region = 'us-east-1';

Gets all properties from an individual billing_group.

SELECT
region,
id,
arn,
billing_group_name,
tags,
billing_group_properties
FROM aws.iot.billing_groups
WHERE region = 'us-east-1' AND data__Identifier = '<BillingGroupName>';

INSERT example

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

/*+ create */
INSERT INTO aws.iot.billing_groups (
BillingGroupName,
Tags,
BillingGroupProperties,
region
)
SELECT
'{{ BillingGroupName }}',
'{{ Tags }}',
'{{ BillingGroupProperties }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.iot.billing_groups
WHERE data__Identifier = '<BillingGroupName>'
AND region = 'us-east-1';

Permissions

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

Create

iot:DescribeBillingGroup,
iot:ListTagsForResource,
iot:CreateBillingGroup,
iot:TagResource

Delete

iot:DescribeBillingGroup,
iot:DeleteBillingGroup

List

iot:ListBillingGroups,
iot:ListTagsForResource

Read

iot:DescribeBillingGroup,
iot:ListTagsForResource

Update

iot:DescribeBillingGroup,
iot:UpdateBillingGroup,
iot:ListTagsForResource,
iot:TagResource,
iot:UntagResource