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 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]

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

Return type:

dict

Returns:

Response Syntax

{
    'policy': 'string'
}

Response Structure

  • (dict) –

    • policy (string) –

      An IAM policy.

Exceptions

  • VPCLattice.Client.exceptions.ValidationException

  • VPCLattice.Client.exceptions.AccessDeniedException

  • VPCLattice.Client.exceptions.ThrottlingException

  • VPCLattice.Client.exceptions.ResourceNotFoundException

  • VPCLattice.Client.exceptions.InternalServerException