Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

get_resource_policy

get_resource_policy(**kwargs)

Gets the resource-based permission policy that is set for the given environment.

See also: AWS API Documentation

Request Syntax

response = client.get_resource_policy(
    Identifier='string'
)
Parameters
Identifier (string) --

[REQUIRED]

The Amazon Resource Name (ARN) of the resource associated with the policy.

Return type
dict
Returns
Response Syntax
{
    'Policy': 'string'
}

Response Structure

  • (dict) --
    • Policy (string) --

      A JSON-formatted string for an Amazon Web Services resource-based policy.

Exceptions

  • MigrationHubRefactorSpaces.Client.exceptions.ResourceNotFoundException
  • MigrationHubRefactorSpaces.Client.exceptions.InternalServerException
  • MigrationHubRefactorSpaces.Client.exceptions.ValidationException
  • MigrationHubRefactorSpaces.Client.exceptions.ThrottlingException
  • MigrationHubRefactorSpaces.Client.exceptions.AccessDeniedException