View a markdown version of this page

Actions, resources, and condition keys for AWS Serverless Application Repository - Service Authorization Reference

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

AWS 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 AWS 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 AWS 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 AWS. 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 AWS 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 AWS CloudFormation ChangeSet for the given application

applications*

serverlessrepo:applicationType

Write

CreateCloudFormationTemplate

Grants permission to create an AWS 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 AWS 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 AWS 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 AWS Serverless Application Repository

AWS 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