VPCLattice / Client / get_resource_policy

get_resource_policy#

VPCLattice.Client.get_resource_policy(**kwargs)#

Retrieves information about the resource policy. The resource policy is an IAM policy created by AWS RAM on behalf of the resource owner when they share a resource.

See also: AWS API Documentation

Request Syntax

response = client.get_resource_policy(
    resourceArn='string'
)
Parameters:

resourceArn (string) –

[REQUIRED]

An IAM policy.

Return type:

dict

Returns:

Response Syntax

{
    'policy': 'string'
}

Response Structure

  • (dict) –

    • policy (string) –

      The Amazon Resource Name (ARN) of the service network or service.

Exceptions

  • VPCLattice.Client.exceptions.ValidationException

  • VPCLattice.Client.exceptions.AccessDeniedException

  • VPCLattice.Client.exceptions.ThrottlingException

  • VPCLattice.Client.exceptions.ResourceNotFoundException

  • VPCLattice.Client.exceptions.InternalServerException