/*
* 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 fsx-2018-03-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.FSx.Model
{
///
/// The data repository configuration object for Lustre file systems returned in the response
/// of the CreateFileSystem
operation.
///
///
///
/// This data type is not supported on file systems with a data repository association.
/// For file systems with a data repository association, see .
///
///
public partial class DataRepositoryConfiguration
{
private AutoImportPolicyType _autoImportPolicy;
private string _exportPath;
private DataRepositoryFailureDetails _failureDetails;
private int? _importedFileChunkSize;
private string _importPath;
private DataRepositoryLifecycle _lifecycle;
///
/// Gets and sets the property AutoImportPolicy.
///
/// Describes the file system's linked S3 data repository's AutoImportPolicy
.
/// The AutoImportPolicy configures how Amazon FSx keeps your file and directory listings
/// up to date as you add or modify objects in your linked S3 bucket. AutoImportPolicy
/// can have the following values:
///
/// -
///
///
NONE
- (Default) AutoImport is off. Amazon FSx only updates file and
/// directory listings from the linked S3 bucket when the file system is created. FSx
/// does not update file and directory listings for any new or changed objects after choosing
/// this option.
///
/// -
///
///
NEW
- AutoImport is on. Amazon FSx automatically imports directory listings
/// of any new objects added to the linked S3 bucket that do not currently exist in the
/// FSx file system.
///
/// -
///
///
NEW_CHANGED
- AutoImport is on. Amazon FSx automatically imports file
/// and directory listings of any new objects added to the S3 bucket and any existing
/// objects that are changed in the S3 bucket after you choose this option.
///
/// -
///
///
NEW_CHANGED_DELETED
- AutoImport is on. Amazon FSx automatically imports
/// file and directory listings of any new objects added to the S3 bucket, any existing
/// objects that are changed in the S3 bucket, and any objects that were deleted in the
/// S3 bucket.
///
///
///
public AutoImportPolicyType AutoImportPolicy
{
get { return this._autoImportPolicy; }
set { this._autoImportPolicy = value; }
}
// Check to see if AutoImportPolicy property is set
internal bool IsSetAutoImportPolicy()
{
return this._autoImportPolicy != null;
}
///
/// Gets and sets the property ExportPath.
///
/// The export path to the Amazon S3 bucket (and prefix) that you are using to store new
/// and changed Lustre file system files in S3.
///
///
[AWSProperty(Min=3, Max=4357)]
public string ExportPath
{
get { return this._exportPath; }
set { this._exportPath = value; }
}
// Check to see if ExportPath property is set
internal bool IsSetExportPath()
{
return this._exportPath != null;
}
///
/// Gets and sets the property FailureDetails.
///
public DataRepositoryFailureDetails FailureDetails
{
get { return this._failureDetails; }
set { this._failureDetails = value; }
}
// Check to see if FailureDetails property is set
internal bool IsSetFailureDetails()
{
return this._failureDetails != null;
}
///
/// Gets and sets the property ImportedFileChunkSize.
///
/// For files imported from a data repository, this value determines the stripe count
/// and maximum amount of data per file (in MiB) stored on a single physical disk. The
/// maximum number of disks that a single file can be striped across is limited by the
/// total number of disks that make up the file system.
///
///
///
/// The default chunk size is 1,024 MiB (1 GiB) and can go as high as 512,000 MiB (500
/// GiB). Amazon S3 objects have a maximum size of 5 TB.
///
///
[AWSProperty(Min=1, Max=512000)]
public int ImportedFileChunkSize
{
get { return this._importedFileChunkSize.GetValueOrDefault(); }
set { this._importedFileChunkSize = value; }
}
// Check to see if ImportedFileChunkSize property is set
internal bool IsSetImportedFileChunkSize()
{
return this._importedFileChunkSize.HasValue;
}
///
/// Gets and sets the property ImportPath.
///
/// The import path to the Amazon S3 bucket (and optional prefix) that you're using as
/// the data repository for your FSx for Lustre file system, for example s3://import-bucket/optional-prefix
.
/// If a prefix is specified after the Amazon S3 bucket name, only object keys with that
/// prefix are loaded into the file system.
///
///
[AWSProperty(Min=3, Max=4357)]
public string ImportPath
{
get { return this._importPath; }
set { this._importPath = value; }
}
// Check to see if ImportPath property is set
internal bool IsSetImportPath()
{
return this._importPath != null;
}
///
/// Gets and sets the property Lifecycle.
///
/// Describes the state of the file system's S3 durable data repository, if it is configured
/// with an S3 repository. The lifecycle can have the following values:
///
/// -
///
///
CREATING
- The data repository configuration between the FSx file system
/// and the linked S3 data repository is being created. The data repository is unavailable.
///
/// -
///
///
AVAILABLE
- The data repository is available for use.
///
/// -
///
///
MISCONFIGURED
- Amazon FSx cannot automatically import updates from
/// the S3 bucket until the data repository configuration is corrected. For more information,
/// see Troubleshooting
/// a Misconfigured linked S3 bucket.
///
/// -
///
///
UPDATING
- The data repository is undergoing a customer initiated update
/// and availability may be impacted.
///
/// -
///
///
FAILED
- The data repository is in a terminal state that cannot be recovered.
///
///
///
public DataRepositoryLifecycle Lifecycle
{
get { return this._lifecycle; }
set { this._lifecycle = value; }
}
// Check to see if Lifecycle property is set
internal bool IsSetLifecycle()
{
return this._lifecycle != null;
}
}
}