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
Idawscc.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.

For more information, see AWS::IoT::BillingGroup.

Methods

NameResourceAccessible byRequired Params
create_resourcebilling_groupsINSERTregion
delete_resourcebilling_groupsDELETEIdentifier, region
update_resourcebilling_groupsUPDATEIdentifier, PatchDocument, region
list_resourcesbilling_groups_list_onlySELECTregion
get_resourcebilling_groupsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual billing_group.

SELECT
region,
id,
arn,
billing_group_name,
tags,
billing_group_properties
FROM awscc.iot.billing_groups
WHERE
region = 'us-east-1' AND
Identifier = '{{ billing_group_name }}';

INSERT example

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

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

UPDATE example

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

/*+ update */
UPDATE awscc.iot.billing_groups
SET PatchDocument = string('{{ {
"Tags": tags,
"BillingGroupProperties": billing_group_properties
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ billing_group_name }}';

DELETE example

/*+ delete */
DELETE FROM awscc.iot.billing_groups
WHERE
Identifier = '{{ billing_group_name }}' AND
region = 'us-east-1';

Permissions

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

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