targets_for_security_profiles
Creates, updates, deletes, gets or lists a targets_for_security_profiles resource.
Overview
| Name | targets_for_security_profiles |
| Type | Resource |
| Id | aws.iot.targets_for_security_profiles |
Fields
The following fields are returned by SELECT queries:
- list_targets_for_security_profile
| Name | Datatype | Description |
|---|---|---|
arn | string | The ARN of the security profile. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_targets_for_security_profile | select | security_profile_name, region | nextToken, maxResults | Lists 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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
security_profile_name | string | The security profile. |
maxResults | integer | The maximum number of results to return at one time. |
nextToken | string | The token for the next set of results. |
SELECT examples
- list_targets_for_security_profile
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 }}'
;