/*
* 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 elasticfilesystem-2015-02-01.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.ElasticFileSystem.Model
{
///
/// Container for the parameters to the CreateAccessPoint operation.
/// Creates an EFS access point. An access point is an application-specific view into
/// an EFS file system that applies an operating system user and group, and a file system
/// path, to any file system request made through the access point. The operating system
/// user and group override any identity information provided by the NFS client. The file
/// system path is exposed as the access point's root directory. Applications using the
/// access point can only access data in the application's own directory and any subdirectories.
/// To learn more, see Mounting
/// a file system using EFS access points.
///
///
///
/// If multiple requests to create access points on the same file system are sent in quick
/// succession, and the file system is near the limit of 1,000 access points, you may
/// experience a throttling response for these requests. This is to ensure that the file
/// system does not exceed the stated access point limit.
///
///
///
/// This operation requires permissions for the elasticfilesystem:CreateAccessPoint
/// action.
///
///
///
/// Access points can be tagged on creation. If tags are specified in the creation action,
/// IAM performs additional authorization on the elasticfilesystem:TagResource
/// action to verify if users have permissions to create tags. Therefore, you must grant
/// explicit permissions to use the elasticfilesystem:TagResource
action.
/// For more information, see Granting
/// permissions to tag resources during creation.
///
///
public partial class CreateAccessPointRequest : AmazonElasticFileSystemRequest
{
private string _clientToken;
private string _fileSystemId;
private PosixUser _posixUser;
private RootDirectory _rootDirectory;
private List _tags = new List();
///
/// Gets and sets the property ClientToken.
///
/// A string of up to 64 ASCII characters that Amazon EFS uses to ensure idempotent creation.
///
///
[AWSProperty(Min=1, Max=64)]
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 FileSystemId.
///
/// The ID of the EFS file system that the access point provides access to.
///
///
[AWSProperty(Required=true, Max=128)]
public string FileSystemId
{
get { return this._fileSystemId; }
set { this._fileSystemId = value; }
}
// Check to see if FileSystemId property is set
internal bool IsSetFileSystemId()
{
return this._fileSystemId != null;
}
///
/// Gets and sets the property PosixUser.
///
/// The operating system user and group applied to all file system requests made using
/// the access point.
///
///
public PosixUser PosixUser
{
get { return this._posixUser; }
set { this._posixUser = value; }
}
// Check to see if PosixUser property is set
internal bool IsSetPosixUser()
{
return this._posixUser != null;
}
///
/// Gets and sets the property RootDirectory.
///
/// Specifies the directory on the Amazon EFS file system that the access point exposes
/// as the root directory of your file system to NFS clients using the access point. The
/// clients using the access point can only access the root directory and below. If the
/// RootDirectory
> Path
specified does not exist, EFS creates
/// it and applies the CreationInfo
settings when a client connects to an
/// access point. When specifying a RootDirectory
, you must provide the Path
,
/// and the CreationInfo
.
///
///
///
/// Amazon EFS creates a root directory only if you have provided the CreationInfo: OwnUid,
/// OwnGID, and permissions for the directory. If you do not provide this information,
/// Amazon EFS does not create the root directory. If the root directory does not exist,
/// attempts to mount using the access point will fail.
///
///
public RootDirectory RootDirectory
{
get { return this._rootDirectory; }
set { this._rootDirectory = value; }
}
// Check to see if RootDirectory property is set
internal bool IsSetRootDirectory()
{
return this._rootDirectory != null;
}
///
/// Gets and sets the property Tags.
///
/// Creates tags associated with the access point. Each tag is a key-value pair, each
/// key must be unique. For more information, see Tagging
/// Amazon Web Services resources in the Amazon Web Services General Reference
/// Guide.
///
///
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;
}
}
}