Jump to Content

Class GetRegistryPolicyCommandProtected

Retrieves the permissions policy for a registry.

Example

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

import { ECRClient, GetRegistryPolicyCommand } from "@aws-sdk/client-ecr"; // ES Modules import
// const { ECRClient, GetRegistryPolicyCommand } = require("@aws-sdk/client-ecr"); // CommonJS import
const client = new ECRClient(config);
const input = {};
const command = new GetRegistryPolicyCommand(input);
const response = await client.send(command);

Param

GetRegistryPolicyCommandInput

Returns

GetRegistryPolicyCommandOutput

See

Throws

InvalidParameterException (client fault)

The specified parameter is invalid. Review the available parameters for the API request.

Throws

RegistryPolicyNotFoundException (client fault)

The registry doesn't have an associated registry policy.

Throws

ServerException (server fault)

These errors are usually caused by a server-side issue.

Throws

ValidationException (client fault)

There was an exception validating this request.

Hierarchy

Constructors

Properties

Methods