Skip to main content

associated_access_policies

Creates, updates, deletes, gets or lists an associated_access_policies resource.

Overview

Nameassociated_access_policies
TypeResource
Idaws.eks.associated_access_policies

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
access_scopeobjectThe scope of an AccessPolicy that's associated to an AccessEntry.
associated_atstring (date-time)The date and time the AccessPolicy was associated with an AccessEntry.
modified_atstring (date-time)The Unix epoch timestamp for the last modification to the object.
policy_arnstringThe ARN of the AccessPolicy.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_associated_access_policiesselectname, principal_arn, regionmaxResults, nextTokenLists the access policies associated with an access entry.

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
namestringThe name of your cluster.
principal_arnstringThe ARN of the IAM principal for the AccessEntry.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of results, returned in paginated output. You receive maxResults in a single page, along with a nextToken response element. You can see the remaining results of the initial request by sending another request with the returned nextToken value. This value can be between 1 and 100. If you don't use this parameter, 100 results and a nextToken value, if applicable, are returned.
nextTokenstringThe nextToken value returned from a previous paginated request, where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. This value is null when there are no more results to return. This token should be treated as an opaque identifier that is used only to retrieve the next items in a list and not for other programmatic purposes.

SELECT examples

Lists the access policies associated with an access entry.

SELECT
access_scope,
associated_at,
modified_at,
policy_arn
FROM aws.eks.associated_access_policies
WHERE name = '{{ name }}' -- required
AND principal_arn = '{{ principal_arn }}' -- required
AND region = '{{ region }}' -- required
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
;