Skip to main content

security_profiles_for_targets

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

Overview

Namesecurity_profiles_for_targets
TypeResource
Idaws.iot.security_profiles_for_targets

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
security_profile_identifierobjectIdentifying information for a Device Defender security profile.
targetobjectA target to which an alert is sent when a security profile behavior is violated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_security_profiles_for_targetselectsecurityProfileTargetArn, regionnextToken, maxResults, recursiveLists the Device Defender security profiles attached to a target (thing group). Requires permission to access the ListSecurityProfilesForTarget 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)
securityProfileTargetArnstringThe ARN of the target (thing group) whose attached security profiles you want to get.
maxResultsintegerThe maximum number of results to return at one time.
nextTokenstringThe token for the next set of results.
recursivebooleanIf true, return child groups too.

SELECT examples

Lists the Device Defender security profiles attached to a target (thing group). Requires permission to access the ListSecurityProfilesForTarget action.

SELECT
security_profile_identifier,
target
FROM aws.iot.security_profiles_for_targets
WHERE securityProfileTargetArn = '{{ securityProfileTargetArn }}' -- required
AND region = '{{ region }}' -- required
AND nextToken = '{{ nextToken }}'
AND maxResults = '{{ maxResults }}'
AND recursive = '{{ recursive }}'
;