AWSServerlessApplicationRepository

2020/03/10 - AWSServerlessApplicationRepository - 1 new2 updated api methods

Changes  Update serverlessrepo client to latest version

UnshareApplication (new) Link ¶

Unshares an application from an AWS Organization.

This operation can be called only from the organization's master account.

See also: AWS API Documentation

Request Syntax

client.unshare_application(
    ApplicationId='string',
    OrganizationId='string'
)
type ApplicationId:

string

param ApplicationId:

[REQUIRED]

The Amazon Resource Name (ARN) of the application.

type OrganizationId:

string

param OrganizationId:

[REQUIRED]

The AWS Organization ID to unshare the application from.

returns:

None

GetApplicationPolicy (updated) Link ¶
Changes (response)
{'Statements': {'PrincipalOrgIDs': ['string']}}

Retrieves the policy for the application.

See also: AWS API Documentation

Request Syntax

client.get_application_policy(
    ApplicationId='string'
)
type ApplicationId:

string

param ApplicationId:

[REQUIRED]

The Amazon Resource Name (ARN) of the application.

rtype:

dict

returns:

Response Syntax

{
    'Statements': [
        {
            'Actions': [
                'string',
            ],
            'PrincipalOrgIDs': [
                'string',
            ],
            'Principals': [
                'string',
            ],
            'StatementId': 'string'
        },
    ]
}

Response Structure

  • (dict) --

    Success

    • Statements (list) --

      An array of policy statements applied to the application.

      • (dict) --

        Policy statement applied to the application.

        • Actions (list) --

          For the list of actions supported for this operation, see Application Permissions.

          • (string) --

        • PrincipalOrgIDs (list) --

          An array of PrinciplalOrgIDs, which corresponds to AWS IAM aws:PrincipalOrgID global condition key.

          • (string) --

        • Principals (list) --

          An array of AWS account IDs, or * to make the application public.

          • (string) --

        • StatementId (string) --

          A unique ID for the statement.

PutApplicationPolicy (updated) Link ¶
Changes (both)
{'Statements': {'PrincipalOrgIDs': ['string']}}
Sets the permission policy for an application. For the list of actions supported for this operation, see

Application Permissions .

See also: AWS API Documentation

Request Syntax

client.put_application_policy(
    ApplicationId='string',
    Statements=[
        {
            'Actions': [
                'string',
            ],
            'PrincipalOrgIDs': [
                'string',
            ],
            'Principals': [
                'string',
            ],
            'StatementId': 'string'
        },
    ]
)
type ApplicationId:

string

param ApplicationId:

[REQUIRED]

The Amazon Resource Name (ARN) of the application.

type Statements:

list

param Statements:

[REQUIRED]

An array of policy statements applied to the application.

  • (dict) --

    Policy statement applied to the application.

    • Actions (list) -- [REQUIRED]

      For the list of actions supported for this operation, see Application Permissions.

      • (string) --

    • PrincipalOrgIDs (list) --

      An array of PrinciplalOrgIDs, which corresponds to AWS IAM aws:PrincipalOrgID global condition key.

      • (string) --

    • Principals (list) -- [REQUIRED]

      An array of AWS account IDs, or * to make the application public.

      • (string) --

    • StatementId (string) --

      A unique ID for the statement.

rtype:

dict

returns:

Response Syntax

{
    'Statements': [
        {
            'Actions': [
                'string',
            ],
            'PrincipalOrgIDs': [
                'string',
            ],
            'Principals': [
                'string',
            ],
            'StatementId': 'string'
        },
    ]
}

Response Structure

  • (dict) --

    Success

    • Statements (list) --

      An array of policy statements applied to the application.

      • (dict) --

        Policy statement applied to the application.

        • Actions (list) --

          For the list of actions supported for this operation, see Application Permissions.

          • (string) --

        • PrincipalOrgIDs (list) --

          An array of PrinciplalOrgIDs, which corresponds to AWS IAM aws:PrincipalOrgID global condition key.

          • (string) --

        • Principals (list) --

          An array of AWS account IDs, or * to make the application public.

          • (string) --

        • StatementId (string) --

          A unique ID for the statement.