Jump to Content

New API Documentation - Developer Preview Available

We are excited to announce the developer preview of our new API documentation for AWS SDK for JavaScript v3. Please follow instructions on the landing page to leave us your feedback.

Class GetVerifiedAccessEndpointPolicyCommandProtected

Get the Verified Access policy associated with the endpoint.

Example

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

import { EC2Client, GetVerifiedAccessEndpointPolicyCommand } from "@aws-sdk/client-ec2"; // ES Modules import
// const { EC2Client, GetVerifiedAccessEndpointPolicyCommand } = require("@aws-sdk/client-ec2"); // CommonJS import
const client = new EC2Client(config);
const input = { // GetVerifiedAccessEndpointPolicyRequest
VerifiedAccessEndpointId: "STRING_VALUE", // required
DryRun: true || false,
};
const command = new GetVerifiedAccessEndpointPolicyCommand(input);
const response = await client.send(command);
// { // GetVerifiedAccessEndpointPolicyResult
// PolicyEnabled: true || false,
// PolicyDocument: "STRING_VALUE",
// };

Param

GetVerifiedAccessEndpointPolicyCommandInput

Returns

GetVerifiedAccessEndpointPolicyCommandOutput

See

Throws

EC2ServiceException

Base exception class for all service exceptions from EC2 service.

Hierarchy

Constructors

Properties

Methods