Skip to main content

targets_for_security_profiles

Creates, updates, deletes, gets or lists a targets_for_security_profiles resource.

Overview

Nametargets_for_security_profiles
TypeResource
Idaws.iot.targets_for_security_profiles

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe ARN of the security profile.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_targets_for_security_profileselectsecurity_profile_name, regionnextToken, maxResultsLists the targets (thing groups) associated with a given Device Defender security profile. Requires permission to access the ListTargetsForSecurityProfile action.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)
security_profile_namestringThe security profile.
maxResultsintegerThe maximum number of results to return at one time.
nextTokenstringThe token for the next set of results.

SELECT examples

Lists the targets (thing groups) associated with a given Device Defender security profile. Requires permission to access the ListTargetsForSecurityProfile action.

SELECT
arn
FROM aws.iot.targets_for_security_profiles
WHERE security_profile_name = '{{ security_profile_name }}' -- required
AND region = '{{ region }}' -- required
AND nextToken = '{{ nextToken }}'
AND maxResults = '{{ maxResults }}'
;