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:
-
Learn how to configure this service.
-
View a list of the API operations available for this service.
-
Learn how to secure this service and its resources by using IAM permission policies.
-
View the programmatic service authorization reference
for this service.
Topics
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 |
Write |
|||
|
CreateApplicationVersion |
Write |
|||
|
CreateCloudFormationChangeSet |
Write |
|||
|
CreateCloudFormationTemplate |
Write |
|||
|
DeleteApplication |
Write |
|||
|
GetApplication |
Read |
|||
|
GetApplicationPolicy |
Read |
|||
|
GetCloudFormationTemplate |
Read |
|||
|
ListApplicationDependencies |
List |
|||
|
ListApplicationVersions |
List |
|||
|
ListApplications |
List |
|||
|
PutApplicationPolicy |
Write |
|||
|
UnshareApplication |
Write |
|||
|
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 |
|---|---|---|---|---|
Grants permission to create an application, optionally including an Amazon SAM file to create the first application version in the same call |
Write |
|||
Grants permission to create an application version |
Write |
|||
Grants permission to create an Amazon CloudFormation ChangeSet for the given application |
Write |
|||
Grants permission to create an Amazon CloudFormation template |
Write |
|||
Grants permission to delete the specified application |
Write |
|||
Grants permission to get the specified application |
Read |
|||
Grants permission to get the policy for the specified application |
Read |
|||
Grants permission to get the specified Amazon CloudFormation template |
Read |
|||
Grants permission to retrieve the list of applications nested in the containing application |
List |
|||
Grants permission to list versions for the specified application owned by the requester |
List |
|||
Grants permission to list applications owned by the requester |
List |
|||
Grants permission to put the policy for the specified application |
Write |
|||
Grants permission to get all applications authorized for this user |
Read |
|||
Grants permission to unshare the specified application |
Write |
|||
Grants permission to update meta-data of the application |
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 |
|---|---|---|
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 |
|---|---|---|
Filters access by application type |
String |