/*
* 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 CreateAgreement operation.
/// Creates an agreement. An agreement is a bilateral trading partner agreement, or partnership,
/// between an Transfer Family server and an AS2 process. The agreement defines the file
/// and message transfer relationship between the server and the AS2 process. To define
/// an agreement, Transfer Family combines a server, local profile, partner profile, certificate,
/// and other attributes.
///
///
///
/// The partner is identified with the PartnerProfileId
, and the AS2 process
/// is identified with the LocalProfileId
.
///
///
public partial class CreateAgreementRequest : AmazonTransferRequest
{
private string _accessRole;
private string _baseDirectory;
private string _description;
private string _localProfileId;
private string _partnerProfileId;
private string _serverId;
private AgreementStatusType _status;
private List _tags = new List();
///
/// 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(Required=true, 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 BaseDirectory.
///
/// The landing directory (folder) for files transferred by using the AS2 protocol.
///
///
///
/// A BaseDirectory
example is /DOC-EXAMPLE-BUCKET/home/mydirectory
.
///
///
[AWSProperty(Required=true, Max=1024)]
public string BaseDirectory
{
get { return this._baseDirectory; }
set { this._baseDirectory = value; }
}
// Check to see if BaseDirectory property is set
internal bool IsSetBaseDirectory()
{
return this._baseDirectory != null;
}
///
/// Gets and sets the property Description.
///
/// A name or short description to identify the agreement.
///
///
[AWSProperty(Min=1, Max=200)]
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 LocalProfileId.
///
/// A unique identifier for the AS2 local profile.
///
///
[AWSProperty(Required=true, Min=19, Max=19)]
public string LocalProfileId
{
get { return this._localProfileId; }
set { this._localProfileId = value; }
}
// Check to see if LocalProfileId property is set
internal bool IsSetLocalProfileId()
{
return this._localProfileId != null;
}
///
/// Gets and sets the property PartnerProfileId.
///
/// A unique identifier for the partner profile used in the agreement.
///
///
[AWSProperty(Required=true, Min=19, Max=19)]
public string PartnerProfileId
{
get { return this._partnerProfileId; }
set { this._partnerProfileId = value; }
}
// Check to see if PartnerProfileId property is set
internal bool IsSetPartnerProfileId()
{
return this._partnerProfileId != null;
}
///
/// Gets and sets the property ServerId.
///
/// A system-assigned unique identifier for a server instance. This is the specific server
/// that the agreement uses.
///
///
[AWSProperty(Required=true, Min=19, Max=19)]
public string ServerId
{
get { return this._serverId; }
set { this._serverId = value; }
}
// Check to see if ServerId property is set
internal bool IsSetServerId()
{
return this._serverId != null;
}
///
/// Gets and sets the property Status.
///
/// The status of the agreement. The agreement can be either ACTIVE
or INACTIVE
.
///
///
public AgreementStatusType Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
///
/// Gets and sets the property Tags.
///
/// Key-value pairs that can be used to group and search for agreements.
///
///
[AWSProperty(Min=1, Max=50)]
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;
}
}
}