Skip to content

Batch Get Policy

verifiedpermissions_batch_get_policy R Documentation

Retrieves information about a group (batch) of policies

Description

Retrieves information about a group (batch) of policies.

The batch_get_policy operation doesn't have its own IAM permission. To authorize this operation for Amazon Web Services principals, include the permission verifiedpermissions:GetPolicy in their IAM policies.

Usage

verifiedpermissions_batch_get_policy(requests)

Arguments

requests

[required] An array of up to 100 policies you want information about.

Value

A list with the following syntax:

list(
  results = list(
    list(
      policyStoreId = "string",
      policyId = "string",
      policyType = "STATIC"|"TEMPLATE_LINKED",
      definition = list(
        static = list(
          description = "string",
          statement = "string"
        ),
        templateLinked = list(
          policyTemplateId = "string",
          principal = list(
            entityType = "string",
            entityId = "string"
          ),
          resource = list(
            entityType = "string",
            entityId = "string"
          )
        )
      ),
      createdDate = as.POSIXct(
        "2015-01-01"
      ),
      lastUpdatedDate = as.POSIXct(
        "2015-01-01"
      )
    )
  ),
  errors = list(
    list(
      code = "POLICY_STORE_NOT_FOUND"|"POLICY_NOT_FOUND",
      policyStoreId = "string",
      policyId = "string",
      message = "string"
    )
  )
)

Request syntax

svc$batch_get_policy(
  requests = list(
    list(
      policyStoreId = "string",
      policyId = "string"
    )
  )
)