Lists all the policies that are available in your in your account.

Example

Use a bare-bones client and the command you need to make an API call.

import { IdentityClient, ListPoliciesCommand } from "@stedi/sdk-client-identity"; // ES Modules import
// const { IdentityClient, ListPoliciesCommand } = require("@stedi/sdk-client-identity"); // CommonJS import
const client = new IdentityClient(config);
const input = {};
const command = new ListPoliciesCommand(input);
const response = await client.send(command);
// { // ListPoliciesOutput
// items: [ // PolicyItems
// { // PolicyItem
// policyName: "STRING_VALUE", // required
// },
// ],
// };

Param

ListPoliciesCommandInput

Returns

ListPoliciesCommandOutput

See

Throws

AccessDeniedException (client fault)

Throws

ProductUnavailableException (client fault)

Throws

ResourceAlreadyExistsException (client fault)

Throws

ResourceNotFoundException (client fault)

Throws

ResourceUnderChangeException (client fault)

Throws

ServiceException (server fault)

Throws

IdentityServiceException

Base exception class for all service exceptions from Identity service.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods

  • Returns EndpointParameterInstructions