NAME

Paws::Glue::PutResourcePolicy - Arguments for method PutResourcePolicy on Paws::Glue

DESCRIPTION

This class represents the parameters used for calling the method PutResourcePolicy on the AWS Glue service. Use the attributes of this class as arguments to method PutResourcePolicy.

You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to PutResourcePolicy.

SYNOPSIS

my $glue = Paws->service('Glue');
my $PutResourcePolicyResponse = $glue->PutResourcePolicy(
  PolicyInJson          => 'MyPolicyJsonString',
  EnableHybrid          => 'TRUE',                 # OPTIONAL
  PolicyExistsCondition => 'MUST_EXIST',           # OPTIONAL
  PolicyHashCondition   => 'MyHashString',         # OPTIONAL
  ResourceArn           => 'MyGlueResourceArn',    # OPTIONAL
);

# Results:
my $PolicyHash = $PutResourcePolicyResponse->PolicyHash;

# Returns a L<Paws::Glue::PutResourcePolicyResponse> object.

Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see https://docs.aws.amazon.com/goto/WebAPI/glue/PutResourcePolicy

ATTRIBUTES

EnableHybrid => Str

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

Valid values are: "TRUE", "FALSE"

PolicyExistsCondition => Str

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.

Valid values are: "MUST_EXIST", "NOT_EXIST", "NONE"

PolicyHashCondition => Str

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.

REQUIRED PolicyInJson => Str

Contains the policy document to set, in JSON format.

ResourceArn => Str

Do not use. For internal use only.

SEE ALSO

This class forms part of Paws, documenting arguments for method PutResourcePolicy in Paws::Glue

BUGS and CONTRIBUTIONS

The source code is located here: https://github.com/pplu/aws-sdk-perl

Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues