/*
* 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 rekognition-2016-06-27.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.Rekognition.Model
{
///
/// Container for the parameters to the DeleteProjectPolicy operation.
/// Deletes an existing project policy.
///
///
///
/// To get a list of project policies attached to a project, call ListProjectPolicies.
/// To attach a project policy to a project, call PutProjectPolicy.
///
///
///
/// This operation requires permissions to perform the rekognition:DeleteProjectPolicy
/// action.
///
///
public partial class DeleteProjectPolicyRequest : AmazonRekognitionRequest
{
private string _policyName;
private string _policyRevisionId;
private string _projectArn;
///
/// Gets and sets the property PolicyName.
///
/// The name of the policy that you want to delete.
///
///
[AWSProperty(Required=true, Min=1, Max=128)]
public string PolicyName
{
get { return this._policyName; }
set { this._policyName = value; }
}
// Check to see if PolicyName property is set
internal bool IsSetPolicyName()
{
return this._policyName != null;
}
///
/// Gets and sets the property PolicyRevisionId.
///
/// The ID of the project policy revision that you want to delete.
///
///
[AWSProperty(Max=64)]
public string PolicyRevisionId
{
get { return this._policyRevisionId; }
set { this._policyRevisionId = value; }
}
// Check to see if PolicyRevisionId property is set
internal bool IsSetPolicyRevisionId()
{
return this._policyRevisionId != null;
}
///
/// Gets and sets the property ProjectArn.
///
/// The Amazon Resource Name (ARN) of the project that the project policy you want to
/// delete is attached to.
///
///
[AWSProperty(Required=true, Min=20, Max=2048)]
public string ProjectArn
{
get { return this._projectArn; }
set { this._projectArn = value; }
}
// Check to see if ProjectArn property is set
internal bool IsSetProjectArn()
{
return this._projectArn != null;
}
}
}