amplifybackend:GetBackendAPIModels

Read

amplifybackend:GetBackendAPIModels is a Read access-level action in the amplifybackend service. Grants permission to retrieve models for an API of an existing Amplify Admin backend environment by appId and backendEnvironmentName

Resource types

ARNs that amplifybackend:GetBackendAPIModels can be scoped to in an IAM policy.

arn:${Partition}:amplifybackend:${Region}:${Account}:/backend/${AppId}/api/ required
api
arn:${Partition}:amplifybackend:${Region}:${Account}:/backend/${AppId}/ required
backend
arn:${Partition}:amplifybackend:${Region}:${Account}:/backend/${AppId}/environments/ required
environment

Condition keys

No condition keys are documented for this action.

Example IAM policy

A minimal policy that allows amplifybackend:GetBackendAPIModels. Replace "Resource": "*" with a specific ARN to follow least privilege.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowAmplifybackendGetBackendAPIModels",
      "Effect": "Allow",
      "Action": "amplifybackend:GetBackendAPIModels",
      "Resource": "*"
    }
  ]
}

Related actions in amplifybackend

View all amplifybackend actions →