Skip to main content

campaigns

Creates, updates, deletes or gets a campaign resource or lists campaigns in a region

Overview

Namecampaigns
TypeResource
DescriptionDefinition of AWS::IoTFleetWise::Campaign Resource Type
Idaws.iotfleetwise.campaigns

Fields

NameDatatypeDescription
statusstring
actionstring
creation_timestring
compressionstring
descriptionstring
priorityinteger
signals_to_collectarray
data_destination_configsarray
start_timestring
namestring
expiry_timestring
last_modification_timestring
spooling_modestring
signal_catalog_arnstring
post_trigger_collection_durationnumber
data_extra_dimensionsarray
diagnostics_modestring
target_arnstring
arnstring
collection_schemeundefined
tagsarray
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTName, Action, CollectionScheme, SignalCatalogArn, TargetArn, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all campaigns in a region.

SELECT
region,
status,
action,
creation_time,
compression,
description,
priority,
signals_to_collect,
data_destination_configs,
start_time,
name,
expiry_time,
last_modification_time,
spooling_mode,
signal_catalog_arn,
post_trigger_collection_duration,
data_extra_dimensions,
diagnostics_mode,
target_arn,
arn,
collection_scheme,
tags
FROM aws.iotfleetwise.campaigns
WHERE region = 'us-east-1';

Gets all properties from an individual campaign.

SELECT
region,
status,
action,
creation_time,
compression,
description,
priority,
signals_to_collect,
data_destination_configs,
start_time,
name,
expiry_time,
last_modification_time,
spooling_mode,
signal_catalog_arn,
post_trigger_collection_duration,
data_extra_dimensions,
diagnostics_mode,
target_arn,
arn,
collection_scheme,
tags
FROM aws.iotfleetwise.campaigns
WHERE region = 'us-east-1' AND data__Identifier = '<Name>';

INSERT example

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

/*+ create */
INSERT INTO aws.iotfleetwise.campaigns (
Action,
Name,
SignalCatalogArn,
TargetArn,
CollectionScheme,
region
)
SELECT
'{{ Action }}',
'{{ Name }}',
'{{ SignalCatalogArn }}',
'{{ TargetArn }}',
'{{ CollectionScheme }}',
'{{ region }}';

DELETE example

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

Permissions

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

Read

iotfleetwise:GetCampaign,
iotfleetwise:ListTagsForResource

Create

iotfleetwise:CreateCampaign,
iotfleetwise:GetCampaign,
iotfleetwise:ListTagsForResource,
iotfleetwise:TagResource,
iam:PassRole,
timestream:DescribeEndpoints,
timestream:DescribeTable

Update

iotfleetwise:GetCampaign,
iotfleetwise:ListTagsForResource,
iotfleetwise:UpdateCampaign,
iotfleetwise:TagResource,
iotfleetwise:UntagResource

List

iotfleetwise:ListCampaigns,
iotfleetwise:GetCampaign

Delete

iotfleetwise:DeleteCampaign,
iotfleetwise:GetCampaign