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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-glue/lib/aws-sdk-glue/types.rb

Overview

Note:

When making an API call, you may pass PutResourcePolicyRequest data as a 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
}

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#enable_hybridString

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'.

Returns:

  • (String)


13413
13414
13415
13416
13417
13418
13419
13420
13421
# File 'gems/aws-sdk-glue/lib/aws-sdk-glue/types.rb', line 13413

class PutResourcePolicyRequest < Struct.new(
  :policy_in_json,
  :resource_arn,
  :policy_hash_condition,
  :policy_exists_condition,
  :enable_hybrid)
  SENSITIVE = []
  include Aws::Structure
end

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

Returns:

  • (String)


13413
13414
13415
13416
13417
13418
13419
13420
13421
# File 'gems/aws-sdk-glue/lib/aws-sdk-glue/types.rb', line 13413

class PutResourcePolicyRequest < Struct.new(
  :policy_in_json,
  :resource_arn,
  :policy_hash_condition,
  :policy_exists_condition,
  :enable_hybrid)
  SENSITIVE = []
  include Aws::Structure
end

#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)


13413
13414
13415
13416
13417
13418
13419
13420
13421
# File 'gems/aws-sdk-glue/lib/aws-sdk-glue/types.rb', line 13413

class PutResourcePolicyRequest < Struct.new(
  :policy_in_json,
  :resource_arn,
  :policy_hash_condition,
  :policy_exists_condition,
  :enable_hybrid)
  SENSITIVE = []
  include Aws::Structure
end

#policy_in_jsonString

Contains the policy document to set, in JSON format.

Returns:

  • (String)


13413
13414
13415
13416
13417
13418
13419
13420
13421
# File 'gems/aws-sdk-glue/lib/aws-sdk-glue/types.rb', line 13413

class PutResourcePolicyRequest < Struct.new(
  :policy_in_json,
  :resource_arn,
  :policy_hash_condition,
  :policy_exists_condition,
  :enable_hybrid)
  SENSITIVE = []
  include Aws::Structure
end

#resource_arnString

Do not use. For internal use only.

Returns:

  • (String)


13413
13414
13415
13416
13417
13418
13419
13420
13421
# File 'gems/aws-sdk-glue/lib/aws-sdk-glue/types.rb', line 13413

class PutResourcePolicyRequest < Struct.new(
  :policy_in_json,
  :resource_arn,
  :policy_hash_condition,
  :policy_exists_condition,
  :enable_hybrid)
  SENSITIVE = []
  include Aws::Structure
end