/*
* 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 UpdateQuerySuggestionsBlockList operation.
/// Updates a block list used for query suggestions for an index.
///
///
///
/// Updates to a block list might not take effect right away. Amazon Kendra needs to refresh
/// the entire suggestions list to apply any updates to the block list. Other changes
/// not related to the block list apply immediately.
///
///
///
/// If a block list is updating, then you need to wait for the first update to finish
/// before submitting another update.
///
///
///
/// Amazon Kendra supports partial updates, so you only need to provide the fields you
/// want to update.
///
///
///
/// UpdateQuerySuggestionsBlockList
is currently not supported in the Amazon
/// Web Services GovCloud (US-West) region.
///
///
public partial class UpdateQuerySuggestionsBlockListRequest : AmazonKendraRequest
{
private string _description;
private string _id;
private string _indexId;
private string _name;
private string _roleArn;
private S3Path _sourceS3Path;
///
/// Gets and sets the property Description.
///
/// A new description for the block list.
///
///
[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 Id.
///
/// The identifier of the block list you want to update.
///
///
[AWSProperty(Required=true, Min=36, Max=36)]
public string Id
{
get { return this._id; }
set { this._id = value; }
}
// Check to see if Id property is set
internal bool IsSetId()
{
return this._id != null;
}
///
/// Gets and sets the property IndexId.
///
/// The identifier of the index for the block list.
///
///
[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 new name for the block list.
///
///
[AWSProperty(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 IAM (Identity and Access Management) role used to access the block list text file
/// in S3.
///
///
[AWSProperty(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 where your block list text file sits in S3.
///
///
///
/// If you update your block list and provide the same path to the block list text file
/// in S3, then Amazon Kendra reloads the file to refresh the block list. Amazon Kendra
/// does not automatically refresh your block list. You need to call the UpdateQuerySuggestionsBlockList
/// API to refresh you block list.
///
///
///
/// If you update your block list, then Amazon Kendra asynchronously refreshes all query
/// suggestions with the latest content in the S3 file. This means changes might not take
/// effect immediately.
///
///
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;
}
}
}