policies
Creates, updates, deletes, gets or lists a policies resource.
Overview
| Name | policies |
| Type | Resource |
| Id | aws.mpa.policies |
Fields
The following fields are returned by SELECT queries:
- list_policies
| Name | Datatype | Description |
|---|---|---|
arn | string | Amazon Resource Name (ARN) for the policy. (pattern: <code>arn:.{1,63}:mpa:::aws:policy/[a-zA-Z0-9_.-]{1,1023}/[a-zA-Z0-9_.-]{1,1023}</code>) |
default_version | integer | Determines if the specified policy is the default for the team. |
name | string | Name of the policy. |
policy_type | string | The type of policy. (AWS_MANAGED, AWS_RAM) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_policies | select | region | MaxResults, NextToken | Returns a list of policies. Policies define the permissions for team resources. |
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) |
MaxResults | integer | The maximum number of items to return in the response. If more results exist than the specified MaxResults value, a token is included in the response so that you can retrieve the remaining results. |
NextToken | string | If present, indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a next call to the operation to get more output. You can repeat this until the NextToken response element returns null. |
SELECT examples
- list_policies
Returns a list of policies. Policies define the permissions for team resources.
SELECT
arn,
default_version,
name,
policy_type
FROM aws.mpa.policies
WHERE region = '{{ region }}' -- required
AND MaxResults = '{{ MaxResults }}'
AND NextToken = '{{ NextToken }}'
;