get_resource_policy

MigrationHubRefactorSpaces.Client.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