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

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
  policy_hash_condition: "HashString",
  policy_exists_condition: "MUST_EXIST", # accepts MUST_EXIST, NOT_EXIST, NONE
}

Instance Attribute Summary collapse

Instance Attribute Details

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

Returns:

  • (String)


8955
8956
8957
8958
8959
8960
# File 'gems/aws-sdk-glue/lib/aws-sdk-glue/types.rb', line 8955

class PutResourcePolicyRequest < Struct.new(
  :policy_in_json,
  :policy_hash_condition,
  :policy_exists_condition)
  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)


8955
8956
8957
8958
8959
8960
# File 'gems/aws-sdk-glue/lib/aws-sdk-glue/types.rb', line 8955

class PutResourcePolicyRequest < Struct.new(
  :policy_in_json,
  :policy_hash_condition,
  :policy_exists_condition)
  include Aws::Structure
end

#policy_in_jsonString

Contains the policy document to set, in JSON format.

Returns:

  • (String)


8955
8956
8957
8958
8959
8960
# File 'gems/aws-sdk-glue/lib/aws-sdk-glue/types.rb', line 8955

class PutResourcePolicyRequest < Struct.new(
  :policy_in_json,
  :policy_hash_condition,
  :policy_exists_condition)
  include Aws::Structure
end