/*
* 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 transfer-2018-11-05.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.Transfer.Model
{
///
/// Container for the parameters to the UpdateConnector operation.
/// Updates some of the parameters for an existing connector. Provide the ConnectorId
/// for the connector that you want to update, along with the new values for the parameters
/// to update.
///
public partial class UpdateConnectorRequest : AmazonTransferRequest
{
private string _accessRole;
private As2ConnectorConfig _as2Config;
private string _connectorId;
private string _loggingRole;
private SftpConnectorConfig _sftpConfig;
private string _url;
///
/// Gets and sets the property AccessRole.
///
/// With AS2, you can send files by calling StartFileTransfer
and specifying
/// the file paths in the request parameter, SendFilePaths
. We use the file’s
/// parent directory (for example, for --send-file-paths /bucket/dir/file.txt
,
/// parent directory is /bucket/dir/
) to temporarily store a processed AS2
/// message file, store the MDN when we receive them from the partner, and write a final
/// JSON file containing relevant metadata of the transmission. So, the AccessRole
/// needs to provide read and write access to the parent directory of the file location
/// used in the StartFileTransfer
request. Additionally, you need to provide
/// read and write access to the parent directory of the files that you intend to send
/// with StartFileTransfer
.
///
///
///
/// If you are using Basic authentication for your AS2 connector, the access role requires
/// the secretsmanager:GetSecretValue
permission for the secret. If the secret
/// is encrypted using a customer-managed key instead of the Amazon Web Services managed
/// key in Secrets Manager, then the role also needs the kms:Decrypt
permission
/// for that key.
///
///
[AWSProperty(Min=20, Max=2048)]
public string AccessRole
{
get { return this._accessRole; }
set { this._accessRole = value; }
}
// Check to see if AccessRole property is set
internal bool IsSetAccessRole()
{
return this._accessRole != null;
}
///
/// Gets and sets the property As2Config.
///
/// A structure that contains the parameters for an AS2 connector object.
///
///
public As2ConnectorConfig As2Config
{
get { return this._as2Config; }
set { this._as2Config = value; }
}
// Check to see if As2Config property is set
internal bool IsSetAs2Config()
{
return this._as2Config != null;
}
///
/// Gets and sets the property ConnectorId.
///
/// The unique identifier for the connector.
///
///
[AWSProperty(Required=true, Min=19, Max=19)]
public string ConnectorId
{
get { return this._connectorId; }
set { this._connectorId = value; }
}
// Check to see if ConnectorId property is set
internal bool IsSetConnectorId()
{
return this._connectorId != null;
}
///
/// Gets and sets the property LoggingRole.
///
/// The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that
/// allows a connector to turn on CloudWatch logging for Amazon S3 events. When set, you
/// can view connector activity in your CloudWatch logs.
///
///
[AWSProperty(Min=20, Max=2048)]
public string LoggingRole
{
get { return this._loggingRole; }
set { this._loggingRole = value; }
}
// Check to see if LoggingRole property is set
internal bool IsSetLoggingRole()
{
return this._loggingRole != null;
}
///
/// Gets and sets the property SftpConfig.
///
/// A structure that contains the parameters for an SFTP connector object.
///
///
public SftpConnectorConfig SftpConfig
{
get { return this._sftpConfig; }
set { this._sftpConfig = value; }
}
// Check to see if SftpConfig property is set
internal bool IsSetSftpConfig()
{
return this._sftpConfig != null;
}
///
/// Gets and sets the property Url.
///
/// The URL of the partner's AS2 or SFTP endpoint.
///
///
[AWSProperty(Max=255)]
public string Url
{
get { return this._url; }
set { this._url = value; }
}
// Check to see if Url property is set
internal bool IsSetUrl()
{
return this._url != null;
}
}
}