/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the glue-2017-03-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Glue.Model { /// /// Container for the parameters to the PutResourcePolicy operation. /// Sets the Data Catalog resource policy for access control. /// public partial class PutResourcePolicyRequest : AmazonGlueRequest { private EnableHybridValues _enableHybrid; private ExistCondition _policyExistsCondition; private string _policyHashCondition; private string _policyInJson; private string _resourceArn; /// /// Gets and sets the property EnableHybrid. /// /// If 'TRUE', indicates that you are using both methods to grant cross-account /// access to Data Catalog resources: /// /// /// /// 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'. /// /// public EnableHybridValues EnableHybrid { get { return this._enableHybrid; } set { this._enableHybrid = value; } } // Check to see if EnableHybrid property is set internal bool IsSetEnableHybrid() { return this._enableHybrid != null; } /// /// Gets and sets the property 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. /// /// public ExistCondition PolicyExistsCondition { get { return this._policyExistsCondition; } set { this._policyExistsCondition = value; } } // Check to see if PolicyExistsCondition property is set internal bool IsSetPolicyExistsCondition() { return this._policyExistsCondition != null; } /// /// Gets and sets the property PolicyHashCondition. /// /// 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. /// /// [AWSProperty(Min=1, Max=255)] public string PolicyHashCondition { get { return this._policyHashCondition; } set { this._policyHashCondition = value; } } // Check to see if PolicyHashCondition property is set internal bool IsSetPolicyHashCondition() { return this._policyHashCondition != null; } /// /// Gets and sets the property PolicyInJson. /// /// Contains the policy document to set, in JSON format. /// /// [AWSProperty(Required=true, Min=2)] public string PolicyInJson { get { return this._policyInJson; } set { this._policyInJson = value; } } // Check to see if PolicyInJson property is set internal bool IsSetPolicyInJson() { return this._policyInJson != null; } /// /// Gets and sets the property ResourceArn. /// /// Do not use. For internal use only. /// /// [AWSProperty(Min=1, Max=10240)] public string ResourceArn { get { return this._resourceArn; } set { this._resourceArn = value; } } // Check to see if ResourceArn property is set internal bool IsSetResourceArn() { return this._resourceArn != null; } } }