/*
* 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 datasync-2018-11-09.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.DataSync.Model
{
///
/// Container for the parameters to the CreateLocationEfs operation.
/// Creates an endpoint for an Amazon EFS file system that DataSync can access for a transfer.
/// For more information, see Creating
/// a location for Amazon EFS.
///
public partial class CreateLocationEfsRequest : AmazonDataSyncRequest
{
private string _accessPointArn;
private Ec2Config _ec2Config;
private string _efsFilesystemArn;
private string _fileSystemAccessRoleArn;
private EfsInTransitEncryption _inTransitEncryption;
private string _subdirectory;
private List _tags = new List();
///
/// Gets and sets the property AccessPointArn.
///
/// Specifies the Amazon Resource Name (ARN) of the access point that DataSync uses to
/// access the Amazon EFS file system.
///
///
[AWSProperty(Max=128)]
public string AccessPointArn
{
get { return this._accessPointArn; }
set { this._accessPointArn = value; }
}
// Check to see if AccessPointArn property is set
internal bool IsSetAccessPointArn()
{
return this._accessPointArn != null;
}
///
/// Gets and sets the property Ec2Config.
///
/// Specifies the subnet and security groups DataSync uses to access your Amazon EFS file
/// system.
///
///
[AWSProperty(Required=true)]
public Ec2Config Ec2Config
{
get { return this._ec2Config; }
set { this._ec2Config = value; }
}
// Check to see if Ec2Config property is set
internal bool IsSetEc2Config()
{
return this._ec2Config != null;
}
///
/// Gets and sets the property EfsFilesystemArn.
///
/// Specifies the ARN for the Amazon EFS file system.
///
///
[AWSProperty(Required=true, Max=128)]
public string EfsFilesystemArn
{
get { return this._efsFilesystemArn; }
set { this._efsFilesystemArn = value; }
}
// Check to see if EfsFilesystemArn property is set
internal bool IsSetEfsFilesystemArn()
{
return this._efsFilesystemArn != null;
}
///
/// Gets and sets the property FileSystemAccessRoleArn.
///
/// Specifies an Identity and Access Management (IAM) role that DataSync assumes when
/// mounting the Amazon EFS file system.
///
///
[AWSProperty(Max=2048)]
public string FileSystemAccessRoleArn
{
get { return this._fileSystemAccessRoleArn; }
set { this._fileSystemAccessRoleArn = value; }
}
// Check to see if FileSystemAccessRoleArn property is set
internal bool IsSetFileSystemAccessRoleArn()
{
return this._fileSystemAccessRoleArn != null;
}
///
/// Gets and sets the property InTransitEncryption.
///
/// Specifies whether you want DataSync to use Transport Layer Security (TLS) 1.2 encryption
/// when it copies data to or from the Amazon EFS file system.
///
///
///
/// If you specify an access point using AccessPointArn
or an IAM role using
/// FileSystemAccessRoleArn
, you must set this parameter to TLS1_2
.
///
///
public EfsInTransitEncryption InTransitEncryption
{
get { return this._inTransitEncryption; }
set { this._inTransitEncryption = value; }
}
// Check to see if InTransitEncryption property is set
internal bool IsSetInTransitEncryption()
{
return this._inTransitEncryption != null;
}
///
/// Gets and sets the property Subdirectory.
///
/// Specifies a mount path for your Amazon EFS file system. This is where DataSync reads
/// or writes data (depending on if this is a source or destination location). By default,
/// DataSync uses the root directory, but you can also include subdirectories.
///
///
///
/// You must specify a value with forward slashes (for example, /path/to/folder
).
///
///
///
[AWSProperty(Max=4096)]
public string Subdirectory
{
get { return this._subdirectory; }
set { this._subdirectory = value; }
}
// Check to see if Subdirectory property is set
internal bool IsSetSubdirectory()
{
return this._subdirectory != null;
}
///
/// Gets and sets the property Tags.
///
/// Specifies the key-value pair that represents a tag that you want to add to the resource.
/// The value can be an empty string. This value helps you manage, filter, and search
/// for your resources. We recommend that you create a name tag for your location.
///
///
[AWSProperty(Min=0, 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;
}
}
}