glue_put_resource_policy: Sets the Data Catalog resource policy for access control

View source: R/glue_operations.R

glue_put_resource_policyR Documentation

Sets the Data Catalog resource policy for access control

Description

Sets the Data Catalog resource policy for access control.

See https://www.paws-r-sdk.com/docs/glue_put_resource_policy/ for full documentation.

Usage

glue_put_resource_policy(
  PolicyInJson,
  ResourceArn = NULL,
  PolicyHashCondition = NULL,
  PolicyExistsCondition = NULL,
  EnableHybrid = NULL
)

Arguments

PolicyInJson

[required] Contains the policy document to set, in JSON format.

ResourceArn

Do not use. For internal use only.

PolicyHashCondition

The hash value returned when the previous policy was set using put_resource_policy. Its purpose is to prevent concurrent modifications of a policy. Do not use this parameter if no previous policy has been set.

PolicyExistsCondition

A value of MUST_EXIST is used to update a policy. A value of NOT_EXIST is used to create a new policy. If a value of NONE or a null value is used, the call does not depend on the existence of a policy.

EnableHybrid

If 'TRUE', indicates that you are using both methods to grant cross-account access to Data Catalog resources:

  • By directly updating the resource policy with PutResourePolicy

  • By using the Grant permissions command on the Amazon Web Services Management Console.

Must be set to 'TRUE' if you have already used the Management Console to grant cross-account access, otherwise the call fails. Default is 'FALSE'.


paws.analytics documentation built on Sept. 11, 2023, 5:06 p.m.