AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Class: AWS.FSx

Inherits:
AWS.Service show all
Identifier:
fsx
API Version:
2018-03-01
Defined in:
(unknown)

Overview

Constructs a service interface object. Each API operation is exposed as a function on service.

Service Description

Amazon FSx is a fully managed service that makes it easy for storage and application administrators to launch and use shared file storage.

Sending a Request Using FSx

var fsx = new AWS.FSx();
fsx.cancelDataRepositoryTask(params, function (err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Locking the API Version

In order to ensure that the FSx object uses this specific API, you can construct the object by passing the apiVersion option to the constructor:

var fsx = new AWS.FSx({apiVersion: '2018-03-01'});

You can also set the API version globally in AWS.config.apiVersions using the fsx service identifier:

AWS.config.apiVersions = {
  fsx: '2018-03-01',
  // other service API versions
};

var fsx = new AWS.FSx();

Version:

  • 2018-03-01

Constructor Summary collapse

Property Summary collapse

Properties inherited from AWS.Service

apiVersions

Method Summary collapse

Methods inherited from AWS.Service

makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService

Constructor Details

new AWS.FSx(options = {}) ⇒ Object

Constructs a service object. This object has one method for each API operation.

Examples:

Constructing a FSx object

var fsx = new AWS.FSx({apiVersion: '2018-03-01'});

Options Hash (options):

  • params (map)

    An optional map of parameters to bind to every request sent by this service object. For more information on bound parameters, see "Working with Services" in the Getting Started Guide.

  • endpoint (String)

    The endpoint URI to send requests to. The default endpoint is built from the configured region. The endpoint should be a string like 'https://{service}.{region}.amazonaws.com'.

  • accessKeyId (String)

    your AWS access key ID.

  • secretAccessKey (String)

    your AWS secret access key.

  • sessionToken (AWS.Credentials)

    the optional AWS session token to sign requests with.

  • credentials (AWS.Credentials)

    the AWS credentials to sign requests with. You can either specify this object, or specify the accessKeyId and secretAccessKey options directly.

  • credentialProvider (AWS.CredentialProviderChain)

    the provider chain used to resolve credentials if no static credentials property is set.

  • region (String)

    the region to send service requests to. See AWS.FSx.region for more information.

  • maxRetries (Integer)

    the maximum amount of retries to attempt with a request. See AWS.FSx.maxRetries for more information.

  • maxRedirects (Integer)

    the maximum amount of redirects to follow with a request. See AWS.FSx.maxRedirects for more information.

  • sslEnabled (Boolean)

    whether to enable SSL for requests.

  • paramValidation (Boolean|map)

    whether input parameters should be validated against the operation description before sending the request. Defaults to true. Pass a map to enable any of the following specific validation features:

    • min [Boolean] — Validates that a value meets the min constraint. This is enabled by default when paramValidation is set to true.
    • max [Boolean] — Validates that a value meets the max constraint.
    • pattern [Boolean] — Validates that a string value matches a regular expression.
    • enum [Boolean] — Validates that a string value matches one of the allowable enum values.
  • computeChecksums (Boolean)

    whether to compute checksums for payload bodies when the service accepts it (currently supported in S3 only)

  • convertResponseTypes (Boolean)

    whether types are converted when parsing response data. Currently only supported for JSON based services. Turning this off may improve performance on large response payloads. Defaults to true.

  • correctClockSkew (Boolean)

    whether to apply a clock skew correction and retry requests that fail because of an skewed client clock. Defaults to false.

  • s3ForcePathStyle (Boolean)

    whether to force path style URLs for S3 objects.

  • s3BucketEndpoint (Boolean)

    whether the provided endpoint addresses an individual bucket (false if it addresses the root API endpoint). Note that setting this configuration option requires an endpoint to be provided explicitly to the service constructor.

  • s3DisableBodySigning (Boolean)

    whether S3 body signing should be disabled when using signature version v4. Body signing can only be disabled when using https. Defaults to true.

  • s3UsEast1RegionalEndpoint ('legacy'|'regional')

    when region is set to 'us-east-1', whether to send s3 request to global endpoints or 'us-east-1' regional endpoints. This config is only applicable to S3 client. Defaults to legacy

  • s3UseArnRegion (Boolean)

    whether to override the request region with the region inferred from requested resource's ARN. Only available for S3 buckets Defaults to true

  • retryDelayOptions (map)

    A set of options to configure the retry delay on retryable errors. Currently supported options are:

    • base [Integer] — The base number of milliseconds to use in the exponential backoff for operation retries. Defaults to 100 ms for all services except DynamoDB, where it defaults to 50ms.
    • customBackoff [function] — A custom function that accepts a retry count and error and returns the amount of time to delay in milliseconds. If the result is a non-zero negative value, no further retry attempts will be made. The base option will be ignored if this option is supplied.
  • httpOptions (map)

    A set of options to pass to the low-level HTTP request. Currently supported options are:

    • proxy [String] — the URL to proxy requests through
    • agent [http.Agent, https.Agent] — the Agent object to perform HTTP requests with. Used for connection pooling. Defaults to the global agent (http.globalAgent) for non-SSL connections. Note that for SSL connections, a special Agent object is used in order to enable peer certificate verification. This feature is only available in the Node.js environment.
    • connectTimeout [Integer] — Sets the socket to timeout after failing to establish a connection with the server after connectTimeout milliseconds. This timeout has no effect once a socket connection has been established.
    • timeout [Integer] — Sets the socket to timeout after timeout milliseconds of inactivity on the socket. Defaults to two minutes (120000).
    • xhrAsync [Boolean] — Whether the SDK will send asynchronous HTTP requests. Used in the browser environment only. Set to false to send requests synchronously. Defaults to true (async on).
    • xhrWithCredentials [Boolean] — Sets the "withCredentials" property of an XMLHttpRequest object. Used in the browser environment only. Defaults to false.
  • apiVersion (String, Date)

    a String in YYYY-MM-DD format (or a date) that represents the latest possible API version that can be used in all services (unless overridden by apiVersions). Specify 'latest' to use the latest possible version.

  • apiVersions (map<String, String|Date>)

    a map of service identifiers (the lowercase service class name) with the API version to use when instantiating a service. Specify 'latest' for each individual that can use the latest available version.

  • logger (#write, #log)

    an object that responds to .write() (like a stream) or .log() (like the console object) in order to log information about requests

  • systemClockOffset (Number)

    an offset value in milliseconds to apply to all signing times. Use this to compensate for clock skew when your system may be out of sync with the service time. Note that this configuration option can only be applied to the global AWS.config object and cannot be overridden in service-specific configuration. Defaults to 0 milliseconds.

  • signatureVersion (String)

    the signature version to sign requests with (overriding the API configuration). Possible values are: 'v2', 'v3', 'v4'.

  • signatureCache (Boolean)

    whether the signature to sign requests with (overriding the API configuration) is cached. Only applies to the signature version 'v4'. Defaults to true.

  • dynamoDbCrc32 (Boolean)

    whether to validate the CRC32 checksum of HTTP response bodies returned by DynamoDB. Default: true.

  • useAccelerateEndpoint (Boolean)

    Whether to use the S3 Transfer Acceleration endpoint with the S3 service. Default: false.

  • clientSideMonitoring (Boolean)

    whether to collect and publish this client's performance metrics of all its API requests.

  • endpointDiscoveryEnabled (Boolean|undefined)

    whether to call operations with endpoints given by service dynamically. Setting this

  • endpointCacheSize (Number)

    the size of the global cache storing endpoints from endpoint discovery operations. Once endpoint cache is created, updating this setting cannot change existing cache size. Defaults to 1000

  • hostPrefixEnabled (Boolean)

    whether to marshal request parameters to the prefix of hostname. Defaults to true.

  • stsRegionalEndpoints ('legacy'|'regional')

    whether to send sts request to global endpoints or regional endpoints. Defaults to 'legacy'.

Property Details

endpointAWS.Endpoint (readwrite)

Returns an Endpoint object representing the endpoint URL for service requests.

Returns:

  • (AWS.Endpoint)

    an Endpoint object representing the endpoint URL for service requests.

Method Details

cancelDataRepositoryTask(params = {}, callback) ⇒ AWS.Request

Cancels an existing Amazon FSx for Lustre data repository task if that task is in either the PENDING or EXECUTING state. When you cancel a task, Amazon FSx does the following.

  • Any files that FSx has already exported are not reverted.

  • FSx continues to export any files that are "in-flight" when the cancel operation is received.

  • FSx does not export any files that have not yet been exported.

Service Reference:

Examples:

Calling the cancelDataRepositoryTask operation

var params = {
  TaskId: 'STRING_VALUE' /* required */
};
fsx.cancelDataRepositoryTask(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • TaskId — (String)

      Specifies the data repository task to cancel.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Lifecycle — (String)

        The lifecycle status of the data repository task, as follows:

        • PENDING - Amazon FSx has not started the task.

        • EXECUTING - Amazon FSx is processing the task.

        • FAILED - Amazon FSx was not able to complete the task. For example, there may be files the task failed to process. The DataRepositoryTaskFailureDetails property provides more information about task failures.

        • SUCCEEDED - FSx completed the task successfully.

        • CANCELED - Amazon FSx canceled the task and it did not complete.

        • CANCELING - FSx is in process of canceling the task.

        Possible values include:
        • "PENDING"
        • "EXECUTING"
        • "FAILED"
        • "SUCCEEDED"
        • "CANCELED"
        • "CANCELING"
      • TaskId — (String)

        The ID of the task being canceled.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createBackup(params = {}, callback) ⇒ AWS.Request

Creates a backup of an existing Amazon FSx for Windows File Server file system. Creating regular backups for your file system is a best practice that complements the replication that Amazon FSx for Windows File Server performs for your file system. It also enables you to restore from user modification of data.

If a backup with the specified client request token exists, and the parameters match, this operation returns the description of the existing backup. If a backup specified client request token exists, and the parameters don't match, this operation returns IncompatibleParameterError. If a backup with the specified client request token doesn't exist, CreateBackup does the following:

  • Creates a new Amazon FSx backup with an assigned ID, and an initial lifecycle state of CREATING.

  • Returns the description of the backup.

By using the idempotent operation, you can retry a CreateBackup operation without the risk of creating an extra backup. This approach can be useful when an initial call fails in a way that makes it unclear whether a backup was created. If you use the same client request token and the initial call created a backup, the operation returns a successful result because all the parameters are the same.

The CreateFileSystem operation returns while the backup's lifecycle state is still CREATING. You can check the file system creation status by calling the DescribeBackups operation, which returns the backup state along with other information.

Note:

Service Reference:

Examples:

To create a new backup


/* This operation creates a new backup. */

 var params = {
  FileSystemId: "fs-0498eed5fe91001ec", 
  Tags: [
     {
    Key: "Name", 
    Value: "MyBackup"
   }
  ]
 };
 fsx.createBackup(params, function(err, data) {
   if (err) console.log(err, err.stack); // an error occurred
   else     console.log(data);           // successful response
   /*
   data = {
    Backup: {
     BackupId: "backup-03e3c82e0183b7b6b", 
     CreationTime: <Date Representation>, 
     FileSystem: {
      FileSystemId: "fs-0498eed5fe91001ec", 
      OwnerId: "012345678912", 
      StorageCapacity: 300, 
      WindowsConfiguration: {
       ActiveDirectoryId: "d-1234abcd12", 
       AutomaticBackupRetentionDays: 30, 
       DailyAutomaticBackupStartTime: "05:00", 
       WeeklyMaintenanceStartTime: "1:05:00"
      }
     }, 
     Lifecycle: "CREATING", 
     ProgressPercent: 0, 
     ResourceARN: "arn:aws:fsx:us-east-1:012345678912:backup/backup-03e3c82e0183b7b6b", 
     Tags: [
        {
       Key: "Name", 
       Value: "MyBackup"
      }
     ], 
     Type: "USER_INITIATED"
    }
   }
   */
 });

Calling the createBackup operation

var params = {
  FileSystemId: 'STRING_VALUE', /* required */
  ClientRequestToken: 'STRING_VALUE',
  Tags: [
    {
      Key: 'STRING_VALUE',
      Value: 'STRING_VALUE'
    },
    /* more items */
  ]
};
fsx.createBackup(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • FileSystemId — (String)

      The ID of the file system to back up.

    • ClientRequestToken — (String)

      (Optional) A string of up to 64 ASCII characters that Amazon FSx uses to ensure idempotent creation. This string is automatically filled on your behalf when you use the AWS Command Line Interface (AWS CLI) or an AWS SDK.

      If a token is not provided, the SDK will use a version 4 UUID.
    • Tags — (Array<map>)

      The tags to apply to the backup at backup creation. The key value of the Name tag appears in the console as the backup name.

      • Key — (String)

        A value that specifies the TagKey, the name of the tag. Tag keys must be unique for the resource to which they are attached.

      • Value — (String)

        A value that specifies the TagValue, the value assigned to the corresponding tag key. Tag values can be null and don't have to be unique in a tag set. For example, you can have a key-value pair in a tag set of finances : April and also of payroll : April.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Backup — (map)

        A description of the backup.

        • BackupIdrequired — (String)

          The ID of the backup.

        • Lifecyclerequired — (String)

          The lifecycle status of the backup.

          Possible values include:
          • "AVAILABLE"
          • "CREATING"
          • "DELETED"
          • "FAILED"
        • FailureDetails — (map)

          Details explaining any failures that occur when creating a backup.

          • Message — (String)

            A message describing the backup creation failure.

        • Typerequired — (String)

          The type of the backup.

          Possible values include:
          • "AUTOMATIC"
          • "USER_INITIATED"
        • ProgressPercent — (Integer)

          The current percent of progress of an asynchronous task.

        • CreationTimerequired — (Date)

          The time when a particular backup was created.

        • KmsKeyId — (String)

          The ID of the AWS Key Management Service (AWS KMS) key used to encrypt this backup of the Amazon FSx for Windows file system's data at rest. Amazon FSx for Lustre does not support KMS encryption.

        • ResourceARN — (String)

          The Amazon Resource Name (ARN) for the backup resource.

        • Tags — (Array<map>)

          Tags associated with a particular file system.

          • Key — (String)

            A value that specifies the TagKey, the name of the tag. Tag keys must be unique for the resource to which they are attached.

          • Value — (String)

            A value that specifies the TagValue, the value assigned to the corresponding tag key. Tag values can be null and don't have to be unique in a tag set. For example, you can have a key-value pair in a tag set of finances : April and also of payroll : April.

        • FileSystemrequired — (map)

          Metadata of the file system associated with the backup. This metadata is persisted even if the file system is deleted.

          • OwnerId — (String)

            The AWS account that created the file system. If the file system was created by an AWS Identity and Access Management (IAM) user, the AWS account to which the IAM user belongs is the owner.

          • CreationTime — (Date)

            The time that the file system was created, in seconds (since 1970-01-01T00:00:00Z), also known as Unix time.

          • FileSystemId — (String)

            The system-generated, unique 17-digit ID of the file system.

          • FileSystemType — (String)

            The type of Amazon FSx file system, either LUSTRE or WINDOWS.

            Possible values include:
            • "WINDOWS"
            • "LUSTRE"
          • Lifecycle — (String)

            The lifecycle status of the file system, following are the possible values and what they mean:

            • AVAILABLE - The file system is in a healthy state, and is reachable and available for use.

            • CREATING - Amazon FSx is creating the new file system.

            • DELETING - Amazon FSx is deleting an existing file system.

            • FAILED - An existing file system has experienced an unrecoverable failure. When creating a new file system, Amazon FSx was unable to create the file system.

            • MISCONFIGURED indicates that the file system is in a failed but recoverable state.

            • UPDATING indicates that the file system is undergoing a customer initiated update.

            Possible values include:
            • "AVAILABLE"
            • "CREATING"
            • "FAILED"
            • "DELETING"
            • "MISCONFIGURED"
            • "UPDATING"
          • FailureDetails — (map)

            A structure providing details of any failures that occur when creating the file system has failed.

            • Message — (String)

              A message describing any failures that occurred during file system creation.

          • StorageCapacity — (Integer)

            The storage capacity of the file system in gigabytes (GB).

          • StorageType — (String)

            The storage type of the file system. Valid values are SSD and HDD. If set to SSD, the file system uses solid state drive storage. If set to HDD, the file system uses hard disk drive storage.

            Possible values include:
            • "SSD"
            • "HDD"
          • VpcId — (String)

            The ID of the primary VPC for the file system.

          • SubnetIds — (Array<String>)

            Specifies the IDs of the subnets that the file system is accessible from. For Windows MULTI_AZ_1 file system deployment type, there are two subnet IDs, one for the preferred file server and one for the standby file server. The preferred file server subnet identified in the PreferredSubnetID property. All other file systems have only one subnet ID.

            For Lustre file systems, and Single-AZ Windows file systems, this is the ID of the subnet that contains the endpoint for the file system. For MULTI_AZ_1 Windows file systems, the endpoint for the file system is available in the PreferredSubnetID.

          • NetworkInterfaceIds — (Array<String>)

            The IDs of the elastic network interface from which a specific file system is accessible. The elastic network interface is automatically created in the same VPC that the Amazon FSx file system was created in. For more information, see Elastic Network Interfaces in the Amazon EC2 User Guide.

            For an Amazon FSx for Windows File Server file system, you can have one network interface ID. For an Amazon FSx for Lustre file system, you can have more than one.

          • DNSName — (String)

            The DNS name for the file system.

          • KmsKeyId — (String)

            The ID of the AWS Key Management Service (AWS KMS) key used to encrypt the file system's data for Amazon FSx for Windows File Server file systems and persistent Amazon FSx for Lustre file systems at rest. In either case, if not specified, the Amazon FSx managed key is used. The scratch Amazon FSx for Lustre file systems are always encrypted at rest using Amazon FSx managed keys. For more information, see Encrypt in the AWS Key Management Service API Reference.

          • ResourceARN — (String)

            The Amazon Resource Name (ARN) for the file system resource.

          • Tags — (Array<map>)

            The tags to associate with the file system. For more information, see Tagging Your Amazon EC2 Resources in the Amazon EC2 User Guide.

            • Key — (String)

              A value that specifies the TagKey, the name of the tag. Tag keys must be unique for the resource to which they are attached.

            • Value — (String)

              A value that specifies the TagValue, the value assigned to the corresponding tag key. Tag values can be null and don't have to be unique in a tag set. For example, you can have a key-value pair in a tag set of finances : April and also of payroll : April.

          • WindowsConfiguration — (map)

            The configuration for this Microsoft Windows file system.

            • ActiveDirectoryId — (String)

              The ID for an existing Microsoft Active Directory instance that the file system should join when it's created.

            • SelfManagedActiveDirectoryConfiguration — (map)

              The configuration of the self-managed Microsoft Active Directory (AD) directory to which the Windows File Server instance is joined.

              • DomainName — (String)

                The fully qualified domain name of the self-managed AD directory.

              • OrganizationalUnitDistinguishedName — (String)

                The fully qualified distinguished name of the organizational unit within the self-managed AD directory to which the Windows File Server instance is joined.

              • FileSystemAdministratorsGroup — (String)

                The name of the domain group whose members have administrative privileges for the FSx file system.

              • UserName — (String)

                The user name for the service account on your self-managed AD domain that FSx uses to join to your AD domain.

              • DnsIps — (Array<String>)

                A list of up to two IP addresses of DNS servers or domain controllers in the self-managed AD directory.

            • DeploymentType — (String)

              Specifies the file system deployment type, valid values are the following:

              • MULTI_AZ_1 - Specifies a high availability file system that is configured for Multi-AZ redundancy to tolerate temporary Availability Zone (AZ) unavailability, and supports SSD and HDD storage.

              • SINGLE_AZ_1 - (Default) Specifies a file system that is configured for single AZ redundancy, only supports SSD storage.

              • SINGLE_AZ_2 - Latest generation Single AZ file system. Specifies a file system that is configured for single AZ redundancy and supports SSD and HDD storage.

              For more information, see Single-AZ and Multi-AZ File Systems.

              Possible values include:
              • "MULTI_AZ_1"
              • "SINGLE_AZ_1"
              • "SINGLE_AZ_2"
            • RemoteAdministrationEndpoint — (String)

              For MULTI_AZ_1 deployment types, use this endpoint when performing administrative tasks on the file system using Amazon FSx Remote PowerShell.

              For SINGLE_AZ_1 and SINGLE_AZ_2 deployment types, this is the DNS name of the file system.

              This endpoint is temporarily unavailable when the file system is undergoing maintenance.

            • PreferredSubnetId — (String)

              For MULTI_AZ_1 deployment types, it specifies the ID of the subnet where the preferred file server is located. Must be one of the two subnet IDs specified in SubnetIds property. Amazon FSx serves traffic from this subnet except in the event of a failover to the secondary file server.

              For SINGLE_AZ_1 and SINGLE_AZ_2 deployment types, this value is the same as that for SubnetIDs. For more information, see Availability and Durability: Single-AZ and Multi-AZ File Systems

            • PreferredFileServerIp — (String)

              For MULTI_AZ_1 deployment types, the IP address of the primary, or preferred, file server.

              Use this IP address when mounting the file system on Linux SMB clients or Windows SMB clients that are not joined to a Microsoft Active Directory. Applicable for all Windows file system deployment types. This IP address is temporarily unavailable when the file system is undergoing maintenance. For Linux and Windows SMB clients that are joined to an Active Directory, use the file system's DNSName instead. For more information on mapping and mounting file shares, see Accessing File Shares.

            • ThroughputCapacity — (Integer)

              The throughput of an Amazon FSx file system, measured in megabytes per second.

            • MaintenanceOperationsInProgress — (Array<String>)

              The list of maintenance operations in progress for this file system.

            • WeeklyMaintenanceStartTime — (String)

              The preferred time to perform weekly maintenance, in the UTC time zone.

            • DailyAutomaticBackupStartTime — (String)

              The preferred time to take daily automatic backups, in the UTC time zone.

            • AutomaticBackupRetentionDays — (Integer)

              The number of days to retain automatic backups. Setting this to 0 disables automatic backups. You can retain automatic backups for a maximum of 35 days.

            • CopyTagsToBackups — (Boolean)

              A boolean flag indicating whether tags on the file system should be copied to backups. This value defaults to false. If it's set to true, all tags on the file system are copied to all automatic backups and any user-initiated backups where the user doesn't specify any tags. If this value is true, and you specify one or more tags, only the specified tags are copied to backups. If you specify one or more tags when creating a user-initiated backup, no tags are copied from the file system, regardless of this value.

          • LustreConfiguration — (map)

            The configuration for the Amazon FSx for Lustre file system.

            • WeeklyMaintenanceStartTime — (String)

              The UTC time that you want to begin your weekly maintenance window.

            • DataRepositoryConfiguration — (map)

              The data repository configuration object for Lustre file systems returned in the response of the CreateFileSystem operation.

              • ImportPath — (String)

                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.

              • ExportPath — (String)

                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.

              • ImportedFileChunkSize — (Integer)

                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.

            • DeploymentType — (String)

              The deployment type of the FSX for Lustre file system.

              Possible values include:
              • "SCRATCH_1"
              • "SCRATCH_2"
              • "PERSISTENT_1"
            • PerUnitStorageThroughput — (Integer)

              Per unit storage throughput represents the megabytes per second of read or write throughput per 1 tebibyte of storage provisioned. File system throughput capacity is equal to Storage capacity (TiB) * PerUnitStorageThroughput (MB/s/TiB). This option is only valid for PERSISTENT_1 deployment types. Valid values are 50, 100, 200.

            • MountName — (String)

              You use the MountName value when mounting the file system.

              For the SCRATCH_1 deployment type, this value is always "fsx". For SCRATCH_2 and PERSISTENT_1 deployment types, this value is a string that is unique within an AWS Region.

        • DirectoryInformation — (map)

          The configuration of the self-managed Microsoft Active Directory (AD) to which the Windows File Server instance is joined.

          • DomainName — (String)

            The fully qualified domain name of the self-managed AD directory.

          • ActiveDirectoryId — (String)

            The ID of the AWS Managed Microsoft Active Directory instance to which the file system is joined.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createDataRepositoryTask(params = {}, callback) ⇒ AWS.Request

Creates an Amazon FSx for Lustre data repository task. You use data repository tasks to perform bulk operations between your Amazon FSx file system and its linked data repository. An example of a data repository task is exporting any data and metadata changes, including POSIX metadata, to files, directories, and symbolic links (symlinks) from your FSx file system to its linked data repository. A CreateDataRepositoryTask operation will fail if a data repository is not linked to the FSx file system. To learn more about data repository tasks, see Using Data Repository Tasks. To learn more about linking a data repository to your file system, see Setting the Export Prefix.

Service Reference:

Examples:

Calling the createDataRepositoryTask operation

var params = {
  FileSystemId: 'STRING_VALUE', /* required */
  Report: { /* required */
    Enabled: true || false, /* required */
    Format: REPORT_CSV_20191124,
    Path: 'STRING_VALUE',
    Scope: FAILED_FILES_ONLY
  },
  Type: EXPORT_TO_REPOSITORY, /* required */
  ClientRequestToken: 'STRING_VALUE',
  Paths: [
    'STRING_VALUE',
    /* more items */
  ],
  Tags: [
    {
      Key: 'STRING_VALUE',
      Value: 'STRING_VALUE'
    },
    /* more items */
  ]
};
fsx.createDataRepositoryTask(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Type — (String)

      Specifies the type of data repository task to create.

      Possible values include:
      • "EXPORT_TO_REPOSITORY"
    • Paths — (Array<String>)

      (Optional) The path or paths on the Amazon FSx file system to use when the data repository task is processed. The default path is the file system root directory. The paths you provide need to be relative to the mount point of the file system. If the mount point is /mnt/fsx and /mnt/fsx/path1 is a directory or file on the file system you want to export, then the path to provide is path1. If a path that you provide isn't valid, the task fails.

    • FileSystemId — (String)

      The globally unique ID of the file system, assigned by Amazon FSx.

    • Report — (map)

      Defines whether or not Amazon FSx provides a CompletionReport once the task has completed. A CompletionReport provides a detailed report on the files that Amazon FSx processed that meet the criteria specified by the Scope parameter. For more information, see Working with Task Completion Reports.

      • Enabledrequired — (Boolean)

        Set Enabled to True to generate a CompletionReport when the task completes. If set to true, then you need to provide a report Scope, Path, and Format. Set Enabled to False if you do not want a CompletionReport generated when the task completes.

      • Path — (String)

        Required if Enabled is set to true. Specifies the location of the report on the file system's linked S3 data repository. An absolute path that defines where the completion report will be stored in the destination location. The Path you provide must be located within the file system’s ExportPath. An example Path value is "s3://myBucket/myExportPath/optionalPrefix". The report provides the following information for each file in the report: FilePath, FileStatus, and ErrorCode. To learn more about a file system's ExportPath, see .

      • Format — (String)

        Required if Enabled is set to true. Specifies the format of the CompletionReport. REPORT_CSV_20191124 is the only format currently supported. When Format is set to REPORT_CSV_20191124, the CompletionReport is provided in CSV format, and is delivered to {path}/task-{id}/failures.csv.

        Possible values include:
        • "REPORT_CSV_20191124"
      • Scope — (String)

        Required if Enabled is set to true. Specifies the scope of the CompletionReport; FAILED_FILES_ONLY is the only scope currently supported. When Scope is set to FAILED_FILES_ONLY, the CompletionReport only contains information about files that the data repository task failed to process.

        Possible values include:
        • "FAILED_FILES_ONLY"
    • ClientRequestToken — (String)

      (Optional) An idempotency token for resource creation, in a string of up to 64 ASCII characters. This token is automatically filled on your behalf when you use the AWS Command Line Interface (AWS CLI) or an AWS SDK.

      If a token is not provided, the SDK will use a version 4 UUID.
    • Tags — (Array<map>)

      A list of Tag values, with a maximum of 50 elements.

      • Key — (String)

        A value that specifies the TagKey, the name of the tag. Tag keys must be unique for the resource to which they are attached.

      • Value — (String)

        A value that specifies the TagValue, the value assigned to the corresponding tag key. Tag values can be null and don't have to be unique in a tag set. For example, you can have a key-value pair in a tag set of finances : April and also of payroll : April.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • DataRepositoryTask — (map)

        The description of the data repository task that you just created.

        • TaskIdrequired — (String)

          The system-generated, unique 17-digit ID of the data repository task.

        • Lifecyclerequired — (String)

          The lifecycle status of the data repository task, as follows:

          • PENDING - Amazon FSx has not started the task.

          • EXECUTING - Amazon FSx is processing the task.

          • FAILED - Amazon FSx was not able to complete the task. For example, there may be files the task failed to process. The DataRepositoryTaskFailureDetails property provides more information about task failures.

          • SUCCEEDED - FSx completed the task successfully.

          • CANCELED - Amazon FSx canceled the task and it did not complete.

          • CANCELING - FSx is in process of canceling the task.

          Note: You cannot delete an FSx for Lustre file system if there are data repository tasks for the file system in the PENDING or EXECUTING states. Please retry when the data repository task is finished (with a status of CANCELED, SUCCEEDED, or FAILED). You can use the DescribeDataRepositoryTask action to monitor the task status. Contact the FSx team if you need to delete your file system immediately.
          Possible values include:
          • "PENDING"
          • "EXECUTING"
          • "FAILED"
          • "SUCCEEDED"
          • "CANCELED"
          • "CANCELING"
        • Typerequired — (String)

          The type of data repository task; EXPORT_TO_REPOSITORY is the only type currently supported.

          Possible values include:
          • "EXPORT_TO_REPOSITORY"
        • CreationTimerequired — (Date)

          The time that the resource was created, in seconds (since 1970-01-01T00:00:00Z), also known as Unix time.

        • StartTime — (Date)

          The time that Amazon FSx began processing the task.

        • EndTime — (Date)

          The time that Amazon FSx completed processing the task, populated after the task is complete.

        • ResourceARN — (String)

          The Amazon Resource Name (ARN) for a given resource. ARNs uniquely identify AWS resources. We require an ARN when you need to specify a resource unambiguously across all of AWS. For more information, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.

        • Tags — (Array<map>)

          A list of Tag values, with a maximum of 50 elements.

          • Key — (String)

            A value that specifies the TagKey, the name of the tag. Tag keys must be unique for the resource to which they are attached.

          • Value — (String)

            A value that specifies the TagValue, the value assigned to the corresponding tag key. Tag values can be null and don't have to be unique in a tag set. For example, you can have a key-value pair in a tag set of finances : April and also of payroll : April.

        • FileSystemIdrequired — (String)

          The globally unique ID of the file system, assigned by Amazon FSx.

        • Paths — (Array<String>)

          An array of paths on the Amazon FSx for Lustre file system that specify the data for the data repository task to process. For example, in an EXPORT_TO_REPOSITORY task, the paths specify which data to export to the linked data repository.

          (Default) If Paths is not specified, Amazon FSx uses the file system root directory.

        • FailureDetails — (map)

          Failure message describing why the task failed, it is populated only when Lifecycle is set to FAILED.

          • Message — (String)

            A detailed error message.

        • Status — (map)

          Provides the status of the number of files that the task has processed successfully and failed to process.

          • TotalCount — (Integer)

            The total number of files that the task will process. While a task is executing, the sum of SucceededCount plus FailedCount may not equal TotalCount. When the task is complete, TotalCount equals the sum of SucceededCount plus FailedCount.

          • SucceededCount — (Integer)

            A running total of the number of files that the task has successfully processed.

          • FailedCount — (Integer)

            A running total of the number of files that the task failed to process.

          • LastUpdatedTime — (Date)

            The time at which the task status was last updated.

        • Report — (map)

          Provides a report detailing the data repository task results of the files processed that match the criteria specified in the report Scope parameter. FSx delivers the report to the file system's linked data repository in Amazon S3, using the path specified in the report Path parameter. You can specify whether or not a report gets generated for a task using the Enabled parameter.

          • Enabledrequired — (Boolean)

            Set Enabled to True to generate a CompletionReport when the task completes. If set to true, then you need to provide a report Scope, Path, and Format. Set Enabled to False if you do not want a CompletionReport generated when the task completes.

          • Path — (String)

            Required if Enabled is set to true. Specifies the location of the report on the file system's linked S3 data repository. An absolute path that defines where the completion report will be stored in the destination location. The Path you provide must be located within the file system’s ExportPath. An example Path value is "s3://myBucket/myExportPath/optionalPrefix". The report provides the following information for each file in the report: FilePath, FileStatus, and ErrorCode. To learn more about a file system's ExportPath, see .

          • Format — (String)

            Required if Enabled is set to true. Specifies the format of the CompletionReport. REPORT_CSV_20191124 is the only format currently supported. When Format is set to REPORT_CSV_20191124, the CompletionReport is provided in CSV format, and is delivered to {path}/task-{id}/failures.csv.

            Possible values include:
            • "REPORT_CSV_20191124"
          • Scope — (String)

            Required if Enabled is set to true. Specifies the scope of the CompletionReport; FAILED_FILES_ONLY is the only scope currently supported. When Scope is set to FAILED_FILES_ONLY, the CompletionReport only contains information about files that the data repository task failed to process.

            Possible values include:
            • "FAILED_FILES_ONLY"

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createFileSystem(params = {}, callback) ⇒ AWS.Request

Creates a new, empty Amazon FSx file system.

If a file system with the specified client request token exists and the parameters match, CreateFileSystem returns the description of the existing file system. If a file system specified client request token exists and the parameters don't match, this call returns IncompatibleParameterError. If a file system with the specified client request token doesn't exist, CreateFileSystem does the following:

  • Creates a new, empty Amazon FSx file system with an assigned ID, and an initial lifecycle state of CREATING.

  • Returns the description of the file system.

This operation requires a client request token in the request that Amazon FSx uses to ensure idempotent creation. This means that calling the operation multiple times with the same client request token has no effect. By using the idempotent operation, you can retry a CreateFileSystem operation without the risk of creating an extra file system. This approach can be useful when an initial call fails in a way that makes it unclear whether a file system was created. Examples are if a transport level timeout occurred, or your connection was reset. If you use the same client request token and the initial call created a file system, the client receives success as long as the parameters are the same.

Note: The CreateFileSystem call returns while the file system's lifecycle state is still CREATING. You can check the file-system creation status by calling the DescribeFileSystems operation, which returns the file system state along with other information.

Service Reference:

Examples:

To create a new file system


/* This operation creates a new file system. */

 var params = {
  ClientRequestToken: "a8ca07e4-61ec-4399-99f4-19853801bcd5", 
  FileSystemType: "WINDOWS", 
  KmsKeyId: "arn:aws:kms:us-east-1:012345678912:key/0ff3ea8d-130e-4133-877f-93908b6fdbd6", 
  SecurityGroupIds: [
     "sg-edcd9784"
  ], 
  StorageCapacity: 300, 
  SubnetIds: [
     "subnet-1234abcd"
  ], 
  Tags: [
     {
    Key: "Name", 
    Value: "MyFileSystem"
   }
  ], 
  WindowsConfiguration: {
   ActiveDirectoryId: "d-1234abcd12", 
   AutomaticBackupRetentionDays: 30, 
   DailyAutomaticBackupStartTime: "05:00", 
   ThroughputCapacity: 8, 
   WeeklyMaintenanceStartTime: "1:05:00"
  }
 };
 fsx.createFileSystem(params, function(err, data) {
   if (err) console.log(err, err.stack); // an error occurred
   else     console.log(data);           // successful response
   /*
   data = {
    FileSystem: {
     CreationTime: <Date Representation>, 
     DNSName: "fs-0498eed5fe91001ec.fsx.com", 
     FileSystemId: "fs-0498eed5fe91001ec", 
     KmsKeyId: "arn:aws:kms:us-east-1:012345678912:key/0ff3ea8d-130e-4133-877f-93908b6fdbd6", 
     Lifecycle: "CREATING", 
     OwnerId: "012345678912", 
     ResourceARN: "arn:aws:fsx:us-east-1:012345678912:file-system/fs-0498eed5fe91001ec", 
     StorageCapacity: 300, 
     SubnetIds: [
        "subnet-1234abcd"
     ], 
     Tags: [
        {
       Key: "Name", 
       Value: "MyFileSystem"
      }
     ], 
     VpcId: "vpc-ab1234cd", 
     WindowsConfiguration: {
      ActiveDirectoryId: "d-1234abcd12", 
      AutomaticBackupRetentionDays: 30, 
      DailyAutomaticBackupStartTime: "05:00", 
      ThroughputCapacity: 8, 
      WeeklyMaintenanceStartTime: "1:05:00"
     }
    }
   }
   */
 });

Calling the createFileSystem operation

var params = {
  FileSystemType: WINDOWS | LUSTRE, /* required */
  StorageCapacity: 'NUMBER_VALUE', /* required */
  SubnetIds: [ /* required */
    'STRING_VALUE',
    /* more items */
  ],
  ClientRequestToken: 'STRING_VALUE',
  KmsKeyId: 'STRING_VALUE',
  LustreConfiguration: {
    DeploymentType: SCRATCH_1 | SCRATCH_2 | PERSISTENT_1,
    ExportPath: 'STRING_VALUE',
    ImportPath: 'STRING_VALUE',
    ImportedFileChunkSize: 'NUMBER_VALUE',
    PerUnitStorageThroughput: 'NUMBER_VALUE',
    WeeklyMaintenanceStartTime: 'STRING_VALUE'
  },
  SecurityGroupIds: [
    'STRING_VALUE',
    /* more items */
  ],
  StorageType: SSD | HDD,
  Tags: [
    {
      Key: 'STRING_VALUE',
      Value: 'STRING_VALUE'
    },
    /* more items */
  ],
  WindowsConfiguration: {
    ThroughputCapacity: 'NUMBER_VALUE', /* required */
    ActiveDirectoryId: 'STRING_VALUE',
    AutomaticBackupRetentionDays: 'NUMBER_VALUE',
    CopyTagsToBackups: true || false,
    DailyAutomaticBackupStartTime: 'STRING_VALUE',
    DeploymentType: MULTI_AZ_1 | SINGLE_AZ_1 | SINGLE_AZ_2,
    PreferredSubnetId: 'STRING_VALUE',
    SelfManagedActiveDirectoryConfiguration: {
      DnsIps: [ /* required */
        'STRING_VALUE',
        /* more items */
      ],
      DomainName: 'STRING_VALUE', /* required */
      Password: 'STRING_VALUE', /* required */
      UserName: 'STRING_VALUE', /* required */
      FileSystemAdministratorsGroup: 'STRING_VALUE',
      OrganizationalUnitDistinguishedName: 'STRING_VALUE'
    },
    WeeklyMaintenanceStartTime: 'STRING_VALUE'
  }
};
fsx.createFileSystem(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ClientRequestToken — (String)

      (Optional) A string of up to 64 ASCII characters that Amazon FSx uses to ensure idempotent creation. This string is automatically filled on your behalf when you use the AWS Command Line Interface (AWS CLI) or an AWS SDK.

      If a token is not provided, the SDK will use a version 4 UUID.
    • FileSystemType — (String)

      The type of Amazon FSx file system to create, either WINDOWS or LUSTRE.

      Possible values include:
      • "WINDOWS"
      • "LUSTRE"
    • StorageCapacity — (Integer)

      Sets the storage capacity of the file system that you're creating.

      For Lustre file systems:

      • For SCRATCH_2 and PERSISTENT_1 deployment types, valid values are 1.2, 2.4, and increments of 2.4 TiB.

      • For SCRATCH_1 deployment type, valid values are 1.2, 2.4, and increments of 3.6 TiB.

      For Windows file systems:

      • If StorageType=SSD, valid values are 32 GiB - 65,536 GiB (64 TiB).

      • If StorageType=HDD, valid values are 2000 GiB - 65,536 GiB (64 TiB).

    • StorageType — (String)

      Sets the storage type for the Amazon FSx for Windows file system you're creating. Valid values are SSD and HDD.

      • Set to SSD to use solid state drive storage. SSD is supported on all Windows deployment types.

      • Set to HDD to use hard disk drive storage. HDD is supported on SINGLE_AZ_2 and MULTI_AZ_1 Windows file system deployment types.

      Default value is SSD. For more information, see Storage Type Options in the Amazon FSx for Windows User Guide.

      Possible values include:
      • "SSD"
      • "HDD"
    • SubnetIds — (Array<String>)

      Specifies the IDs of the subnets that the file system will be accessible from. For Windows MULTI_AZ_1 file system deployment types, provide exactly two subnet IDs, one for the preferred file server and one for the standby file server. You specify one of these subnets as the preferred subnet using the WindowsConfiguration > PreferredSubnetID property.

      For Windows SINGLE_AZ_1 and SINGLE_AZ_2 file system deployment types and Lustre file systems, provide exactly one subnet ID. The file server is launched in that subnet's Availability Zone.

    • SecurityGroupIds — (Array<String>)

      A list of IDs specifying the security groups to apply to all network interfaces created for file system access. This list isn't returned in later requests to describe the file system.

    • Tags — (Array<map>)

      The tags to apply to the file system being created. The key value of the Name tag appears in the console as the file system name.

      • Key — (String)

        A value that specifies the TagKey, the name of the tag. Tag keys must be unique for the resource to which they are attached.

      • Value — (String)

        A value that specifies the TagValue, the value assigned to the corresponding tag key. Tag values can be null and don't have to be unique in a tag set. For example, you can have a key-value pair in a tag set of finances : April and also of payroll : April.

    • KmsKeyId — (String)

      The ID of the AWS Key Management Service (AWS KMS) key used to encrypt the file system's data for Amazon FSx for Windows File Server file systems and Amazon FSx for Lustre PERSISTENT_1 file systems at rest. In either case, if not specified, the Amazon FSx managed key is used. The Amazon FSx for Lustre SCRATCH_1 and SCRATCH_2 file systems are always encrypted at rest using Amazon FSx managed keys. For more information, see Encrypt in the AWS Key Management Service API Reference.

    • WindowsConfiguration — (map)

      The Microsoft Windows configuration for the file system being created.

      • ActiveDirectoryId — (String)

        The ID for an existing AWS Managed Microsoft Active Directory (AD) instance that the file system should join when it's created.

      • SelfManagedActiveDirectoryConfiguration — (map)

        The configuration that Amazon FSx uses to join the Windows File Server instance to your self-managed (including on-premises) Microsoft Active Directory (AD) directory.

        • DomainNamerequired — (String)

          The fully qualified domain name of the self-managed AD directory, such as corp.example.com.

        • OrganizationalUnitDistinguishedName — (String)

          (Optional) The fully qualified distinguished name of the organizational unit within your self-managed AD directory that the Windows File Server instance will join. Amazon FSx only accepts OU as the direct parent of the file system. An example is OU=FSx,DC=yourdomain,DC=corp,DC=com. To learn more, see RFC 2253. If none is provided, the FSx file system is created in the default location of your self-managed AD directory.

          Only Organizational Unit (OU) objects can be the direct parent of the file system that you're creating.

        • FileSystemAdministratorsGroup — (String)

          (Optional) The name of the domain group whose members are granted administrative privileges for the file system. Administrative privileges include taking ownership of files and folders, setting audit controls (audit ACLs) on files and folders, and administering the file system remotely by using the FSx Remote PowerShell. The group that you specify must already exist in your domain. If you don't provide one, your AD domain's Domain Admins group is used.

        • UserNamerequired — (String)

          The user name for the service account on your self-managed AD domain that Amazon FSx will use to join to your AD domain. This account must have the permission to join computers to the domain in the organizational unit provided in OrganizationalUnitDistinguishedName, or in the default location of your AD domain.

        • Passwordrequired — (String)

          The password for the service account on your self-managed AD domain that Amazon FSx will use to join to your AD domain.

        • DnsIpsrequired — (Array<String>)

          A list of up to two IP addresses of DNS servers or domain controllers in the self-managed AD directory. The IP addresses need to be either in the same VPC CIDR range as the one in which your Amazon FSx file system is being created, or in the private IP version 4 (IPv4) address ranges, as specified in RFC 1918:

          • 10.0.0.0 - 10.255.255.255 (10/8 prefix)

          • 172.16.0.0 - 172.31.255.255 (172.16/12 prefix)

          • 192.168.0.0 - 192.168.255.255 (192.168/16 prefix)

      • DeploymentType — (String)

        Specifies the file system deployment type, valid values are the following:

        • MULTI_AZ_1 - Deploys a high availability file system that is configured for Multi-AZ redundancy to tolerate temporary Availability Zone (AZ) unavailability. You can only deploy a Multi-AZ file system in AWS Regions that have a minimum of three Availability Zones. Also supports HDD storage type

        • SINGLE_AZ_1 - (Default) Choose to deploy a file system that is configured for single AZ redundancy.

        • SINGLE_AZ_2 - The latest generation Single AZ file system. Specifies a file system that is configured for single AZ redundancy and supports HDD storage type.

        For more information, see Availability and Durability: Single-AZ and Multi-AZ File Systems.

        Possible values include:
        • "MULTI_AZ_1"
        • "SINGLE_AZ_1"
        • "SINGLE_AZ_2"
      • PreferredSubnetId — (String)

        Required when DeploymentType is set to MULTI_AZ_1. This specifies the subnet in which you want the preferred file server to be located. For in-AWS applications, we recommend that you launch your clients in the same Availability Zone (AZ) as your preferred file server to reduce cross-AZ data transfer costs and minimize latency.

      • ThroughputCapacityrequired — (Integer)

        The throughput of an Amazon FSx file system, measured in megabytes per second, in 2 to the nth increments, between 23 (8) and 211 (2048).

      • WeeklyMaintenanceStartTime — (String)

        The preferred start time to perform weekly maintenance, formatted d:HH:MM in the UTC time zone.

      • DailyAutomaticBackupStartTime — (String)

        The preferred time to take daily automatic backups, formatted HH:MM in the UTC time zone.

      • AutomaticBackupRetentionDays — (Integer)

        The number of days to retain automatic backups. The default is to retain backups for 7 days. Setting this value to 0 disables the creation of automatic backups. The maximum retention period for backups is 35 days.

      • CopyTagsToBackups — (Boolean)

        A boolean flag indicating whether tags for the file system should be copied to backups. This value defaults to false. If it's set to true, all tags for the file system are copied to all automatic and user-initiated backups where the user doesn't specify tags. If this value is true, and you specify one or more tags, only the specified tags are copied to backups. If you specify one or more tags when creating a user-initiated backup, no tags are copied from the file system, regardless of this value.

    • LustreConfiguration — (map)

      The Lustre configuration for the file system being created.

      • WeeklyMaintenanceStartTime — (String)

        The preferred time to perform weekly maintenance, in the UTC time zone.

      • ImportPath — (String)

        (Optional) The path to the Amazon S3 bucket (including the optional prefix) that you're using as the data repository for your Amazon FSx for Lustre file system. The root of your FSx for Lustre file system will be mapped to the root of the Amazon S3 bucket you select. An example is s3://import-bucket/optional-prefix. If you specify a prefix after the Amazon S3 bucket name, only object keys with that prefix are loaded into the file system.

      • ExportPath — (String)

        (Optional) The path in Amazon S3 where the root of your Amazon FSx file system is exported. The path must use the same Amazon S3 bucket as specified in ImportPath. You can provide an optional prefix to which new and changed data is to be exported from your Amazon FSx for Lustre file system. If an ExportPath value is not provided, Amazon FSx sets a default export path, s3://import-bucket/FSxLustre[creation-timestamp]. The timestamp is in UTC format, for example s3://import-bucket/FSxLustre20181105T222312Z.

        The Amazon S3 export bucket must be the same as the import bucket specified by ImportPath. If you only specify a bucket name, such as s3://import-bucket, you get a 1:1 mapping of file system objects to S3 bucket objects. This mapping means that the input data in S3 is overwritten on export. If you provide a custom prefix in the export path, such as s3://import-bucket/[custom-optional-prefix], Amazon FSx exports the contents of your file system to that export prefix in the Amazon S3 bucket.

      • ImportedFileChunkSize — (Integer)

        (Optional) 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.

      • DeploymentType — (String)

        (Optional) Choose SCRATCH_1 and SCRATCH_2 deployment types when you need temporary storage and shorter-term processing of data. The SCRATCH_2 deployment type provides in-transit encryption of data and higher burst throughput capacity than SCRATCH_1.

        Choose PERSISTENT_1 deployment type for longer-term storage and workloads and encryption of data in transit. To learn more about deployment types, see FSx for Lustre Deployment Options.

        Encryption of data in-transit is automatically enabled when you access a SCRATCH_2 or PERSISTENT_1 file system from Amazon EC2 instances that support this feature. (Default = SCRATCH_1)

        Encryption of data in-transit for SCRATCH_2 and PERSISTENT_1 deployment types is supported when accessed from supported instance types in supported AWS Regions. To learn more, Encrypting Data in Transit.

        Possible values include:
        • "SCRATCH_1"
        • "SCRATCH_2"
        • "PERSISTENT_1"
      • PerUnitStorageThroughput — (Integer)

        Required for the PERSISTENT_1 deployment type, describes the amount of read and write throughput for each 1 tebibyte of storage, in MB/s/TiB. File system throughput capacity is calculated by multiplying file system storage capacity (TiB) by the PerUnitStorageThroughput (MB/s/TiB). For a 2.4 TiB file system, provisioning 50 MB/s/TiB of PerUnitStorageThroughput yields 117 MB/s of file system throughput. You pay for the amount of throughput that you provision.

        Valid values are 50, 100, 200.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • FileSystem — (map)

        The configuration of the file system that was created.

        • OwnerId — (String)

          The AWS account that created the file system. If the file system was created by an AWS Identity and Access Management (IAM) user, the AWS account to which the IAM user belongs is the owner.

        • CreationTime — (Date)

          The time that the file system was created, in seconds (since 1970-01-01T00:00:00Z), also known as Unix time.

        • FileSystemId — (String)

          The system-generated, unique 17-digit ID of the file system.

        • FileSystemType — (String)

          The type of Amazon FSx file system, either LUSTRE or WINDOWS.

          Possible values include:
          • "WINDOWS"
          • "LUSTRE"
        • Lifecycle — (String)

          The lifecycle status of the file system, following are the possible values and what they mean:

          • AVAILABLE - The file system is in a healthy state, and is reachable and available for use.

          • CREATING - Amazon FSx is creating the new file system.

          • DELETING - Amazon FSx is deleting an existing file system.

          • FAILED - An existing file system has experienced an unrecoverable failure. When creating a new file system, Amazon FSx was unable to create the file system.

          • MISCONFIGURED indicates that the file system is in a failed but recoverable state.

          • UPDATING indicates that the file system is undergoing a customer initiated update.

          Possible values include:
          • "AVAILABLE"
          • "CREATING"
          • "FAILED"
          • "DELETING"
          • "MISCONFIGURED"
          • "UPDATING"
        • FailureDetails — (map)

          A structure providing details of any failures that occur when creating the file system has failed.

          • Message — (String)

            A message describing any failures that occurred during file system creation.

        • StorageCapacity — (Integer)

          The storage capacity of the file system in gigabytes (GB).

        • StorageType — (String)

          The storage type of the file system. Valid values are SSD and HDD. If set to SSD, the file system uses solid state drive storage. If set to HDD, the file system uses hard disk drive storage.

          Possible values include:
          • "SSD"
          • "HDD"
        • VpcId — (String)

          The ID of the primary VPC for the file system.

        • SubnetIds — (Array<String>)

          Specifies the IDs of the subnets that the file system is accessible from. For Windows MULTI_AZ_1 file system deployment type, there are two subnet IDs, one for the preferred file server and one for the standby file server. The preferred file server subnet identified in the PreferredSubnetID property. All other file systems have only one subnet ID.

          For Lustre file systems, and Single-AZ Windows file systems, this is the ID of the subnet that contains the endpoint for the file system. For MULTI_AZ_1 Windows file systems, the endpoint for the file system is available in the PreferredSubnetID.

        • NetworkInterfaceIds — (Array<String>)

          The IDs of the elastic network interface from which a specific file system is accessible. The elastic network interface is automatically created in the same VPC that the Amazon FSx file system was created in. For more information, see Elastic Network Interfaces in the Amazon EC2 User Guide.

          For an Amazon FSx for Windows File Server file system, you can have one network interface ID. For an Amazon FSx for Lustre file system, you can have more than one.

        • DNSName — (String)

          The DNS name for the file system.

        • KmsKeyId — (String)

          The ID of the AWS Key Management Service (AWS KMS) key used to encrypt the file system's data for Amazon FSx for Windows File Server file systems and persistent Amazon FSx for Lustre file systems at rest. In either case, if not specified, the Amazon FSx managed key is used. The scratch Amazon FSx for Lustre file systems are always encrypted at rest using Amazon FSx managed keys. For more information, see Encrypt in the AWS Key Management Service API Reference.

        • ResourceARN — (String)

          The Amazon Resource Name (ARN) for the file system resource.

        • Tags — (Array<map>)

          The tags to associate with the file system. For more information, see Tagging Your Amazon EC2 Resources in the Amazon EC2 User Guide.

          • Key — (String)

            A value that specifies the TagKey, the name of the tag. Tag keys must be unique for the resource to which they are attached.

          • Value — (String)

            A value that specifies the TagValue, the value assigned to the corresponding tag key. Tag values can be null and don't have to be unique in a tag set. For example, you can have a key-value pair in a tag set of finances : April and also of payroll : April.

        • WindowsConfiguration — (map)

          The configuration for this Microsoft Windows file system.

          • ActiveDirectoryId — (String)

            The ID for an existing Microsoft Active Directory instance that the file system should join when it's created.

          • SelfManagedActiveDirectoryConfiguration — (map)

            The configuration of the self-managed Microsoft Active Directory (AD) directory to which the Windows File Server instance is joined.

            • DomainName — (String)

              The fully qualified domain name of the self-managed AD directory.

            • OrganizationalUnitDistinguishedName — (String)

              The fully qualified distinguished name of the organizational unit within the self-managed AD directory to which the Windows File Server instance is joined.

            • FileSystemAdministratorsGroup — (String)

              The name of the domain group whose members have administrative privileges for the FSx file system.

            • UserName — (String)

              The user name for the service account on your self-managed AD domain that FSx uses to join to your AD domain.

            • DnsIps — (Array<String>)

              A list of up to two IP addresses of DNS servers or domain controllers in the self-managed AD directory.

          • DeploymentType — (String)

            Specifies the file system deployment type, valid values are the following:

            • MULTI_AZ_1 - Specifies a high availability file system that is configured for Multi-AZ redundancy to tolerate temporary Availability Zone (AZ) unavailability, and supports SSD and HDD storage.

            • SINGLE_AZ_1 - (Default) Specifies a file system that is configured for single AZ redundancy, only supports SSD storage.

            • SINGLE_AZ_2 - Latest generation Single AZ file system. Specifies a file system that is configured for single AZ redundancy and supports SSD and HDD storage.

            For more information, see Single-AZ and Multi-AZ File Systems.

            Possible values include:
            • "MULTI_AZ_1"
            • "SINGLE_AZ_1"
            • "SINGLE_AZ_2"
          • RemoteAdministrationEndpoint — (String)

            For MULTI_AZ_1 deployment types, use this endpoint when performing administrative tasks on the file system using Amazon FSx Remote PowerShell.

            For SINGLE_AZ_1 and SINGLE_AZ_2 deployment types, this is the DNS name of the file system.

            This endpoint is temporarily unavailable when the file system is undergoing maintenance.

          • PreferredSubnetId — (String)

            For MULTI_AZ_1 deployment types, it specifies the ID of the subnet where the preferred file server is located. Must be one of the two subnet IDs specified in SubnetIds property. Amazon FSx serves traffic from this subnet except in the event of a failover to the secondary file server.

            For SINGLE_AZ_1 and SINGLE_AZ_2 deployment types, this value is the same as that for SubnetIDs. For more information, see Availability and Durability: Single-AZ and Multi-AZ File Systems

          • PreferredFileServerIp — (String)

            For MULTI_AZ_1 deployment types, the IP address of the primary, or preferred, file server.

            Use this IP address when mounting the file system on Linux SMB clients or Windows SMB clients that are not joined to a Microsoft Active Directory. Applicable for all Windows file system deployment types. This IP address is temporarily unavailable when the file system is undergoing maintenance. For Linux and Windows SMB clients that are joined to an Active Directory, use the file system's DNSName instead. For more information on mapping and mounting file shares, see Accessing File Shares.

          • ThroughputCapacity — (Integer)

            The throughput of an Amazon FSx file system, measured in megabytes per second.

          • MaintenanceOperationsInProgress — (Array<String>)

            The list of maintenance operations in progress for this file system.

          • WeeklyMaintenanceStartTime — (String)

            The preferred time to perform weekly maintenance, in the UTC time zone.

          • DailyAutomaticBackupStartTime — (String)

            The preferred time to take daily automatic backups, in the UTC time zone.

          • AutomaticBackupRetentionDays — (Integer)

            The number of days to retain automatic backups. Setting this to 0 disables automatic backups. You can retain automatic backups for a maximum of 35 days.

          • CopyTagsToBackups — (Boolean)

            A boolean flag indicating whether tags on the file system should be copied to backups. This value defaults to false. If it's set to true, all tags on the file system are copied to all automatic backups and any user-initiated backups where the user doesn't specify any tags. If this value is true, and you specify one or more tags, only the specified tags are copied to backups. If you specify one or more tags when creating a user-initiated backup, no tags are copied from the file system, regardless of this value.

        • LustreConfiguration — (map)

          The configuration for the Amazon FSx for Lustre file system.

          • WeeklyMaintenanceStartTime — (String)

            The UTC time that you want to begin your weekly maintenance window.

          • DataRepositoryConfiguration — (map)

            The data repository configuration object for Lustre file systems returned in the response of the CreateFileSystem operation.

            • ImportPath — (String)

              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.

            • ExportPath — (String)

              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.

            • ImportedFileChunkSize — (Integer)

              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.

          • DeploymentType — (String)

            The deployment type of the FSX for Lustre file system.

            Possible values include:
            • "SCRATCH_1"
            • "SCRATCH_2"
            • "PERSISTENT_1"
          • PerUnitStorageThroughput — (Integer)

            Per unit storage throughput represents the megabytes per second of read or write throughput per 1 tebibyte of storage provisioned. File system throughput capacity is equal to Storage capacity (TiB) * PerUnitStorageThroughput (MB/s/TiB). This option is only valid for PERSISTENT_1 deployment types. Valid values are 50, 100, 200.

          • MountName — (String)

            You use the MountName value when mounting the file system.

            For the SCRATCH_1 deployment type, this value is always "fsx". For SCRATCH_2 and PERSISTENT_1 deployment types, this value is a string that is unique within an AWS Region.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createFileSystemFromBackup(params = {}, callback) ⇒ AWS.Request

Creates a new Amazon FSx file system from an existing Amazon FSx for Windows File Server backup.

If a file system with the specified client request token exists and the parameters match, this operation returns the description of the file system. If a client request token specified by the file system exists and the parameters don't match, this call returns IncompatibleParameterError. If a file system with the specified client request token doesn't exist, this operation does the following:

  • Creates a new Amazon FSx file system from backup with an assigned ID, and an initial lifecycle state of CREATING.

  • Returns the description of the file system.

Parameters like Active Directory, default share name, automatic backup, and backup settings default to the parameters of the file system that was backed up, unless overridden. You can explicitly supply other settings.

By using the idempotent operation, you can retry a CreateFileSystemFromBackup call without the risk of creating an extra file system. This approach can be useful when an initial call fails in a way that makes it unclear whether a file system was created. Examples are if a transport level timeout occurred, or your connection was reset. If you use the same client request token and the initial call created a file system, the client receives success as long as the parameters are the same.

Note: The CreateFileSystemFromBackup call returns while the file system's lifecycle state is still CREATING. You can check the file-system creation status by calling the DescribeFileSystems operation, which returns the file system state along with other information.

Service Reference:

Examples:

To create a new file system from backup


/* This operation creates a new file system from backup. */

 var params = {
  BackupId: "backup-03e3c82e0183b7b6b", 
  ClientRequestToken: "f4c94ed7-238d-4c46-93db-48cd62ec33b7", 
  SecurityGroupIds: [
     "sg-edcd9784"
  ], 
  SubnetIds: [
     "subnet-1234abcd"
  ], 
  Tags: [
     {
    Key: "Name", 
    Value: "MyFileSystem"
   }
  ], 
  WindowsConfiguration: {
   ThroughputCapacity: 8
  }
 };
 fsx.createFileSystemFromBackup(params, function(err, data) {
   if (err) console.log(err, err.stack); // an error occurred
   else     console.log(data);           // successful response
   /*
   data = {
    FileSystem: {
     CreationTime: <Date Representation>, 
     DNSName: "fs-0498eed5fe91001ec.fsx.com", 
     FileSystemId: "fs-0498eed5fe91001ec", 
     KmsKeyId: "arn:aws:kms:us-east-1:012345678912:key/0ff3ea8d-130e-4133-877f-93908b6fdbd6", 
     Lifecycle: "CREATING", 
     OwnerId: "012345678912", 
     ResourceARN: "arn:aws:fsx:us-east-1:012345678912:file-system/fs-0498eed5fe91001ec", 
     StorageCapacity: 300, 
     SubnetIds: [
        "subnet-1234abcd"
     ], 
     Tags: [
        {
       Key: "Name", 
       Value: "MyFileSystem"
      }
     ], 
     VpcId: "vpc-ab1234cd", 
     WindowsConfiguration: {
      ActiveDirectoryId: "d-1234abcd12", 
      AutomaticBackupRetentionDays: 30, 
      DailyAutomaticBackupStartTime: "05:00", 
      ThroughputCapacity: 8, 
      WeeklyMaintenanceStartTime: "1:05:00"
     }
    }
   }
   */
 });

Calling the createFileSystemFromBackup operation

var params = {
  BackupId: 'STRING_VALUE', /* required */
  SubnetIds: [ /* required */
    'STRING_VALUE',
    /* more items */
  ],
  ClientRequestToken: 'STRING_VALUE',
  SecurityGroupIds: [
    'STRING_VALUE',
    /* more items */
  ],
  StorageType: SSD | HDD,
  Tags: [
    {
      Key: 'STRING_VALUE',
      Value: 'STRING_VALUE'
    },
    /* more items */
  ],
  WindowsConfiguration: {
    ThroughputCapacity: 'NUMBER_VALUE', /* required */
    ActiveDirectoryId: 'STRING_VALUE',
    AutomaticBackupRetentionDays: 'NUMBER_VALUE',
    CopyTagsToBackups: true || false,
    DailyAutomaticBackupStartTime: 'STRING_VALUE',
    DeploymentType: MULTI_AZ_1 | SINGLE_AZ_1 | SINGLE_AZ_2,
    PreferredSubnetId: 'STRING_VALUE',
    SelfManagedActiveDirectoryConfiguration: {
      DnsIps: [ /* required */
        'STRING_VALUE',
        /* more items */
      ],
      DomainName: 'STRING_VALUE', /* required */
      Password: 'STRING_VALUE', /* required */
      UserName: 'STRING_VALUE', /* required */
      FileSystemAdministratorsGroup: 'STRING_VALUE',
      OrganizationalUnitDistinguishedName: 'STRING_VALUE'
    },
    WeeklyMaintenanceStartTime: 'STRING_VALUE'
  }
};
fsx.createFileSystemFromBackup(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • BackupId — (String)

      The ID of the backup. Specifies the backup to use if you're creating a file system from an existing backup.

    • ClientRequestToken — (String)

      (Optional) A string of up to 64 ASCII characters that Amazon FSx uses to ensure idempotent creation. This string is automatically filled on your behalf when you use the AWS Command Line Interface (AWS CLI) or an AWS SDK.

      If a token is not provided, the SDK will use a version 4 UUID.
    • SubnetIds — (Array<String>)

      Specifies the IDs of the subnets that the file system will be accessible from. For Windows MULTI_AZ_1 file system deployment types, provide exactly two subnet IDs, one for the preferred file server and one for the standby file server. You specify one of these subnets as the preferred subnet using the WindowsConfiguration > PreferredSubnetID property.

      For Windows SINGLE_AZ_1 and SINGLE_AZ_2 deployment types and Lustre file systems, provide exactly one subnet ID. The file server is launched in that subnet's Availability Zone.

    • SecurityGroupIds — (Array<String>)

      A list of IDs for the security groups that apply to the specified network interfaces created for file system access. These security groups apply to all network interfaces. This value isn't returned in later DescribeFileSystem requests.

    • Tags — (Array<map>)

      The tags to be applied to the file system at file system creation. The key value of the Name tag appears in the console as the file system name.

      • Key — (String)

        A value that specifies the TagKey, the name of the tag. Tag keys must be unique for the resource to which they are attached.

      • Value — (String)

        A value that specifies the TagValue, the value assigned to the corresponding tag key. Tag values can be null and don't have to be unique in a tag set. For example, you can have a key-value pair in a tag set of finances : April and also of payroll : April.

    • WindowsConfiguration — (map)

      The configuration for this Microsoft Windows file system.

      • ActiveDirectoryId — (String)

        The ID for an existing AWS Managed Microsoft Active Directory (AD) instance that the file system should join when it's created.

      • SelfManagedActiveDirectoryConfiguration — (map)

        The configuration that Amazon FSx uses to join the Windows File Server instance to your self-managed (including on-premises) Microsoft Active Directory (AD) directory.

        • DomainNamerequired — (String)

          The fully qualified domain name of the self-managed AD directory, such as corp.example.com.

        • OrganizationalUnitDistinguishedName — (String)

          (Optional) The fully qualified distinguished name of the organizational unit within your self-managed AD directory that the Windows File Server instance will join. Amazon FSx only accepts OU as the direct parent of the file system. An example is OU=FSx,DC=yourdomain,DC=corp,DC=com. To learn more, see RFC 2253. If none is provided, the FSx file system is created in the default location of your self-managed AD directory.

          Only Organizational Unit (OU) objects can be the direct parent of the file system that you're creating.

        • FileSystemAdministratorsGroup — (String)

          (Optional) The name of the domain group whose members are granted administrative privileges for the file system. Administrative privileges include taking ownership of files and folders, setting audit controls (audit ACLs) on files and folders, and administering the file system remotely by using the FSx Remote PowerShell. The group that you specify must already exist in your domain. If you don't provide one, your AD domain's Domain Admins group is used.

        • UserNamerequired — (String)

          The user name for the service account on your self-managed AD domain that Amazon FSx will use to join to your AD domain. This account must have the permission to join computers to the domain in the organizational unit provided in OrganizationalUnitDistinguishedName, or in the default location of your AD domain.

        • Passwordrequired — (String)

          The password for the service account on your self-managed AD domain that Amazon FSx will use to join to your AD domain.

        • DnsIpsrequired — (Array<String>)

          A list of up to two IP addresses of DNS servers or domain controllers in the self-managed AD directory. The IP addresses need to be either in the same VPC CIDR range as the one in which your Amazon FSx file system is being created, or in the private IP version 4 (IPv4) address ranges, as specified in RFC 1918:

          • 10.0.0.0 - 10.255.255.255 (10/8 prefix)

          • 172.16.0.0 - 172.31.255.255 (172.16/12 prefix)

          • 192.168.0.0 - 192.168.255.255 (192.168/16 prefix)

      • DeploymentType — (String)

        Specifies the file system deployment type, valid values are the following:

        • MULTI_AZ_1 - Deploys a high availability file system that is configured for Multi-AZ redundancy to tolerate temporary Availability Zone (AZ) unavailability. You can only deploy a Multi-AZ file system in AWS Regions that have a minimum of three Availability Zones. Also supports HDD storage type

        • SINGLE_AZ_1 - (Default) Choose to deploy a file system that is configured for single AZ redundancy.

        • SINGLE_AZ_2 - The latest generation Single AZ file system. Specifies a file system that is configured for single AZ redundancy and supports HDD storage type.

        For more information, see Availability and Durability: Single-AZ and Multi-AZ File Systems.

        Possible values include:
        • "MULTI_AZ_1"
        • "SINGLE_AZ_1"
        • "SINGLE_AZ_2"
      • PreferredSubnetId — (String)

        Required when DeploymentType is set to MULTI_AZ_1. This specifies the subnet in which you want the preferred file server to be located. For in-AWS applications, we recommend that you launch your clients in the same Availability Zone (AZ) as your preferred file server to reduce cross-AZ data transfer costs and minimize latency.

      • ThroughputCapacityrequired — (Integer)

        The throughput of an Amazon FSx file system, measured in megabytes per second, in 2 to the nth increments, between 23 (8) and 211 (2048).

      • WeeklyMaintenanceStartTime — (String)

        The preferred start time to perform weekly maintenance, formatted d:HH:MM in the UTC time zone.

      • DailyAutomaticBackupStartTime — (String)

        The preferred time to take daily automatic backups, formatted HH:MM in the UTC time zone.

      • AutomaticBackupRetentionDays — (Integer)

        The number of days to retain automatic backups. The default is to retain backups for 7 days. Setting this value to 0 disables the creation of automatic backups. The maximum retention period for backups is 35 days.

      • CopyTagsToBackups — (Boolean)

        A boolean flag indicating whether tags for the file system should be copied to backups. This value defaults to false. If it's set to true, all tags for the file system are copied to all automatic and user-initiated backups where the user doesn't specify tags. If this value is true, and you specify one or more tags, only the specified tags are copied to backups. If you specify one or more tags when creating a user-initiated backup, no tags are copied from the file system, regardless of this value.

    • StorageType — (String)

      Sets the storage type for the Windows file system you're creating from a backup. Valid values are SSD and HDD.

      • Set to SSD to use solid state drive storage. Supported on all Windows deployment types.

      • Set to HDD to use hard disk drive storage. Supported on SINGLE_AZ_2 and MULTI_AZ_1 Windows file system deployment types.

      Default value is SSD.

      Note: HDD and SSD storage types have different minimum storage capacity requirements. A restored file system's storage capacity is tied to the file system that was backed up. You can create a file system that uses HDD storage from a backup of a file system that used SSD storage only if the original SSD file system had a storage capacity of at least 2000 GiB.
      Possible values include:
      • "SSD"
      • "HDD"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • FileSystem — (map)

        A description of the file system.

        • OwnerId — (String)

          The AWS account that created the file system. If the file system was created by an AWS Identity and Access Management (IAM) user, the AWS account to which the IAM user belongs is the owner.

        • CreationTime — (Date)

          The time that the file system was created, in seconds (since 1970-01-01T00:00:00Z), also known as Unix time.

        • FileSystemId — (String)

          The system-generated, unique 17-digit ID of the file system.

        • FileSystemType — (String)

          The type of Amazon FSx file system, either LUSTRE or WINDOWS.

          Possible values include:
          • "WINDOWS"
          • "LUSTRE"
        • Lifecycle — (String)

          The lifecycle status of the file system, following are the possible values and what they mean:

          • AVAILABLE - The file system is in a healthy state, and is reachable and available for use.

          • CREATING - Amazon FSx is creating the new file system.

          • DELETING - Amazon FSx is deleting an existing file system.

          • FAILED - An existing file system has experienced an unrecoverable failure. When creating a new file system, Amazon FSx was unable to create the file system.

          • MISCONFIGURED indicates that the file system is in a failed but recoverable state.

          • UPDATING indicates that the file system is undergoing a customer initiated update.

          Possible values include:
          • "AVAILABLE"
          • "CREATING"
          • "FAILED"
          • "DELETING"
          • "MISCONFIGURED"
          • "UPDATING"
        • FailureDetails — (map)

          A structure providing details of any failures that occur when creating the file system has failed.

          • Message — (String)

            A message describing any failures that occurred during file system creation.

        • StorageCapacity — (Integer)

          The storage capacity of the file system in gigabytes (GB).

        • StorageType — (String)

          The storage type of the file system. Valid values are SSD and HDD. If set to SSD, the file system uses solid state drive storage. If set to HDD, the file system uses hard disk drive storage.

          Possible values include:
          • "SSD"
          • "HDD"
        • VpcId — (String)

          The ID of the primary VPC for the file system.

        • SubnetIds — (Array<String>)

          Specifies the IDs of the subnets that the file system is accessible from. For Windows MULTI_AZ_1 file system deployment type, there are two subnet IDs, one for the preferred file server and one for the standby file server. The preferred file server subnet identified in the PreferredSubnetID property. All other file systems have only one subnet ID.

          For Lustre file systems, and Single-AZ Windows file systems, this is the ID of the subnet that contains the endpoint for the file system. For MULTI_AZ_1 Windows file systems, the endpoint for the file system is available in the PreferredSubnetID.

        • NetworkInterfaceIds — (Array<String>)

          The IDs of the elastic network interface from which a specific file system is accessible. The elastic network interface is automatically created in the same VPC that the Amazon FSx file system was created in. For more information, see Elastic Network Interfaces in the Amazon EC2 User Guide.

          For an Amazon FSx for Windows File Server file system, you can have one network interface ID. For an Amazon FSx for Lustre file system, you can have more than one.

        • DNSName — (String)

          The DNS name for the file system.

        • KmsKeyId — (String)

          The ID of the AWS Key Management Service (AWS KMS) key used to encrypt the file system's data for Amazon FSx for Windows File Server file systems and persistent Amazon FSx for Lustre file systems at rest. In either case, if not specified, the Amazon FSx managed key is used. The scratch Amazon FSx for Lustre file systems are always encrypted at rest using Amazon FSx managed keys. For more information, see Encrypt in the AWS Key Management Service API Reference.

        • ResourceARN — (String)

          The Amazon Resource Name (ARN) for the file system resource.

        • Tags — (Array<map>)

          The tags to associate with the file system. For more information, see Tagging Your Amazon EC2 Resources in the Amazon EC2 User Guide.

          • Key — (String)

            A value that specifies the TagKey, the name of the tag. Tag keys must be unique for the resource to which they are attached.

          • Value — (String)

            A value that specifies the TagValue, the value assigned to the corresponding tag key. Tag values can be null and don't have to be unique in a tag set. For example, you can have a key-value pair in a tag set of finances : April and also of payroll : April.

        • WindowsConfiguration — (map)

          The configuration for this Microsoft Windows file system.

          • ActiveDirectoryId — (String)

            The ID for an existing Microsoft Active Directory instance that the file system should join when it's created.

          • SelfManagedActiveDirectoryConfiguration — (map)

            The configuration of the self-managed Microsoft Active Directory (AD) directory to which the Windows File Server instance is joined.

            • DomainName — (String)

              The fully qualified domain name of the self-managed AD directory.

            • OrganizationalUnitDistinguishedName — (String)

              The fully qualified distinguished name of the organizational unit within the self-managed AD directory to which the Windows File Server instance is joined.

            • FileSystemAdministratorsGroup — (String)

              The name of the domain group whose members have administrative privileges for the FSx file system.

            • UserName — (String)

              The user name for the service account on your self-managed AD domain that FSx uses to join to your AD domain.

            • DnsIps — (Array<String>)

              A list of up to two IP addresses of DNS servers or domain controllers in the self-managed AD directory.

          • DeploymentType — (String)

            Specifies the file system deployment type, valid values are the following:

            • MULTI_AZ_1 - Specifies a high availability file system that is configured for Multi-AZ redundancy to tolerate temporary Availability Zone (AZ) unavailability, and supports SSD and HDD storage.

            • SINGLE_AZ_1 - (Default) Specifies a file system that is configured for single AZ redundancy, only supports SSD storage.

            • SINGLE_AZ_2 - Latest generation Single AZ file system. Specifies a file system that is configured for single AZ redundancy and supports SSD and HDD storage.

            For more information, see Single-AZ and Multi-AZ File Systems.

            Possible values include:
            • "MULTI_AZ_1"
            • "SINGLE_AZ_1"
            • "SINGLE_AZ_2"
          • RemoteAdministrationEndpoint — (String)

            For MULTI_AZ_1 deployment types, use this endpoint when performing administrative tasks on the file system using Amazon FSx Remote PowerShell.

            For SINGLE_AZ_1 and SINGLE_AZ_2 deployment types, this is the DNS name of the file system.

            This endpoint is temporarily unavailable when the file system is undergoing maintenance.

          • PreferredSubnetId — (String)

            For MULTI_AZ_1 deployment types, it specifies the ID of the subnet where the preferred file server is located. Must be one of the two subnet IDs specified in SubnetIds property. Amazon FSx serves traffic from this subnet except in the event of a failover to the secondary file server.

            For SINGLE_AZ_1 and SINGLE_AZ_2 deployment types, this value is the same as that for SubnetIDs. For more information, see Availability and Durability: Single-AZ and Multi-AZ File Systems

          • PreferredFileServerIp — (String)

            For MULTI_AZ_1 deployment types, the IP address of the primary, or preferred, file server.

            Use this IP address when mounting the file system on Linux SMB clients or Windows SMB clients that are not joined to a Microsoft Active Directory. Applicable for all Windows file system deployment types. This IP address is temporarily unavailable when the file system is undergoing maintenance. For Linux and Windows SMB clients that are joined to an Active Directory, use the file system's DNSName instead. For more information on mapping and mounting file shares, see Accessing File Shares.

          • ThroughputCapacity — (Integer)

            The throughput of an Amazon FSx file system, measured in megabytes per second.

          • MaintenanceOperationsInProgress — (Array<String>)

            The list of maintenance operations in progress for this file system.

          • WeeklyMaintenanceStartTime — (String)

            The preferred time to perform weekly maintenance, in the UTC time zone.

          • DailyAutomaticBackupStartTime — (String)

            The preferred time to take daily automatic backups, in the UTC time zone.

          • AutomaticBackupRetentionDays — (Integer)

            The number of days to retain automatic backups. Setting this to 0 disables automatic backups. You can retain automatic backups for a maximum of 35 days.

          • CopyTagsToBackups — (Boolean)

            A boolean flag indicating whether tags on the file system should be copied to backups. This value defaults to false. If it's set to true, all tags on the file system are copied to all automatic backups and any user-initiated backups where the user doesn't specify any tags. If this value is true, and you specify one or more tags, only the specified tags are copied to backups. If you specify one or more tags when creating a user-initiated backup, no tags are copied from the file system, regardless of this value.

        • LustreConfiguration — (map)

          The configuration for the Amazon FSx for Lustre file system.

          • WeeklyMaintenanceStartTime — (String)

            The UTC time that you want to begin your weekly maintenance window.

          • DataRepositoryConfiguration — (map)

            The data repository configuration object for Lustre file systems returned in the response of the CreateFileSystem operation.

            • ImportPath — (String)

              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.

            • ExportPath — (String)

              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.

            • ImportedFileChunkSize — (Integer)

              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.

          • DeploymentType — (String)

            The deployment type of the FSX for Lustre file system.

            Possible values include:
            • "SCRATCH_1"
            • "SCRATCH_2"
            • "PERSISTENT_1"
          • PerUnitStorageThroughput — (Integer)

            Per unit storage throughput represents the megabytes per second of read or write throughput per 1 tebibyte of storage provisioned. File system throughput capacity is equal to Storage capacity (TiB) * PerUnitStorageThroughput (MB/s/TiB). This option is only valid for PERSISTENT_1 deployment types. Valid values are 50, 100, 200.

          • MountName — (String)

            You use the MountName value when mounting the file system.

            For the SCRATCH_1 deployment type, this value is always "fsx". For SCRATCH_2 and PERSISTENT_1 deployment types, this value is a string that is unique within an AWS Region.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteBackup(params = {}, callback) ⇒ AWS.Request

Deletes an Amazon FSx for Windows File Server backup, deleting its contents. After deletion, the backup no longer exists, and its data is gone.

The DeleteBackup call returns instantly. The backup will not show up in later DescribeBackups calls.

The data in a deleted backup is also deleted and can't be recovered by any means.

Service Reference:

Examples:

To delete a backup


/* This operation deletes an Amazon FSx file system backup. */

 var params = {
  BackupId: "backup-03e3c82e0183b7b6b"
 };
 fsx.deleteBackup(params, function(err, data) {
   if (err) console.log(err, err.stack); // an error occurred
   else     console.log(data);           // successful response
   /*
   data = {
    BackupId: "backup-03e3c82e0183b7b6b", 
    Lifecycle: "DELETED"
   }
   */
 });

Calling the deleteBackup operation

var params = {
  BackupId: 'STRING_VALUE', /* required */
  ClientRequestToken: 'STRING_VALUE'
};
fsx.deleteBackup(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • BackupId — (String)

      The ID of the backup you want to delete.

    • ClientRequestToken — (String)

      (Optional) A string of up to 64 ASCII characters that Amazon FSx uses to ensure idempotent deletion. This is automatically filled on your behalf when using the AWS CLI or SDK.

      If a token is not provided, the SDK will use a version 4 UUID.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • BackupId — (String)

        The ID of the backup deleted.

      • Lifecycle — (String)

        The lifecycle of the backup. Should be DELETED.

        Possible values include:
        • "AVAILABLE"
        • "CREATING"
        • "DELETED"
        • "FAILED"

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteFileSystem(params = {}, callback) ⇒ AWS.Request

Deletes a file system, deleting its contents. After deletion, the file system no longer exists, and its data is gone. Any existing automatic backups will also be deleted.

By default, when you delete an Amazon FSx for Windows File Server file system, a final backup is created upon deletion. This final backup is not subject to the file system's retention policy, and must be manually deleted.

The DeleteFileSystem action returns while the file system has the DELETING status. You can check the file system deletion status by calling the DescribeFileSystems action, which returns a list of file systems in your account. If you pass the file system ID for a deleted file system, the DescribeFileSystems returns a FileSystemNotFound error.

Note: Deleting an Amazon FSx for Lustre file system will fail with a 400 BadRequest if a data repository task is in a PENDING or EXECUTING state.

The data in a deleted file system is also deleted and can't be recovered by any means.

Service Reference:

Examples:

To delete a file system


/* This operation deletes an Amazon FSx file system. */

 var params = {
  FileSystemId: "fs-0498eed5fe91001ec"
 };
 fsx.deleteFileSystem(params, function(err, data) {
   if (err) console.log(err, err.stack); // an error occurred
   else     console.log(data);           // successful response
   /*
   data = {
    FileSystemId: "fs-0498eed5fe91001ec", 
    Lifecycle: "DELETING"
   }
   */
 });

Calling the deleteFileSystem operation

var params = {
  FileSystemId: 'STRING_VALUE', /* required */
  ClientRequestToken: 'STRING_VALUE',
  WindowsConfiguration: {
    FinalBackupTags: [
      {
        Key: 'STRING_VALUE',
        Value: 'STRING_VALUE'
      },
      /* more items */
    ],
    SkipFinalBackup: true || false
  }
};
fsx.deleteFileSystem(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • FileSystemId — (String)

      The ID of the file system you want to delete.

    • ClientRequestToken — (String)

      (Optional) A string of up to 64 ASCII characters that Amazon FSx uses to ensure idempotent deletion. This is automatically filled on your behalf when using the AWS CLI or SDK.

      If a token is not provided, the SDK will use a version 4 UUID.
    • WindowsConfiguration — (map)

      The configuration object for the Microsoft Windows file system used in the DeleteFileSystem operation.

      • SkipFinalBackup — (Boolean)

        By default, Amazon FSx for Windows takes a final backup on your behalf when the DeleteFileSystem operation is invoked. Doing this helps protect you from data loss, and we highly recommend taking the final backup. If you want to skip this backup, use this flag to do so.

      • FinalBackupTags — (Array<map>)

        A set of tags for your final backup.

        • Key — (String)

          A value that specifies the TagKey, the name of the tag. Tag keys must be unique for the resource to which they are attached.

        • Value — (String)

          A value that specifies the TagValue, the value assigned to the corresponding tag key. Tag values can be null and don't have to be unique in a tag set. For example, you can have a key-value pair in a tag set of finances : April and also of payroll : April.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • FileSystemId — (String)

        The ID of the file system being deleted.

      • Lifecycle — (String)

        The file system lifecycle for the deletion request. Should be DELETING.

        Possible values include:
        • "AVAILABLE"
        • "CREATING"
        • "FAILED"
        • "DELETING"
        • "MISCONFIGURED"
        • "UPDATING"
      • WindowsResponse — (map)

        The response object for the Microsoft Windows file system used in the DeleteFileSystem operation.

        • FinalBackupId — (String)

          The ID of the final backup for this file system.

        • FinalBackupTags — (Array<map>)

          The set of tags applied to the final backup.

          • Key — (String)

            A value that specifies the TagKey, the name of the tag. Tag keys must be unique for the resource to which they are attached.

          • Value — (String)

            A value that specifies the TagValue, the value assigned to the corresponding tag key. Tag values can be null and don't have to be unique in a tag set. For example, you can have a key-value pair in a tag set of finances : April and also of payroll : April.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeBackups(params = {}, callback) ⇒ AWS.Request

Returns the description of specific Amazon FSx for Windows File Server backups, if a BackupIds value is provided for that backup. Otherwise, it returns all backups owned by your AWS account in the AWS Region of the endpoint that you're calling.

When retrieving all backups, you can optionally specify the MaxResults parameter to limit the number of backups in a response. If more backups remain, Amazon FSx returns a NextToken value in the response. In this case, send a later request with the NextToken request parameter set to the value of NextToken from the last response.

This action is used in an iterative process to retrieve a list of your backups. DescribeBackups is called first without a NextTokenvalue. Then the action continues to be called with the NextToken parameter set to the value of the last NextToken value until a response has no NextToken.

When using this action, keep the following in mind:

  • The implementation might return fewer than MaxResults file system descriptions while still including a NextToken value.

  • The order of backups returned in the response of one DescribeBackups call and the order of backups returned across the responses of a multi-call iteration is unspecified.

Service Reference:

Examples:

To describe Amazon FSx backups


/* This operation describes all of the Amazon FSx backups in an account. */

 var params = {
 };
 fsx.describeBackups(params, function(err, data) {
   if (err) console.log(err, err.stack); // an error occurred
   else     console.log(data);           // successful response
   /*
   data = {
    Backups: [
       {
      BackupId: "backup-03e3c82e0183b7b6b", 
      CreationTime: <Date Representation>, 
      FileSystem: {
       FileSystemId: "fs-0498eed5fe91001ec", 
       OwnerId: "012345678912", 
       StorageCapacity: 300, 
       WindowsConfiguration: {
        ActiveDirectoryId: "d-1234abcd12", 
        AutomaticBackupRetentionDays: 30, 
        DailyAutomaticBackupStartTime: "05:00", 
        WeeklyMaintenanceStartTime: "1:05:00"
       }
      }, 
      Lifecycle: "AVAILABLE", 
      ResourceARN: "arn:aws:fsx:us-east-1:012345678912:backup/backup-03e3c82e0183b7b6b", 
      Tags: [
         {
        Key: "Name", 
        Value: "MyBackup"
       }
      ], 
      Type: "USER_INITIATED"
     }
    ]
   }
   */
 });

Calling the describeBackups operation

var params = {
  BackupIds: [
    'STRING_VALUE',
    /* more items */
  ],
  Filters: [
    {
      Name: file-system-id | backup-type,
      Values: [
        'STRING_VALUE',
        /* more items */
      ]
    },
    /* more items */
  ],
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
fsx.describeBackups(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • BackupIds — (Array<String>)

      (Optional) IDs of the backups you want to retrieve (String). This overrides any filters. If any IDs are not found, BackupNotFound will be thrown.

    • Filters — (Array<map>)

      (Optional) Filters structure. Supported names are file-system-id and backup-type.

      • Name — (String)

        The name for this filter.

        Possible values include:
        • "file-system-id"
        • "backup-type"
      • Values — (Array<String>)

        The values of the filter. These are all the values for any of the applied filters.

    • MaxResults — (Integer)

      (Optional) Maximum number of backups to return in the response (integer). This parameter value must be greater than 0. The number of items that Amazon FSx returns is the minimum of the MaxResults parameter specified in the request and the service's internal maximum number of items per page.

    • NextToken — (String)

      (Optional) Opaque pagination token returned from a previous DescribeBackups operation (String). If a token present, the action continues the list from where the returning call left off.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Backups — (Array<map>)

        Any array of backups.

        • BackupIdrequired — (String)

          The ID of the backup.

        • Lifecyclerequired — (String)

          The lifecycle status of the backup.

          Possible values include:
          • "AVAILABLE"
          • "CREATING"
          • "DELETED"
          • "FAILED"
        • FailureDetails — (map)

          Details explaining any failures that occur when creating a backup.

          • Message — (String)

            A message describing the backup creation failure.

        • Typerequired — (String)

          The type of the backup.

          Possible values include:
          • "AUTOMATIC"
          • "USER_INITIATED"
        • ProgressPercent — (Integer)

          The current percent of progress of an asynchronous task.

        • CreationTimerequired — (Date)

          The time when a particular backup was created.

        • KmsKeyId — (String)

          The ID of the AWS Key Management Service (AWS KMS) key used to encrypt this backup of the Amazon FSx for Windows file system's data at rest. Amazon FSx for Lustre does not support KMS encryption.

        • ResourceARN — (String)

          The Amazon Resource Name (ARN) for the backup resource.

        • Tags — (Array<map>)

          Tags associated with a particular file system.

          • Key — (String)

            A value that specifies the TagKey, the name of the tag. Tag keys must be unique for the resource to which they are attached.

          • Value — (String)

            A value that specifies the TagValue, the value assigned to the corresponding tag key. Tag values can be null and don't have to be unique in a tag set. For example, you can have a key-value pair in a tag set of finances : April and also of payroll : April.

        • FileSystemrequired — (map)

          Metadata of the file system associated with the backup. This metadata is persisted even if the file system is deleted.

          • OwnerId — (String)

            The AWS account that created the file system. If the file system was created by an AWS Identity and Access Management (IAM) user, the AWS account to which the IAM user belongs is the owner.

          • CreationTime — (Date)

            The time that the file system was created, in seconds (since 1970-01-01T00:00:00Z), also known as Unix time.

          • FileSystemId — (String)

            The system-generated, unique 17-digit ID of the file system.

          • FileSystemType — (String)

            The type of Amazon FSx file system, either LUSTRE or WINDOWS.

            Possible values include:
            • "WINDOWS"
            • "LUSTRE"
          • Lifecycle — (String)

            The lifecycle status of the file system, following are the possible values and what they mean:

            • AVAILABLE - The file system is in a healthy state, and is reachable and available for use.

            • CREATING - Amazon FSx is creating the new file system.

            • DELETING - Amazon FSx is deleting an existing file system.

            • FAILED - An existing file system has experienced an unrecoverable failure. When creating a new file system, Amazon FSx was unable to create the file system.

            • MISCONFIGURED indicates that the file system is in a failed but recoverable state.

            • UPDATING indicates that the file system is undergoing a customer initiated update.

            Possible values include:
            • "AVAILABLE"
            • "CREATING"
            • "FAILED"
            • "DELETING"
            • "MISCONFIGURED"
            • "UPDATING"
          • FailureDetails — (map)

            A structure providing details of any failures that occur when creating the file system has failed.

            • Message — (String)

              A message describing any failures that occurred during file system creation.

          • StorageCapacity — (Integer)

            The storage capacity of the file system in gigabytes (GB).

          • StorageType — (String)

            The storage type of the file system. Valid values are SSD and HDD. If set to SSD, the file system uses solid state drive storage. If set to HDD, the file system uses hard disk drive storage.

            Possible values include:
            • "SSD"
            • "HDD"
          • VpcId — (String)

            The ID of the primary VPC for the file system.

          • SubnetIds — (Array<String>)

            Specifies the IDs of the subnets that the file system is accessible from. For Windows MULTI_AZ_1 file system deployment type, there are two subnet IDs, one for the preferred file server and one for the standby file server. The preferred file server subnet identified in the PreferredSubnetID property. All other file systems have only one subnet ID.

            For Lustre file systems, and Single-AZ Windows file systems, this is the ID of the subnet that contains the endpoint for the file system. For MULTI_AZ_1 Windows file systems, the endpoint for the file system is available in the PreferredSubnetID.

          • NetworkInterfaceIds — (Array<String>)

            The IDs of the elastic network interface from which a specific file system is accessible. The elastic network interface is automatically created in the same VPC that the Amazon FSx file system was created in. For more information, see Elastic Network Interfaces in the Amazon EC2 User Guide.

            For an Amazon FSx for Windows File Server file system, you can have one network interface ID. For an Amazon FSx for Lustre file system, you can have more than one.

          • DNSName — (String)

            The DNS name for the file system.

          • KmsKeyId — (String)

            The ID of the AWS Key Management Service (AWS KMS) key used to encrypt the file system's data for Amazon FSx for Windows File Server file systems and persistent Amazon FSx for Lustre file systems at rest. In either case, if not specified, the Amazon FSx managed key is used. The scratch Amazon FSx for Lustre file systems are always encrypted at rest using Amazon FSx managed keys. For more information, see Encrypt in the AWS Key Management Service API Reference.

          • ResourceARN — (String)

            The Amazon Resource Name (ARN) for the file system resource.

          • Tags — (Array<map>)

            The tags to associate with the file system. For more information, see Tagging Your Amazon EC2 Resources in the Amazon EC2 User Guide.

            • Key — (String)

              A value that specifies the TagKey, the name of the tag. Tag keys must be unique for the resource to which they are attached.

            • Value — (String)

              A value that specifies the TagValue, the value assigned to the corresponding tag key. Tag values can be null and don't have to be unique in a tag set. For example, you can have a key-value pair in a tag set of finances : April and also of payroll : April.

          • WindowsConfiguration — (map)

            The configuration for this Microsoft Windows file system.

            • ActiveDirectoryId — (String)

              The ID for an existing Microsoft Active Directory instance that the file system should join when it's created.

            • SelfManagedActiveDirectoryConfiguration — (map)

              The configuration of the self-managed Microsoft Active Directory (AD) directory to which the Windows File Server instance is joined.

              • DomainName — (String)

                The fully qualified domain name of the self-managed AD directory.

              • OrganizationalUnitDistinguishedName — (String)

                The fully qualified distinguished name of the organizational unit within the self-managed AD directory to which the Windows File Server instance is joined.

              • FileSystemAdministratorsGroup — (String)

                The name of the domain group whose members have administrative privileges for the FSx file system.

              • UserName — (String)

                The user name for the service account on your self-managed AD domain that FSx uses to join to your AD domain.

              • DnsIps — (Array<String>)

                A list of up to two IP addresses of DNS servers or domain controllers in the self-managed AD directory.

            • DeploymentType — (String)

              Specifies the file system deployment type, valid values are the following:

              • MULTI_AZ_1 - Specifies a high availability file system that is configured for Multi-AZ redundancy to tolerate temporary Availability Zone (AZ) unavailability, and supports SSD and HDD storage.

              • SINGLE_AZ_1 - (Default) Specifies a file system that is configured for single AZ redundancy, only supports SSD storage.

              • SINGLE_AZ_2 - Latest generation Single AZ file system. Specifies a file system that is configured for single AZ redundancy and supports SSD and HDD storage.

              For more information, see Single-AZ and Multi-AZ File Systems.

              Possible values include:
              • "MULTI_AZ_1"
              • "SINGLE_AZ_1"
              • "SINGLE_AZ_2"
            • RemoteAdministrationEndpoint — (String)

              For MULTI_AZ_1 deployment types, use this endpoint when performing administrative tasks on the file system using Amazon FSx Remote PowerShell.

              For SINGLE_AZ_1 and SINGLE_AZ_2 deployment types, this is the DNS name of the file system.

              This endpoint is temporarily unavailable when the file system is undergoing maintenance.

            • PreferredSubnetId — (String)

              For MULTI_AZ_1 deployment types, it specifies the ID of the subnet where the preferred file server is located. Must be one of the two subnet IDs specified in SubnetIds property. Amazon FSx serves traffic from this subnet except in the event of a failover to the secondary file server.

              For SINGLE_AZ_1 and SINGLE_AZ_2 deployment types, this value is the same as that for SubnetIDs. For more information, see Availability and Durability: Single-AZ and Multi-AZ File Systems

            • PreferredFileServerIp — (String)

              For MULTI_AZ_1 deployment types, the IP address of the primary, or preferred, file server.

              Use this IP address when mounting the file system on Linux SMB clients or Windows SMB clients that are not joined to a Microsoft Active Directory. Applicable for all Windows file system deployment types. This IP address is temporarily unavailable when the file system is undergoing maintenance. For Linux and Windows SMB clients that are joined to an Active Directory, use the file system's DNSName instead. For more information on mapping and mounting file shares, see Accessing File Shares.

            • ThroughputCapacity — (Integer)

              The throughput of an Amazon FSx file system, measured in megabytes per second.

            • MaintenanceOperationsInProgress — (Array<String>)

              The list of maintenance operations in progress for this file system.

            • WeeklyMaintenanceStartTime — (String)

              The preferred time to perform weekly maintenance, in the UTC time zone.

            • DailyAutomaticBackupStartTime — (String)

              The preferred time to take daily automatic backups, in the UTC time zone.

            • AutomaticBackupRetentionDays — (Integer)

              The number of days to retain automatic backups. Setting this to 0 disables automatic backups. You can retain automatic backups for a maximum of 35 days.

            • CopyTagsToBackups — (Boolean)

              A boolean flag indicating whether tags on the file system should be copied to backups. This value defaults to false. If it's set to true, all tags on the file system are copied to all automatic backups and any user-initiated backups where the user doesn't specify any tags. If this value is true, and you specify one or more tags, only the specified tags are copied to backups. If you specify one or more tags when creating a user-initiated backup, no tags are copied from the file system, regardless of this value.

          • LustreConfiguration — (map)

            The configuration for the Amazon FSx for Lustre file system.

            • WeeklyMaintenanceStartTime — (String)

              The UTC time that you want to begin your weekly maintenance window.

            • DataRepositoryConfiguration — (map)

              The data repository configuration object for Lustre file systems returned in the response of the CreateFileSystem operation.

              • ImportPath — (String)

                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.

              • ExportPath — (String)

                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.

              • ImportedFileChunkSize — (Integer)

                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.

            • DeploymentType — (String)

              The deployment type of the FSX for Lustre file system.

              Possible values include:
              • "SCRATCH_1"
              • "SCRATCH_2"
              • "PERSISTENT_1"
            • PerUnitStorageThroughput — (Integer)

              Per unit storage throughput represents the megabytes per second of read or write throughput per 1 tebibyte of storage provisioned. File system throughput capacity is equal to Storage capacity (TiB) * PerUnitStorageThroughput (MB/s/TiB). This option is only valid for PERSISTENT_1 deployment types. Valid values are 50, 100, 200.

            • MountName — (String)

              You use the MountName value when mounting the file system.

              For the SCRATCH_1 deployment type, this value is always "fsx". For SCRATCH_2 and PERSISTENT_1 deployment types, this value is a string that is unique within an AWS Region.

        • DirectoryInformation — (map)

          The configuration of the self-managed Microsoft Active Directory (AD) to which the Windows File Server instance is joined.

          • DomainName — (String)

            The fully qualified domain name of the self-managed AD directory.

          • ActiveDirectoryId — (String)

            The ID of the AWS Managed Microsoft Active Directory instance to which the file system is joined.

      • NextToken — (String)

        This is present if there are more backups than returned in the response (String). You can use the NextToken value in the later request to fetch the backups.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeDataRepositoryTasks(params = {}, callback) ⇒ AWS.Request

Returns the description of specific Amazon FSx for Lustre data repository tasks, if one or more TaskIds values are provided in the request, or if filters are used in the request. You can use filters to narrow the response to include just tasks for specific file systems, or tasks in a specific lifecycle state. Otherwise, it returns all data repository tasks owned by your AWS account in the AWS Region of the endpoint that you're calling.

When retrieving all tasks, you can paginate the response by using the optional MaxResults parameter to limit the number of tasks returned in a response. If more tasks remain, Amazon FSx returns a NextToken value in the response. In this case, send a later request with the NextToken request parameter set to the value of NextToken from the last response.

Service Reference:

Examples:

Calling the describeDataRepositoryTasks operation

var params = {
  Filters: [
    {
      Name: file-system-id | task-lifecycle,
      Values: [
        'STRING_VALUE',
        /* more items */
      ]
    },
    /* more items */
  ],
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE',
  TaskIds: [
    'STRING_VALUE',
    /* more items */
  ]
};
fsx.describeDataRepositoryTasks(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • TaskIds — (Array<String>)

      (Optional) IDs of the tasks whose descriptions you want to retrieve (String).

    • Filters — (Array<map>)

      (Optional) You can use filters to narrow the DescribeDataRepositoryTasks response to include just tasks for specific file systems, or tasks in a specific lifecycle state.

      • Name — (String)

        Name of the task property to use in filtering the tasks returned in the response.

        • Use file-system-id to retrieve data repository tasks for specific file systems.

        • Use task-lifecycle to retrieve data repository tasks with one or more specific lifecycle states, as follows: CANCELED, EXECUTING, FAILED, PENDING, and SUCCEEDED.

        Possible values include:
        • "file-system-id"
        • "task-lifecycle"
      • Values — (Array<String>)

        Use Values to include the specific file system IDs and task lifecycle states for the filters you are using.

    • MaxResults — (Integer)

      The maximum number of resources to return in the response. This value must be an integer greater than zero.

    • NextToken — (String)

      (Optional) Opaque pagination token returned from a previous operation (String). If present, this token indicates from what point you can continue processing the request, where the previous NextToken value left off.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • DataRepositoryTasks — (Array<map>)

        The collection of data repository task descriptions returned.

        • TaskIdrequired — (String)

          The system-generated, unique 17-digit ID of the data repository task.

        • Lifecyclerequired — (String)

          The lifecycle status of the data repository task, as follows:

          • PENDING - Amazon FSx has not started the task.

          • EXECUTING - Amazon FSx is processing the task.

          • FAILED - Amazon FSx was not able to complete the task. For example, there may be files the task failed to process. The DataRepositoryTaskFailureDetails property provides more information about task failures.

          • SUCCEEDED - FSx completed the task successfully.

          • CANCELED - Amazon FSx canceled the task and it did not complete.

          • CANCELING - FSx is in process of canceling the task.

          Note: You cannot delete an FSx for Lustre file system if there are data repository tasks for the file system in the PENDING or EXECUTING states. Please retry when the data repository task is finished (with a status of CANCELED, SUCCEEDED, or FAILED). You can use the DescribeDataRepositoryTask action to monitor the task status. Contact the FSx team if you need to delete your file system immediately.
          Possible values include:
          • "PENDING"
          • "EXECUTING"
          • "FAILED"
          • "SUCCEEDED"
          • "CANCELED"
          • "CANCELING"
        • Typerequired — (String)

          The type of data repository task; EXPORT_TO_REPOSITORY is the only type currently supported.

          Possible values include:
          • "EXPORT_TO_REPOSITORY"
        • CreationTimerequired — (Date)

          The time that the resource was created, in seconds (since 1970-01-01T00:00:00Z), also known as Unix time.

        • StartTime — (Date)

          The time that Amazon FSx began processing the task.

        • EndTime — (Date)

          The time that Amazon FSx completed processing the task, populated after the task is complete.

        • ResourceARN — (String)

          The Amazon Resource Name (ARN) for a given resource. ARNs uniquely identify AWS resources. We require an ARN when you need to specify a resource unambiguously across all of AWS. For more information, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.

        • Tags — (Array<map>)

          A list of Tag values, with a maximum of 50 elements.

          • Key — (String)

            A value that specifies the TagKey, the name of the tag. Tag keys must be unique for the resource to which they are attached.

          • Value — (String)

            A value that specifies the TagValue, the value assigned to the corresponding tag key. Tag values can be null and don't have to be unique in a tag set. For example, you can have a key-value pair in a tag set of finances : April and also of payroll : April.

        • FileSystemIdrequired — (String)

          The globally unique ID of the file system, assigned by Amazon FSx.

        • Paths — (Array<String>)

          An array of paths on the Amazon FSx for Lustre file system that specify the data for the data repository task to process. For example, in an EXPORT_TO_REPOSITORY task, the paths specify which data to export to the linked data repository.

          (Default) If Paths is not specified, Amazon FSx uses the file system root directory.

        • FailureDetails — (map)

          Failure message describing why the task failed, it is populated only when Lifecycle is set to FAILED.

          • Message — (String)

            A detailed error message.

        • Status — (map)

          Provides the status of the number of files that the task has processed successfully and failed to process.

          • TotalCount — (Integer)

            The total number of files that the task will process. While a task is executing, the sum of SucceededCount plus FailedCount may not equal TotalCount. When the task is complete, TotalCount equals the sum of SucceededCount plus FailedCount.

          • SucceededCount — (Integer)

            A running total of the number of files that the task has successfully processed.

          • FailedCount — (Integer)

            A running total of the number of files that the task failed to process.

          • LastUpdatedTime — (Date)

            The time at which the task status was last updated.

        • Report — (map)

          Provides a report detailing the data repository task results of the files processed that match the criteria specified in the report Scope parameter. FSx delivers the report to the file system's linked data repository in Amazon S3, using the path specified in the report Path parameter. You can specify whether or not a report gets generated for a task using the Enabled parameter.

          • Enabledrequired — (Boolean)

            Set Enabled to True to generate a CompletionReport when the task completes. If set to true, then you need to provide a report Scope, Path, and Format. Set Enabled to False if you do not want a CompletionReport generated when the task completes.

          • Path — (String)

            Required if Enabled is set to true. Specifies the location of the report on the file system's linked S3 data repository. An absolute path that defines where the completion report will be stored in the destination location. The Path you provide must be located within the file system’s ExportPath. An example Path value is "s3://myBucket/myExportPath/optionalPrefix". The report provides the following information for each file in the report: FilePath, FileStatus, and ErrorCode. To learn more about a file system's ExportPath, see .

          • Format — (String)

            Required if Enabled is set to true. Specifies the format of the CompletionReport. REPORT_CSV_20191124 is the only format currently supported. When Format is set to REPORT_CSV_20191124, the CompletionReport is provided in CSV format, and is delivered to {path}/task-{id}/failures.csv.

            Possible values include:
            • "REPORT_CSV_20191124"
          • Scope — (String)

            Required if Enabled is set to true. Specifies the scope of the CompletionReport; FAILED_FILES_ONLY is the only scope currently supported. When Scope is set to FAILED_FILES_ONLY, the CompletionReport only contains information about files that the data repository task failed to process.

            Possible values include:
            • "FAILED_FILES_ONLY"
      • NextToken — (String)

        (Optional) Opaque pagination token returned from a previous operation (String). If present, this token indicates from what point you can continue processing the request, where the previous NextToken value left off.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeFileSystems(params = {}, callback) ⇒ AWS.Request

Returns the description of specific Amazon FSx file systems, if a FileSystemIds value is provided for that file system. Otherwise, it returns descriptions of all file systems owned by your AWS account in the AWS Region of the endpoint that you're calling.

When retrieving all file system descriptions, you can optionally specify the MaxResults parameter to limit the number of descriptions in a response. If more file system descriptions remain, Amazon FSx returns a NextToken value in the response. In this case, send a later request with the NextToken request parameter set to the value of NextToken from the last response.

This action is used in an iterative process to retrieve a list of your file system descriptions. DescribeFileSystems is called first without a NextTokenvalue. Then the action continues to be called with the NextToken parameter set to the value of the last NextToken value until a response has no NextToken.

When using this action, keep the following in mind:

  • The implementation might return fewer than MaxResults file system descriptions while still including a NextToken value.

  • The order of file systems returned in the response of one DescribeFileSystems call and the order of file systems returned across the responses of a multicall iteration is unspecified.

Service Reference:

Examples:

To describe an Amazon FSx file system


/* This operation describes all of the Amazon FSx file systems in an account. */

 var params = {
 };
 fsx.describeFileSystems(params, function(err, data) {
   if (err) console.log(err, err.stack); // an error occurred
   else     console.log(data);           // successful response
   /*
   data = {
    FileSystems: [
       {
      CreationTime: <Date Representation>, 
      DNSName: "fs-0498eed5fe91001ec.fsx.com", 
      FileSystemId: "fs-0498eed5fe91001ec", 
      KmsKeyId: "arn:aws:kms:us-east-1:012345678912:key/0ff3ea8d-130e-4133-877f-93908b6fdbd6", 
      Lifecycle: "AVAILABLE", 
      NetworkInterfaceIds: [
         "eni-abcd1234"
      ], 
      OwnerId: "012345678912", 
      ResourceARN: "arn:aws:fsx:us-east-1:012345678912:file-system/fs-0498eed5fe91001ec", 
      StorageCapacity: 300, 
      SubnetIds: [
         "subnet-1234abcd"
      ], 
      Tags: [
         {
        Key: "Name", 
        Value: "MyFileSystem"
       }
      ], 
      VpcId: "vpc-ab1234cd", 
      WindowsConfiguration: {
       ActiveDirectoryId: "d-1234abcd12", 
       AutomaticBackupRetentionDays: 30, 
       DailyAutomaticBackupStartTime: "05:00", 
       ThroughputCapacity: 8, 
       WeeklyMaintenanceStartTime: "1:05:00"
      }
     }
    ]
   }
   */
 });

Calling the describeFileSystems operation

var params = {
  FileSystemIds: [
    'STRING_VALUE',
    /* more items */
  ],
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
fsx.describeFileSystems(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • FileSystemIds — (Array<String>)

      (Optional) IDs of the file systems whose descriptions you want to retrieve (String).

    • MaxResults — (Integer)

      (Optional) Maximum number of file systems to return in the response (integer). This parameter value must be greater than 0. The number of items that Amazon FSx returns is the minimum of the MaxResults parameter specified in the request and the service's internal maximum number of items per page.

    • NextToken — (String)

      (Optional) Opaque pagination token returned from a previous DescribeFileSystems operation (String). If a token present, the action continues the list from where the returning call left off.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • FileSystems — (Array<map>)

        An array of file system descriptions.

        • OwnerId — (String)

          The AWS account that created the file system. If the file system was created by an AWS Identity and Access Management (IAM) user, the AWS account to which the IAM user belongs is the owner.

        • CreationTime — (Date)

          The time that the file system was created, in seconds (since 1970-01-01T00:00:00Z), also known as Unix time.

        • FileSystemId — (String)

          The system-generated, unique 17-digit ID of the file system.

        • FileSystemType — (String)

          The type of Amazon FSx file system, either LUSTRE or WINDOWS.

          Possible values include:
          • "WINDOWS"
          • "LUSTRE"
        • Lifecycle — (String)

          The lifecycle status of the file system, following are the possible values and what they mean:

          • AVAILABLE - The file system is in a healthy state, and is reachable and available for use.

          • CREATING - Amazon FSx is creating the new file system.

          • DELETING - Amazon FSx is deleting an existing file system.

          • FAILED - An existing file system has experienced an unrecoverable failure. When creating a new file system, Amazon FSx was unable to create the file system.

          • MISCONFIGURED indicates that the file system is in a failed but recoverable state.

          • UPDATING indicates that the file system is undergoing a customer initiated update.

          Possible values include:
          • "AVAILABLE"
          • "CREATING"
          • "FAILED"
          • "DELETING"
          • "MISCONFIGURED"
          • "UPDATING"
        • FailureDetails — (map)

          A structure providing details of any failures that occur when creating the file system has failed.

          • Message — (String)

            A message describing any failures that occurred during file system creation.

        • StorageCapacity — (Integer)

          The storage capacity of the file system in gigabytes (GB).

        • StorageType — (String)

          The storage type of the file system. Valid values are SSD and HDD. If set to SSD, the file system uses solid state drive storage. If set to HDD, the file system uses hard disk drive storage.

          Possible values include:
          • "SSD"
          • "HDD"
        • VpcId — (String)

          The ID of the primary VPC for the file system.

        • SubnetIds — (Array<String>)

          Specifies the IDs of the subnets that the file system is accessible from. For Windows MULTI_AZ_1 file system deployment type, there are two subnet IDs, one for the preferred file server and one for the standby file server. The preferred file server subnet identified in the PreferredSubnetID property. All other file systems have only one subnet ID.

          For Lustre file systems, and Single-AZ Windows file systems, this is the ID of the subnet that contains the endpoint for the file system. For MULTI_AZ_1 Windows file systems, the endpoint for the file system is available in the PreferredSubnetID.

        • NetworkInterfaceIds — (Array<String>)

          The IDs of the elastic network interface from which a specific file system is accessible. The elastic network interface is automatically created in the same VPC that the Amazon FSx file system was created in. For more information, see Elastic Network Interfaces in the Amazon EC2 User Guide.

          For an Amazon FSx for Windows File Server file system, you can have one network interface ID. For an Amazon FSx for Lustre file system, you can have more than one.

        • DNSName — (String)

          The DNS name for the file system.

        • KmsKeyId — (String)

          The ID of the AWS Key Management Service (AWS KMS) key used to encrypt the file system's data for Amazon FSx for Windows File Server file systems and persistent Amazon FSx for Lustre file systems at rest. In either case, if not specified, the Amazon FSx managed key is used. The scratch Amazon FSx for Lustre file systems are always encrypted at rest using Amazon FSx managed keys. For more information, see Encrypt in the AWS Key Management Service API Reference.

        • ResourceARN — (String)

          The Amazon Resource Name (ARN) for the file system resource.

        • Tags — (Array<map>)

          The tags to associate with the file system. For more information, see Tagging Your Amazon EC2 Resources in the Amazon EC2 User Guide.

          • Key — (String)

            A value that specifies the TagKey, the name of the tag. Tag keys must be unique for the resource to which they are attached.

          • Value — (String)

            A value that specifies the TagValue, the value assigned to the corresponding tag key. Tag values can be null and don't have to be unique in a tag set. For example, you can have a key-value pair in a tag set of finances : April and also of payroll : April.

        • WindowsConfiguration — (map)

          The configuration for this Microsoft Windows file system.

          • ActiveDirectoryId — (String)

            The ID for an existing Microsoft Active Directory instance that the file system should join when it's created.

          • SelfManagedActiveDirectoryConfiguration — (map)

            The configuration of the self-managed Microsoft Active Directory (AD) directory to which the Windows File Server instance is joined.

            • DomainName — (String)

              The fully qualified domain name of the self-managed AD directory.

            • OrganizationalUnitDistinguishedName — (String)

              The fully qualified distinguished name of the organizational unit within the self-managed AD directory to which the Windows File Server instance is joined.

            • FileSystemAdministratorsGroup — (String)

              The name of the domain group whose members have administrative privileges for the FSx file system.

            • UserName — (String)

              The user name for the service account on your self-managed AD domain that FSx uses to join to your AD domain.

            • DnsIps — (Array<String>)

              A list of up to two IP addresses of DNS servers or domain controllers in the self-managed AD directory.

          • DeploymentType — (String)

            Specifies the file system deployment type, valid values are the following:

            • MULTI_AZ_1 - Specifies a high availability file system that is configured for Multi-AZ redundancy to tolerate temporary Availability Zone (AZ) unavailability, and supports SSD and HDD storage.

            • SINGLE_AZ_1 - (Default) Specifies a file system that is configured for single AZ redundancy, only supports SSD storage.

            • SINGLE_AZ_2 - Latest generation Single AZ file system. Specifies a file system that is configured for single AZ redundancy and supports SSD and HDD storage.

            For more information, see Single-AZ and Multi-AZ File Systems.

            Possible values include:
            • "MULTI_AZ_1"
            • "SINGLE_AZ_1"
            • "SINGLE_AZ_2"
          • RemoteAdministrationEndpoint — (String)

            For MULTI_AZ_1 deployment types, use this endpoint when performing administrative tasks on the file system using Amazon FSx Remote PowerShell.

            For SINGLE_AZ_1 and SINGLE_AZ_2 deployment types, this is the DNS name of the file system.

            This endpoint is temporarily unavailable when the file system is undergoing maintenance.

          • PreferredSubnetId — (String)

            For MULTI_AZ_1 deployment types, it specifies the ID of the subnet where the preferred file server is located. Must be one of the two subnet IDs specified in SubnetIds property. Amazon FSx serves traffic from this subnet except in the event of a failover to the secondary file server.

            For SINGLE_AZ_1 and SINGLE_AZ_2 deployment types, this value is the same as that for SubnetIDs. For more information, see Availability and Durability: Single-AZ and Multi-AZ File Systems

          • PreferredFileServerIp — (String)

            For MULTI_AZ_1 deployment types, the IP address of the primary, or preferred, file server.

            Use this IP address when mounting the file system on Linux SMB clients or Windows SMB clients that are not joined to a Microsoft Active Directory. Applicable for all Windows file system deployment types. This IP address is temporarily unavailable when the file system is undergoing maintenance. For Linux and Windows SMB clients that are joined to an Active Directory, use the file system's DNSName instead. For more information on mapping and mounting file shares, see Accessing File Shares.

          • ThroughputCapacity — (Integer)

            The throughput of an Amazon FSx file system, measured in megabytes per second.

          • MaintenanceOperationsInProgress — (Array<String>)

            The list of maintenance operations in progress for this file system.

          • WeeklyMaintenanceStartTime — (String)

            The preferred time to perform weekly maintenance, in the UTC time zone.

          • DailyAutomaticBackupStartTime — (String)

            The preferred time to take daily automatic backups, in the UTC time zone.

          • AutomaticBackupRetentionDays — (Integer)

            The number of days to retain automatic backups. Setting this to 0 disables automatic backups. You can retain automatic backups for a maximum of 35 days.

          • CopyTagsToBackups — (Boolean)

            A boolean flag indicating whether tags on the file system should be copied to backups. This value defaults to false. If it's set to true, all tags on the file system are copied to all automatic backups and any user-initiated backups where the user doesn't specify any tags. If this value is true, and you specify one or more tags, only the specified tags are copied to backups. If you specify one or more tags when creating a user-initiated backup, no tags are copied from the file system, regardless of this value.

        • LustreConfiguration — (map)

          The configuration for the Amazon FSx for Lustre file system.

          • WeeklyMaintenanceStartTime — (String)

            The UTC time that you want to begin your weekly maintenance window.

          • DataRepositoryConfiguration — (map)

            The data repository configuration object for Lustre file systems returned in the response of the CreateFileSystem operation.

            • ImportPath — (String)

              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.

            • ExportPath — (String)

              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.

            • ImportedFileChunkSize — (Integer)

              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.

          • DeploymentType — (String)

            The deployment type of the FSX for Lustre file system.

            Possible values include:
            • "SCRATCH_1"
            • "SCRATCH_2"
            • "PERSISTENT_1"
          • PerUnitStorageThroughput — (Integer)

            Per unit storage throughput represents the megabytes per second of read or write throughput per 1 tebibyte of storage provisioned. File system throughput capacity is equal to Storage capacity (TiB) * PerUnitStorageThroughput (MB/s/TiB). This option is only valid for PERSISTENT_1 deployment types. Valid values are 50, 100, 200.

          • MountName — (String)

            You use the MountName value when mounting the file system.

            For the SCRATCH_1 deployment type, this value is always "fsx". For SCRATCH_2 and PERSISTENT_1 deployment types, this value is a string that is unique within an AWS Region.

      • NextToken — (String)

        Present if there are more file systems than returned in the response (String). You can use the NextToken value in the later request to fetch the descriptions.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listTagsForResource(params = {}, callback) ⇒ AWS.Request

Lists tags for an Amazon FSx file systems and backups in the case of Amazon FSx for Windows File Server.

When retrieving all tags, you can optionally specify the MaxResults parameter to limit the number of tags in a response. If more tags remain, Amazon FSx returns a NextToken value in the response. In this case, send a later request with the NextToken request parameter set to the value of NextToken from the last response.

This action is used in an iterative process to retrieve a list of your tags. ListTagsForResource is called first without a NextTokenvalue. Then the action continues to be called with the NextToken parameter set to the value of the last NextToken value until a response has no NextToken.

When using this action, keep the following in mind:

  • The implementation might return fewer than MaxResults file system descriptions while still including a NextToken value.

  • The order of tags returned in the response of one ListTagsForResource call and the order of tags returned across the responses of a multi-call iteration is unspecified.

Service Reference:

Examples:

To list tags for a resource


/* This operation lists tags for an Amazon FSx resource. */

 var params = {
  ResourceARN: "arn:aws:fsx:us-east-1:012345678912:file-system/fs-0498eed5fe91001ec"
 };
 fsx.listTagsForResource(params, function(err, data) {
   if (err) console.log(err, err.stack); // an error occurred
   else     console.log(data);           // successful response
   /*
   data = {
    Tags: [
       {
      Key: "Name", 
      Value: "MyFileSystem"
     }
    ]
   }
   */
 });

Calling the listTagsForResource operation

var params = {
  ResourceARN: 'STRING_VALUE', /* required */
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
fsx.listTagsForResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ResourceARN — (String)

      The ARN of the Amazon FSx resource that will have its tags listed.

    • MaxResults — (Integer)

      (Optional) Maximum number of tags to return in the response (integer). This parameter value must be greater than 0. The number of items that Amazon FSx returns is the minimum of the MaxResults parameter specified in the request and the service's internal maximum number of items per page.

    • NextToken — (String)

      (Optional) Opaque pagination token returned from a previous ListTagsForResource operation (String). If a token present, the action continues the list from where the returning call left off.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Tags — (Array<map>)

        A list of tags on the resource.

        • Key — (String)

          A value that specifies the TagKey, the name of the tag. Tag keys must be unique for the resource to which they are attached.

        • Value — (String)

          A value that specifies the TagValue, the value assigned to the corresponding tag key. Tag values can be null and don't have to be unique in a tag set. For example, you can have a key-value pair in a tag set of finances : April and also of payroll : April.

      • NextToken — (String)

        This is present if there are more tags than returned in the response (String). You can use the NextToken value in the later request to fetch the tags.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

tagResource(params = {}, callback) ⇒ AWS.Request

Tags an Amazon FSx resource.

Service Reference:

Examples:

To tag a resource


/* This operation tags an Amazon FSx resource. */

 var params = {
  ResourceARN: "arn:aws:fsx:us-east-1:012345678912:file-system/fs-0498eed5fe91001ec", 
  Tags: [
     {
    Key: "Name", 
    Value: "MyFileSystem"
   }
  ]
 };
 fsx.tagResource(params, function(err, data) {
   if (err) console.log(err, err.stack); // an error occurred
   else     console.log(data);           // successful response
   /*
   data = {
   }
   */
 });

Calling the tagResource operation

var params = {
  ResourceARN: 'STRING_VALUE', /* required */
  Tags: [ /* required */
    {
      Key: 'STRING_VALUE',
      Value: 'STRING_VALUE'
    },
    /* more items */
  ]
};
fsx.tagResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ResourceARN — (String)

      The Amazon Resource Name (ARN) of the Amazon FSx resource that you want to tag.

    • Tags — (Array<map>)

      A list of tags for the resource. If a tag with a given key already exists, the value is replaced by the one specified in this parameter.

      • Key — (String)

        A value that specifies the TagKey, the name of the tag. Tag keys must be unique for the resource to which they are attached.

      • Value — (String)

        A value that specifies the TagValue, the value assigned to the corresponding tag key. Tag values can be null and don't have to be unique in a tag set. For example, you can have a key-value pair in a tag set of finances : April and also of payroll : April.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

untagResource(params = {}, callback) ⇒ AWS.Request

This action removes a tag from an Amazon FSx resource.

Service Reference:

Examples:

To untag a resource


/* This operation untags an Amazon FSx resource. */

 var params = {
  ResourceARN: "arn:aws:fsx:us-east-1:012345678912:file-system/fs-0498eed5fe91001ec", 
  TagKeys: [
     "Name"
  ]
 };
 fsx.untagResource(params, function(err, data) {
   if (err) console.log(err, err.stack); // an error occurred
   else     console.log(data);           // successful response
   /*
   data = {
   }
   */
 });

Calling the untagResource operation

var params = {
  ResourceARN: 'STRING_VALUE', /* required */
  TagKeys: [ /* required */
    'STRING_VALUE',
    /* more items */
  ]
};
fsx.untagResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ResourceARN — (String)

      The ARN of the Amazon FSx resource to untag.

    • TagKeys — (Array<String>)

      A list of keys of tags on the resource to untag. In case the tag key doesn't exist, the call will still succeed to be idempotent.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateFileSystem(params = {}, callback) ⇒ AWS.Request

Updates a file system configuration.

Service Reference:

Examples:

To update an existing file system


/* This operation updates an existing file system. */

 var params = {
  FileSystemId: "fs-0498eed5fe91001ec", 
  WindowsConfiguration: {
   AutomaticBackupRetentionDays: 10, 
   DailyAutomaticBackupStartTime: "06:00", 
   WeeklyMaintenanceStartTime: "3:06:00"
  }
 };
 fsx.updateFileSystem(params, function(err, data) {
   if (err) console.log(err, err.stack); // an error occurred
   else     console.log(data);           // successful response
   /*
   data = {
    FileSystem: {
     CreationTime: <Date Representation>, 
     DNSName: "fs-0498eed5fe91001ec.fsx.com", 
     FileSystemId: "fs-0498eed5fe91001ec", 
     KmsKeyId: "arn:aws:kms:us-east-1:012345678912:key/0ff3ea8d-130e-4133-877f-93908b6fdbd6", 
     Lifecycle: "AVAILABLE", 
     OwnerId: "012345678912", 
     ResourceARN: "arn:aws:fsx:us-east-1:012345678912:file-system/fs-0498eed5fe91001ec", 
     StorageCapacity: 300, 
     SubnetIds: [
        "subnet-1234abcd"
     ], 
     Tags: [
        {
       Key: "Name", 
       Value: "MyFileSystem"
      }
     ], 
     VpcId: "vpc-ab1234cd", 
     WindowsConfiguration: {
      AutomaticBackupRetentionDays: 10, 
      DailyAutomaticBackupStartTime: "06:00", 
      ThroughputCapacity: 8, 
      WeeklyMaintenanceStartTime: "3:06:00"
     }
    }
   }
   */
 });

Calling the updateFileSystem operation

var params = {
  FileSystemId: 'STRING_VALUE', /* required */
  ClientRequestToken: 'STRING_VALUE',
  LustreConfiguration: {
    WeeklyMaintenanceStartTime: 'STRING_VALUE'
  },
  WindowsConfiguration: {
    AutomaticBackupRetentionDays: 'NUMBER_VALUE',
    DailyAutomaticBackupStartTime: 'STRING_VALUE',
    SelfManagedActiveDirectoryConfiguration: {
      DnsIps: [
        'STRING_VALUE',
        /* more items */
      ],
      Password: 'STRING_VALUE',
      UserName: 'STRING_VALUE'
    },
    WeeklyMaintenanceStartTime: 'STRING_VALUE'
  }
};
fsx.updateFileSystem(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • FileSystemId — (String)

      The globally unique ID of the file system, assigned by Amazon FSx.

    • ClientRequestToken — (String)

      (Optional) A string of up to 64 ASCII characters that Amazon FSx uses to ensure idempotent updates. This string is automatically filled on your behalf when you use the AWS Command Line Interface (AWS CLI) or an AWS SDK.

      If a token is not provided, the SDK will use a version 4 UUID.
    • WindowsConfiguration — (map)

      The configuration update for this Microsoft Windows file system. The only supported options are for backup and maintenance and for self-managed Active Directory configuration.

      • WeeklyMaintenanceStartTime — (String)

        The preferred time to perform weekly maintenance, in the UTC time zone.

      • DailyAutomaticBackupStartTime — (String)

        The preferred time to take daily automatic backups, in the UTC time zone.

      • AutomaticBackupRetentionDays — (Integer)

        The number of days to retain automatic backups. Setting this to 0 disables automatic backups. You can retain automatic backups for a maximum of 35 days.

      • SelfManagedActiveDirectoryConfiguration — (map)

        The configuration Amazon FSx uses to join the Windows File Server instance to the self-managed Microsoft AD directory.

        • UserName — (String)

          The user name for the service account on your self-managed AD domain that Amazon FSx will use to join to your AD domain. This account must have the permission to join computers to the domain in the organizational unit provided in OrganizationalUnitDistinguishedName.

        • Password — (String)

          The password for the service account on your self-managed AD domain that Amazon FSx will use to join to your AD domain.

        • DnsIps — (Array<String>)

          A list of up to two IP addresses of DNS servers or domain controllers in the self-managed AD directory.

    • LustreConfiguration — (map)

      The configuration object for Amazon FSx for Lustre file systems used in the UpdateFileSystem operation.

      • WeeklyMaintenanceStartTime — (String)

        The preferred time to perform weekly maintenance, in the UTC time zone.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • FileSystem — (map)

        A description of the file system that was updated.

        • OwnerId — (String)

          The AWS account that created the file system. If the file system was created by an AWS Identity and Access Management (IAM) user, the AWS account to which the IAM user belongs is the owner.

        • CreationTime — (Date)

          The time that the file system was created, in seconds (since 1970-01-01T00:00:00Z), also known as Unix time.

        • FileSystemId — (String)

          The system-generated, unique 17-digit ID of the file system.

        • FileSystemType — (String)

          The type of Amazon FSx file system, either LUSTRE or WINDOWS.

          Possible values include:
          • "WINDOWS"
          • "LUSTRE"
        • Lifecycle — (String)

          The lifecycle status of the file system, following are the possible values and what they mean:

          • AVAILABLE - The file system is in a healthy state, and is reachable and available for use.

          • CREATING - Amazon FSx is creating the new file system.

          • DELETING - Amazon FSx is deleting an existing file system.

          • FAILED - An existing file system has experienced an unrecoverable failure. When creating a new file system, Amazon FSx was unable to create the file system.

          • MISCONFIGURED indicates that the file system is in a failed but recoverable state.

          • UPDATING indicates that the file system is undergoing a customer initiated update.

          Possible values include:
          • "AVAILABLE"
          • "CREATING"
          • "FAILED"
          • "DELETING"
          • "MISCONFIGURED"
          • "UPDATING"
        • FailureDetails — (map)

          A structure providing details of any failures that occur when creating the file system has failed.

          • Message — (String)

            A message describing any failures that occurred during file system creation.

        • StorageCapacity — (Integer)

          The storage capacity of the file system in gigabytes (GB).

        • StorageType — (String)

          The storage type of the file system. Valid values are SSD and HDD. If set to SSD, the file system uses solid state drive storage. If set to HDD, the file system uses hard disk drive storage.

          Possible values include:
          • "SSD"
          • "HDD"
        • VpcId — (String)

          The ID of the primary VPC for the file system.

        • SubnetIds — (Array<String>)

          Specifies the IDs of the subnets that the file system is accessible from. For Windows MULTI_AZ_1 file system deployment type, there are two subnet IDs, one for the preferred file server and one for the standby file server. The preferred file server subnet identified in the PreferredSubnetID property. All other file systems have only one subnet ID.

          For Lustre file systems, and Single-AZ Windows file systems, this is the ID of the subnet that contains the endpoint for the file system. For MULTI_AZ_1 Windows file systems, the endpoint for the file system is available in the PreferredSubnetID.

        • NetworkInterfaceIds — (Array<String>)

          The IDs of the elastic network interface from which a specific file system is accessible. The elastic network interface is automatically created in the same VPC that the Amazon FSx file system was created in. For more information, see Elastic Network Interfaces in the Amazon EC2 User Guide.

          For an Amazon FSx for Windows File Server file system, you can have one network interface ID. For an Amazon FSx for Lustre file system, you can have more than one.

        • DNSName — (String)

          The DNS name for the file system.

        • KmsKeyId — (String)

          The ID of the AWS Key Management Service (AWS KMS) key used to encrypt the file system's data for Amazon FSx for Windows File Server file systems and persistent Amazon FSx for Lustre file systems at rest. In either case, if not specified, the Amazon FSx managed key is used. The scratch Amazon FSx for Lustre file systems are always encrypted at rest using Amazon FSx managed keys. For more information, see Encrypt in the AWS Key Management Service API Reference.

        • ResourceARN — (String)

          The Amazon Resource Name (ARN) for the file system resource.

        • Tags — (Array<map>)

          The tags to associate with the file system. For more information, see Tagging Your Amazon EC2 Resources in the Amazon EC2 User Guide.

          • Key — (String)

            A value that specifies the TagKey, the name of the tag. Tag keys must be unique for the resource to which they are attached.

          • Value — (String)

            A value that specifies the TagValue, the value assigned to the corresponding tag key. Tag values can be null and don't have to be unique in a tag set. For example, you can have a key-value pair in a tag set of finances : April and also of payroll : April.

        • WindowsConfiguration — (map)

          The configuration for this Microsoft Windows file system.

          • ActiveDirectoryId — (String)

            The ID for an existing Microsoft Active Directory instance that the file system should join when it's created.

          • SelfManagedActiveDirectoryConfiguration — (map)

            The configuration of the self-managed Microsoft Active Directory (AD) directory to which the Windows File Server instance is joined.

            • DomainName — (String)

              The fully qualified domain name of the self-managed AD directory.

            • OrganizationalUnitDistinguishedName — (String)

              The fully qualified distinguished name of the organizational unit within the self-managed AD directory to which the Windows File Server instance is joined.

            • FileSystemAdministratorsGroup — (String)

              The name of the domain group whose members have administrative privileges for the FSx file system.

            • UserName — (String)

              The user name for the service account on your self-managed AD domain that FSx uses to join to your AD domain.

            • DnsIps — (Array<String>)

              A list of up to two IP addresses of DNS servers or domain controllers in the self-managed AD directory.

          • DeploymentType — (String)

            Specifies the file system deployment type, valid values are the following:

            • MULTI_AZ_1 - Specifies a high availability file system that is configured for Multi-AZ redundancy to tolerate temporary Availability Zone (AZ) unavailability, and supports SSD and HDD storage.

            • SINGLE_AZ_1 - (Default) Specifies a file system that is configured for single AZ redundancy, only supports SSD storage.

            • SINGLE_AZ_2 - Latest generation Single AZ file system. Specifies a file system that is configured for single AZ redundancy and supports SSD and HDD storage.

            For more information, see Single-AZ and Multi-AZ File Systems.

            Possible values include:
            • "MULTI_AZ_1"
            • "SINGLE_AZ_1"
            • "SINGLE_AZ_2"
          • RemoteAdministrationEndpoint — (String)

            For MULTI_AZ_1 deployment types, use this endpoint when performing administrative tasks on the file system using Amazon FSx Remote PowerShell.

            For SINGLE_AZ_1 and SINGLE_AZ_2 deployment types, this is the DNS name of the file system.

            This endpoint is temporarily unavailable when the file system is undergoing maintenance.

          • PreferredSubnetId — (String)

            For MULTI_AZ_1 deployment types, it specifies the ID of the subnet where the preferred file server is located. Must be one of the two subnet IDs specified in SubnetIds property. Amazon FSx serves traffic from this subnet except in the event of a failover to the secondary file server.

            For SINGLE_AZ_1 and SINGLE_AZ_2 deployment types, this value is the same as that for SubnetIDs. For more information, see Availability and Durability: Single-AZ and Multi-AZ File Systems

          • PreferredFileServerIp — (String)

            For MULTI_AZ_1 deployment types, the IP address of the primary, or preferred, file server.

            Use this IP address when mounting the file system on Linux SMB clients or Windows SMB clients that are not joined to a Microsoft Active Directory. Applicable for all Windows file system deployment types. This IP address is temporarily unavailable when the file system is undergoing maintenance. For Linux and Windows SMB clients that are joined to an Active Directory, use the file system's DNSName instead. For more information on mapping and mounting file shares, see Accessing File Shares.

          • ThroughputCapacity — (Integer)

            The throughput of an Amazon FSx file system, measured in megabytes per second.

          • MaintenanceOperationsInProgress — (Array<String>)

            The list of maintenance operations in progress for this file system.

          • WeeklyMaintenanceStartTime — (String)

            The preferred time to perform weekly maintenance, in the UTC time zone.

          • DailyAutomaticBackupStartTime — (String)

            The preferred time to take daily automatic backups, in the UTC time zone.

          • AutomaticBackupRetentionDays — (Integer)

            The number of days to retain automatic backups. Setting this to 0 disables automatic backups. You can retain automatic backups for a maximum of 35 days.

          • CopyTagsToBackups — (Boolean)

            A boolean flag indicating whether tags on the file system should be copied to backups. This value defaults to false. If it's set to true, all tags on the file system are copied to all automatic backups and any user-initiated backups where the user doesn't specify any tags. If this value is true, and you specify one or more tags, only the specified tags are copied to backups. If you specify one or more tags when creating a user-initiated backup, no tags are copied from the file system, regardless of this value.

        • LustreConfiguration — (map)

          The configuration for the Amazon FSx for Lustre file system.

          • WeeklyMaintenanceStartTime — (String)

            The UTC time that you want to begin your weekly maintenance window.

          • DataRepositoryConfiguration — (map)

            The data repository configuration object for Lustre file systems returned in the response of the CreateFileSystem operation.

            • ImportPath — (String)

              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.

            • ExportPath — (String)

              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.

            • ImportedFileChunkSize — (Integer)

              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.

          • DeploymentType — (String)

            The deployment type of the FSX for Lustre file system.

            Possible values include:
            • "SCRATCH_1"
            • "SCRATCH_2"
            • "PERSISTENT_1"
          • PerUnitStorageThroughput — (Integer)

            Per unit storage throughput represents the megabytes per second of read or write throughput per 1 tebibyte of storage provisioned. File system throughput capacity is equal to Storage capacity (TiB) * PerUnitStorageThroughput (MB/s/TiB). This option is only valid for PERSISTENT_1 deployment types. Valid values are 50, 100, 200.

          • MountName — (String)

            You use the MountName value when mounting the file system.

            For the SCRATCH_1 deployment type, this value is always "fsx". For SCRATCH_2 and PERSISTENT_1 deployment types, this value is a string that is unique within an AWS Region.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.