Protected
Retrieves the permissions policy for a registry.
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 importconst client = new ECRClient(config);const input = {};const command = new GetRegistryPolicyCommand(input);const response = await client.send(command);
GetRegistryPolicyCommandInput
GetRegistryPolicyCommandOutput
input
response
config
InvalidParameterException (client fault)
The specified parameter is invalid. Review the available parameters for the API request.
RegistryPolicyNotFoundException (client fault)
The registry doesn't have an associated registry policy.
ServerException (server fault)
These errors are usually caused by a server-side issue.
ValidationException (client fault)
There was an exception validating this request.
Readonly
Static
Retrieves the permissions policy for a registry.
Example
Use a bare-bones client and the command you need to make an API call.
Param
GetRegistryPolicyCommandInput
Returns
GetRegistryPolicyCommandOutput
See
input
shape.response
shape.config
shape.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.