View a markdown version of this page

Actions, resources, and condition keys for Amazon Serverless Application Repository - Service Authorization Reference
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Actions, resources, and condition keys for Amazon Serverless Application Repository

Amazon Serverless Application Repository (service prefix: serverlessrepo) provides the following service-specific operations, resources, actions, and condition keys for use in IAM permission policies.

References:

API operations defined by Amazon Serverless Application Repository

The following table maps API operations to the IAM actions they authorize. Only condition keys that have static values for the given API and action are listed; for the full set of condition keys supported by each action, see the Actions table.

Operation IAM action Condition key Possible value(s) Access level

CreateApplication

serverlessrepo:CreateApplication

Write

CreateApplicationVersion

serverlessrepo:CreateApplicationVersion

Write

CreateCloudFormationChangeSet

serverlessrepo:CreateCloudFormationChangeSet

Write

CreateCloudFormationTemplate

serverlessrepo:CreateCloudFormationTemplate

Write

DeleteApplication

serverlessrepo:DeleteApplication

Write

GetApplication

serverlessrepo:GetApplication

Read

GetApplicationPolicy

serverlessrepo:GetApplicationPolicy

Read

GetCloudFormationTemplate

serverlessrepo:GetCloudFormationTemplate

Read

ListApplicationDependencies

serverlessrepo:ListApplicationDependencies

List

ListApplicationVersions

serverlessrepo:ListApplicationVersions

List

ListApplications

serverlessrepo:ListApplications

List

PutApplicationPolicy

serverlessrepo:PutApplicationPolicy

Write

UnshareApplication

serverlessrepo:UnshareApplication

Write

UpdateApplication

serverlessrepo:UpdateApplication

Write

Actions defined by Amazon Serverless Application Repository

You can specify the following actions in the Action element of an IAM policy statement. Use policies to grant permissions to perform an operation in Amazon. When you use an action in a policy, you usually allow or deny access to the API operation or CLI command with the same name. However, in some cases, a single action controls access to more than one operation. Alternatively, some operations require several different actions.

Actions Description Resource types (*required) Condition keys Access level

CreateApplication

Grants permission to create an application, optionally including an Amazon SAM file to create the first application version in the same call

Write

CreateApplicationVersion

Grants permission to create an application version

applications*

Write

CreateCloudFormationChangeSet

Grants permission to create an Amazon CloudFormation ChangeSet for the given application

applications*

serverlessrepo:applicationType

Write

CreateCloudFormationTemplate

Grants permission to create an Amazon CloudFormation template

applications*

serverlessrepo:applicationType

Write

DeleteApplication

Grants permission to delete the specified application

applications*

Write

GetApplication

Grants permission to get the specified application

applications*

serverlessrepo:applicationType

Read

GetApplicationPolicy

Grants permission to get the policy for the specified application

applications*

Read

GetCloudFormationTemplate

Grants permission to get the specified Amazon CloudFormation template

applications*

Read

ListApplicationDependencies

Grants permission to retrieve the list of applications nested in the containing application

applications*

serverlessrepo:applicationType

List

ListApplicationVersions

Grants permission to list versions for the specified application owned by the requester

applications*

serverlessrepo:applicationType

List

ListApplications

Grants permission to list applications owned by the requester

List

PutApplicationPolicy

Grants permission to put the policy for the specified application

applications*

Write

SearchApplications

Grants permission to get all applications authorized for this user

serverlessrepo:applicationType

Read

UnshareApplication

Grants permission to unshare the specified application

applications*

Write

UpdateApplication

Grants permission to update meta-data of the application

applications*

Write

Resource types defined by Amazon Serverless Application Repository

The following resource types are defined by this service and can be used in the Resource element of IAM permission policy statements.

Resource types ARN Condition keys

applications

arn:${Partition}:serverlessrepo:${Region}:${Account}:applications/${ResourceId}

Condition keys for Amazon Serverless Application Repository

Amazon Serverless Application Repository defines the following condition keys that can be used in the Condition element of an IAM policy.

Condition keys Description Type

serverlessrepo:applicationType

Filters access by application type

String