/*
* 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
{
///
/// Specifies a transform that identifies, removes or masks PII data.
///
public partial class PIIDetection
{
private List _entityTypesToDetect = new List();
private List _inputs = new List();
private string _maskValue;
private string _name;
private string _outputColumnName;
private PiiType _piiType;
private double? _sampleFraction;
private double? _thresholdFraction;
///
/// Gets and sets the property EntityTypesToDetect.
///
/// Indicates the types of entities the PIIDetection transform will identify as PII data.
///
///
///
///
/// PII type entities include: PERSON_NAME, DATE, USA_SNN, EMAIL, USA_ITIN, USA_PASSPORT_NUMBER,
/// PHONE_NUMBER, BANK_ACCOUNT, IP_ADDRESS, MAC_ADDRESS, USA_CPT_CODE, USA_HCPCS_CODE,
/// USA_NATIONAL_DRUG_CODE, USA_MEDICARE_BENEFICIARY_IDENTIFIER, USA_HEALTH_INSURANCE_CLAIM_NUMBER,CREDIT_CARD,USA_NATIONAL_PROVIDER_IDENTIFIER,USA_DEA_NUMBER,USA_DRIVING_LICENSE
///
///
///
[AWSProperty(Required=true)]
public List EntityTypesToDetect
{
get { return this._entityTypesToDetect; }
set { this._entityTypesToDetect = value; }
}
// Check to see if EntityTypesToDetect property is set
internal bool IsSetEntityTypesToDetect()
{
return this._entityTypesToDetect != null && this._entityTypesToDetect.Count > 0;
}
///
/// Gets and sets the property Inputs.
///
/// The node ID inputs to the transform.
///
///
[AWSProperty(Required=true, Min=1, Max=1)]
public List Inputs
{
get { return this._inputs; }
set { this._inputs = value; }
}
// Check to see if Inputs property is set
internal bool IsSetInputs()
{
return this._inputs != null && this._inputs.Count > 0;
}
///
/// Gets and sets the property MaskValue.
///
/// Indicates the value that will replace the detected entity.
///
///
[AWSProperty(Min=0, Max=256)]
public string MaskValue
{
get { return this._maskValue; }
set { this._maskValue = value; }
}
// Check to see if MaskValue property is set
internal bool IsSetMaskValue()
{
return this._maskValue != null;
}
///
/// Gets and sets the property Name.
///
/// The name of the transform node.
///
///
[AWSProperty(Required=true)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
///
/// Gets and sets the property OutputColumnName.
///
/// Indicates the output column name that will contain any entity type detected in that
/// row.
///
///
public string OutputColumnName
{
get { return this._outputColumnName; }
set { this._outputColumnName = value; }
}
// Check to see if OutputColumnName property is set
internal bool IsSetOutputColumnName()
{
return this._outputColumnName != null;
}
///
/// Gets and sets the property PiiType.
///
/// Indicates the type of PIIDetection transform.
///
///
[AWSProperty(Required=true)]
public PiiType PiiType
{
get { return this._piiType; }
set { this._piiType = value; }
}
// Check to see if PiiType property is set
internal bool IsSetPiiType()
{
return this._piiType != null;
}
///
/// Gets and sets the property SampleFraction.
///
/// Indicates the fraction of the data to sample when scanning for PII entities.
///
///
[AWSProperty(Min=0, Max=1)]
public double SampleFraction
{
get { return this._sampleFraction.GetValueOrDefault(); }
set { this._sampleFraction = value; }
}
// Check to see if SampleFraction property is set
internal bool IsSetSampleFraction()
{
return this._sampleFraction.HasValue;
}
///
/// Gets and sets the property ThresholdFraction.
///
/// Indicates the fraction of the data that must be met in order for a column to be identified
/// as PII data.
///
///
[AWSProperty(Min=0, Max=1)]
public double ThresholdFraction
{
get { return this._thresholdFraction.GetValueOrDefault(); }
set { this._thresholdFraction = value; }
}
// Check to see if ThresholdFraction property is set
internal bool IsSetThresholdFraction()
{
return this._thresholdFraction.HasValue;
}
}
}