Skip to main content

policies

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

Overview

Namepolicies
TypeResource
Idaws.mpa.policies

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringAmazon 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_versionintegerDetermines if the specified policy is the default for the team.
namestringName of the policy.
policy_typestringThe type of policy. (AWS_MANAGED, AWS_RAM)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_policiesselectregionMaxResults, NextTokenReturns 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.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)
MaxResultsintegerThe 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.
NextTokenstringIf 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

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 }}'
;