Skip to content

List Policies

fms_list_policies R Documentation

Returns an array of PolicySummary objects

Description

Returns an array of PolicySummary objects.

Usage

fms_list_policies(NextToken, MaxResults)

Arguments

NextToken

If you specify a value for MaxResults and you have more PolicySummary objects than the number that you specify for MaxResults, Firewall Manager returns a NextToken value in the response that allows you to list another group of PolicySummary objects. For the second and subsequent list_policies requests, specify the value of NextToken from the previous response to get information about another batch of PolicySummary objects.

MaxResults

Specifies the number of PolicySummary objects that you want Firewall Manager to return for this request. If you have more PolicySummary objects than the number that you specify for MaxResults, the response includes a NextToken value that you can use to get another batch of PolicySummary objects.

Value

A list with the following syntax:

list(
  PolicyList = list(
    list(
      PolicyArn = "string",
      PolicyId = "string",
      PolicyName = "string",
      ResourceType = "string",
      SecurityServiceType = "WAF"|"WAFV2"|"SHIELD_ADVANCED"|"SECURITY_GROUPS_COMMON"|"SECURITY_GROUPS_CONTENT_AUDIT"|"SECURITY_GROUPS_USAGE_AUDIT"|"NETWORK_FIREWALL"|"DNS_FIREWALL"|"THIRD_PARTY_FIREWALL"|"IMPORT_NETWORK_FIREWALL"|"NETWORK_ACL_COMMON",
      RemediationEnabled = TRUE|FALSE,
      DeleteUnusedFMManagedResources = TRUE|FALSE,
      PolicyStatus = "ACTIVE"|"OUT_OF_ADMIN_SCOPE"
    )
  ),
  NextToken = "string"
)

Request syntax

svc$list_policies(
  NextToken = "string",
  MaxResults = 123
)