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.

put_resource_policy

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