You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::Glue::Types::PutResourcePolicyRequest

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing PutResourcePolicyRequest as input to an Aws::Client method, you can use a vanilla Hash:

{
  policy_in_json: "PolicyJsonString", # required
  resource_arn: "GlueResourceArn",
  policy_hash_condition: "HashString",
  policy_exists_condition: "MUST_EXIST", # accepts MUST_EXIST, NOT_EXIST, NONE
  enable_hybrid: "TRUE", # accepts TRUE, FALSE
}

Instance Attribute Summary collapse

Instance Attribute Details

#enable_hybridString

Allows you to specify if you want to use both resource-level and account/catalog-level resource policies. A resource-level policy is a policy attached to an individual resource such as a database or a table.

The default value of NO indicates that resource-level policies cannot co-exist with an account-level policy. A value of YES means the use of both resource-level and account/catalog-level resource policies is allowed.

Possible values:

  • TRUE
  • FALSE

Returns:

  • (String)

    Allows you to specify if you want to use both resource-level and account/catalog-level resource policies.

#policy_exists_conditionString

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 will not depend on the existence of a policy.

Possible values:

  • MUST_EXIST
  • NOT_EXIST
  • NONE

Returns:

  • (String)

    A value of MUST_EXIST is used to update a policy.

#policy_hash_conditionString

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

Returns:

  • (String)

    The hash value returned when the previous policy was set using PutResourcePolicy.

#policy_in_jsonString

Contains the policy document to set, in JSON format.

Returns:

  • (String)

    Contains the policy document to set, in JSON format.

#resource_arnString

The ARN of the AWS Glue resource for the resource policy to be set. For more information about AWS Glue resource ARNs, see the AWS Glue ARN string pattern

Returns:

  • (String)

    The ARN of the AWS Glue resource for the resource policy to be set.