get_application_policy
(**kwargs)¶Retrieves the policy for the application.
See also: AWS API Documentation
Request Syntax
response = client.get_application_policy(
ApplicationId='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the application.
{
'Statements': [
{
'Actions': [
'string',
],
'PrincipalOrgIDs': [
'string',
],
'Principals': [
'string',
],
'StatementId': 'string'
},
]
}
Response Structure
Success
An array of policy statements applied to the application.
Policy statement applied to the application.
For the list of actions supported for this operation, see Application Permissions.
An array of PrinciplalOrgIDs, which corresponds to AWS IAM aws:PrincipalOrgID global condition key.
An array of AWS account IDs, or * to make the application public.
A unique ID for the statement.
Exceptions
ServerlessApplicationRepository.Client.exceptions.NotFoundException
ServerlessApplicationRepository.Client.exceptions.TooManyRequestsException
ServerlessApplicationRepository.Client.exceptions.BadRequestException
ServerlessApplicationRepository.Client.exceptions.InternalServerErrorException
ServerlessApplicationRepository.Client.exceptions.ForbiddenException