Menu
AWS Serverless Application Repository
Developer Guide

Applications applicationId Policy

URI

/applications/ applicationId /policy

HTTP Methods

GET

Operation ID: GetApplicationPolicy

Gets the policy for the specified application.

Path Parameters

Name Type Required Description
applicationId String True

The ID of the application to get.

Responses

Status Code Response Model Description
200 ApplicationPolicy

Success

400 BadRequestException

One of the parameters in the request is invalid.

500 InternalServerErrorException

The AWS Serverless Application Repository service encountered an internal error.

403 ForbiddenException

The client is not authenticated.

404 NotFoundException

The resource (for example, an access policy statement) specified in the request doesn't exist.

429 TooManyRequestsException

The client is sending more than the allowed number of requests per unit of time.

PUT

Operation ID: PutApplicationPolicy

Puts the policy for the specified application.

Path Parameters

Name Type Required Description
applicationId String True

The ID of the application to get.

Responses

Status Code Response Model Description
200 ApplicationPolicy

Success

400 BadRequestException

One of the parameters in the request is invalid.

500 InternalServerErrorException

The AWS Serverless Application Repository service encountered an internal error.

403 ForbiddenException

The client is not authenticated.

404 NotFoundException

The resource (for example, an access policy statement) specified in the request doesn't exist.

429 TooManyRequestsException

The client is sending more than the allowed number of requests per unit of time.

Schemas

Request Bodies

Example PUT

{ "statements": [ { "statementId": "string", "principals": [ "string" ], "actions": [ "string" ] } ] }

Response Bodies

Example ApplicationPolicy

{ "statements": [ { "statementId": "string", "principals": [ "string" ], "actions": [ "string" ] } ] }

Example BadRequestException

{ "message": "string", "errorCode": "string" }

Example ForbiddenException

{ "message": "string", "errorCode": "string" }

Example NotFoundException

{ "message": "string", "errorCode": "string" }

Example TooManyRequestsException

{ "message": "string", "errorCode": "string" }

Example InternalServerErrorException

{ "message": "string", "errorCode": "string" }

Properties

ApplicationPolicy

Policy statements applied to the application.

Property Type Required Description
statements

Array of type ApplicationPolicyStatement

True

An array of policy statements applied to the application.

ApplicationPolicyStatement

Policy statement applied to the application.

Property Type Required Description
statementId

string

False

A unique ID for the statement.

principals

Array of type string

True

An AWS account ID, or * to make the application public.

actions

Array of type string

True

A list of supported actions:

GetApplication

CreateCloudFormationChangeSet

ListApplicationVersions

SearchApplications

Deploy (Note: This action enables all other actions preceding.)

BadRequestException

One of the parameters in the request is invalid.

Property Type Required Description
message

string

False

One of the parameters in the request is invalid.

errorCode

string

False

400

ForbiddenException

The client is not authenticated.

Property Type Required Description
message

string

False

The client is not authenticated.

errorCode

string

False

403

InternalServerErrorException

The AWS Serverless Application Repository service encountered an internal error.

Property Type Required Description
message

string

False

The AWS Serverless Application Repository service encountered an internal error.

errorCode

string

False

500

NotFoundException

The resource (for example, an access policy statement) specified in the request doesn't exist.

Property Type Required Description
message

string

False

The resource (for example, an access policy statement) specified in the request doesn't exist.

errorCode

string

False

404

TooManyRequestsException

The client is sending more than the allowed number of requests per unit of time.

Property Type Required Description
message

string

False

The client is sending more than the allowed number of requests per unit of time.

errorCode

string

False

429