Skip to main content

multicast_groups

Creates, updates, deletes or gets a multicast_group resource or lists multicast_groups in a region

Overview

Namemulticast_groups
TypeResource
DescriptionCreate and manage Multicast groups.
Idawscc.iotwireless.multicast_groups

Fields

NameDatatypeDescription
namestringName of Multicast group
descriptionstringMulticast group description
lo_ra_wanobjectMulticast group LoRaWAN
arnstringMulticast group arn. Returned after successful create.
idstringMulticast group id. Returned after successful create.
tagsarrayA list of key-value pairs that contain metadata for the Multicast group.
statusstringMulticast group status. Returned after successful read.
associate_wireless_devicestringWireless device to associate. Only for update request.
disassociate_wireless_devicestringWireless device to disassociate. Only for update request.
regionstringAWS region.

For more information, see AWS::IoTWireless::MulticastGroup.

Methods

NameResourceAccessible byRequired Params
create_resourcemulticast_groupsINSERTLoRaWAN, region
delete_resourcemulticast_groupsDELETEIdentifier, region
update_resourcemulticast_groupsUPDATEIdentifier, PatchDocument, region
list_resourcesmulticast_groups_list_onlySELECTregion
get_resourcemulticast_groupsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual multicast_group.

SELECT
region,
name,
description,
lo_ra_wan,
arn,
id,
tags,
status,
associate_wireless_device,
disassociate_wireless_device
FROM awscc.iotwireless.multicast_groups
WHERE
region = '{{ region }}' AND
Identifier = '{{ id }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.iotwireless.multicast_groups (
LoRaWAN,
region
)
SELECT
'{{ lo_ra_wan }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

UPDATE example

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

/*+ update */
UPDATE awscc.iotwireless.multicast_groups
SET PatchDocument = string('{{ {
"Name": name,
"Description": description,
"Tags": tags,
"AssociateWirelessDevice": associate_wireless_device,
"DisassociateWirelessDevice": disassociate_wireless_device
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ id }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.iotwireless.multicast_groups
WHERE
Identifier = '{{ id }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

iotwireless:CreateMulticastGroup,
iotwireless:TagResource