put_resource_policy

NetworkManager.Client.put_resource_policy(**kwargs)

Creates or updates a resource policy.

See also: AWS API Documentation

Request Syntax

response = client.put_resource_policy(
    PolicyDocument='string',
    ResourceArn='string'
)
Parameters
  • PolicyDocument (string) --

    [REQUIRED]

    The JSON resource policy document.

  • ResourceArn (string) --

    [REQUIRED]

    The ARN of the resource policy.

Return type

dict

Returns

Response Syntax

{}

Response Structure

  • (dict) --

Exceptions

  • NetworkManager.Client.exceptions.ValidationException
  • NetworkManager.Client.exceptions.ServiceQuotaExceededException
  • NetworkManager.Client.exceptions.AccessDeniedException
  • NetworkManager.Client.exceptions.ConflictException
  • NetworkManager.Client.exceptions.ThrottlingException
  • NetworkManager.Client.exceptions.InternalServerException