security_profiles_for_targets
Creates, updates, deletes, gets or lists a security_profiles_for_targets resource.
Overview
| Name | security_profiles_for_targets |
| Type | Resource |
| Id | aws.iot.security_profiles_for_targets |
Fields
The following fields are returned by SELECT queries:
- list_security_profiles_for_target
| Name | Datatype | Description |
|---|---|---|
security_profile_identifier | object | Identifying information for a Device Defender security profile. |
target | object | A target to which an alert is sent when a security profile behavior is violated. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_security_profiles_for_target | select | securityProfileTargetArn, region | nextToken, maxResults, recursive | Lists 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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
securityProfileTargetArn | string | The ARN of the target (thing group) whose attached security profiles you want to get. |
maxResults | integer | The maximum number of results to return at one time. |
nextToken | string | The token for the next set of results. |
recursive | boolean | If true, return child groups too. |
SELECT examples
- list_security_profiles_for_target
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 }}'
;