SignInService / Client / get_resource_policy

get_resource_policy

SignInService.Client.get_resource_policy()

Retrieve the account’s consolidated SignIn resource-based policy

See also: AWS API Documentation

Request Syntax

response = client.get_resource_policy()
Return type:

dict

Returns:

Response Syntax

{
    'signinResourceBasedPolicy': {
        'version': 'string',
        'statement': [
            {
                'effect': 'string',
                'principal': {
                    'string': 'string'
                },
                'action': [
                    'string',
                ],
                'resource': 'string',
                'condition': {
                    'string': {
                        'string': [
                            'string',
                        ]
                    }
                }
            },
        ]
    }
}

Response Structure

  • (dict) –

    Output for GetResourcePolicy operation

    • signinResourceBasedPolicy (dict) –

      The account’s SignIn resource-based policy

      • version (string) –

        Policy version

      • statement (list) –

        Policy statements

        • (dict) –

          Individual policy statement within a resource-based policy

          • effect (string) –

            Effect of the policy statement (Allow/Deny)

          • principal (dict) –

            Principal the statement applies to

            • (string) –

              • (string) –

          • action (list) –

            Actions the statement controls

            • (string) –

          • resource (string) –

            Resource the statement applies to

          • condition (dict) –

            Condition block for the statement

            • (string) –

              Condition type identifier

              • (dict) –

                Condition mapping of keys to values

                • (string) –

                  • (list) –

                    List of condition values

                    • (string) –

Exceptions