/*
* 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 kendra-2019-02-03.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.Kendra.Model
{
///
/// Container for the parameters to the CreateQuerySuggestionsBlockList operation.
/// Creates a block list to exlcude certain queries from suggestions.
///
///
///
/// Any query that contains words or phrases specified in the block list is blocked or
/// filtered out from being shown as a suggestion.
///
///
///
/// You need to provide the file location of your block list text file in your S3 bucket.
/// In your text file, enter each block word or phrase on a separate line.
///
///
///
/// For information on the current quota limits for block lists, see Quotas
/// for Amazon Kendra.
///
///
///
/// CreateQuerySuggestionsBlockList
is currently not supported in the Amazon
/// Web Services GovCloud (US-West) region.
///
///
///
/// For an example of creating a block list for query suggestions using the Python SDK,
/// see Query
/// suggestions block list.
///
///
public partial class CreateQuerySuggestionsBlockListRequest : AmazonKendraRequest
{
private string _clientToken;
private string _description;
private string _indexId;
private string _name;
private string _roleArn;
private S3Path _sourceS3Path;
private List _tags = new List();
///
/// Gets and sets the property ClientToken.
///
/// A token that you provide to identify the request to create a query suggestions block
/// list.
///
///
[AWSProperty(Min=1, Max=100)]
public string ClientToken
{
get { return this._clientToken; }
set { this._clientToken = value; }
}
// Check to see if ClientToken property is set
internal bool IsSetClientToken()
{
return this._clientToken != null;
}
///
/// Gets and sets the property Description.
///
/// A description for the block list.
///
///
///
/// For example, the description "List of all offensive words that can appear in user
/// queries and need to be blocked from suggestions."
///
///
[AWSProperty(Min=0, Max=1000)]
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
///
/// Gets and sets the property IndexId.
///
/// The identifier of the index you want to create a query suggestions block list for.
///
///
[AWSProperty(Required=true, Min=36, Max=36)]
public string IndexId
{
get { return this._indexId; }
set { this._indexId = value; }
}
// Check to see if IndexId property is set
internal bool IsSetIndexId()
{
return this._indexId != null;
}
///
/// Gets and sets the property Name.
///
/// A name for the block list.
///
///
///
/// For example, the name 'offensive-words', which includes all offensive words that could
/// appear in user queries and need to be blocked from suggestions.
///
///
[AWSProperty(Required=true, Min=1, Max=100)]
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 RoleArn.
///
/// The Amazon Resource Name (ARN) of an IAM role with permission to access your S3 bucket
/// that contains the block list text file. For more information, see IAM
/// access roles for Amazon Kendra.
///
///
[AWSProperty(Required=true, Min=0, Max=1284)]
public string RoleArn
{
get { return this._roleArn; }
set { this._roleArn = value; }
}
// Check to see if RoleArn property is set
internal bool IsSetRoleArn()
{
return this._roleArn != null;
}
///
/// Gets and sets the property SourceS3Path.
///
/// The S3 path to your block list text file in your S3 bucket.
///
///
///
/// Each block word or phrase should be on a separate line in a text file.
///
///
///
/// For information on the current quota limits for block lists, see Quotas
/// for Amazon Kendra.
///
///
[AWSProperty(Required=true)]
public S3Path SourceS3Path
{
get { return this._sourceS3Path; }
set { this._sourceS3Path = value; }
}
// Check to see if SourceS3Path property is set
internal bool IsSetSourceS3Path()
{
return this._sourceS3Path != null;
}
///
/// Gets and sets the property Tags.
///
/// A list of key-value pairs that identify or categorize the block list. Tag keys and
/// values can consist of Unicode letters, digits, white space, and any of the following
/// symbols: _ . : / = + - @.
///
///
[AWSProperty(Min=0, Max=200)]
public List Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
}
}