Skip to content

Get Resource Policies

ssm_get_resource_policies R Documentation

Returns an array of the Policy object

Description

Returns an array of the Policy object.

Usage

ssm_get_resource_policies(ResourceArn, NextToken, MaxResults)

Arguments

ResourceArn

[required] Amazon Resource Name (ARN) of the resource to which the policies are attached.

NextToken

A token to start the list. Use this token to get the next set of results.

MaxResults

The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

Value

A list with the following syntax:

list(
  NextToken = "string",
  Policies = list(
    list(
      PolicyId = "string",
      PolicyHash = "string",
      Policy = "string"
    )
  )
)

Request syntax

svc$get_resource_policies(
  ResourceArn = "string",
  NextToken = "string",
  MaxResults = 123
)