FSx / Client / describe_file_caches

describe_file_caches#

FSx.Client.describe_file_caches(**kwargs)#

Returns the description of a specific Amazon File Cache resource, if a FileCacheIds value is provided for that cache. Otherwise, it returns descriptions of all caches owned by your Amazon Web Services account in the Amazon Web Services Region of the endpoint that you’re calling.

When retrieving all cache descriptions, you can optionally specify the MaxResults parameter to limit the number of descriptions in a response. If more cache descriptions remain, the operation 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 operation is used in an iterative process to retrieve a list of your cache descriptions. DescribeFileCaches is called first without a NextToken``value. Then the operation 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 operation, keep the following in mind:

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

  • The order of caches returned in the response of one DescribeFileCaches call and the order of caches returned across the responses of a multicall iteration is unspecified.

See also: AWS API Documentation

Request Syntax

response = client.describe_file_caches(
    FileCacheIds=[
        'string',
    ],
    MaxResults=123,
    NextToken='string'
)
Parameters:
  • FileCacheIds (list) –

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

    • (string) –

  • 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.

Return type:

dict

Returns:

Response Syntax

{
    'FileCaches': [
        {
            'OwnerId': 'string',
            'CreationTime': datetime(2015, 1, 1),
            'FileCacheId': 'string',
            'FileCacheType': 'LUSTRE',
            'FileCacheTypeVersion': 'string',
            'Lifecycle': 'AVAILABLE'|'CREATING'|'DELETING'|'UPDATING'|'FAILED',
            'FailureDetails': {
                'Message': 'string'
            },
            'StorageCapacity': 123,
            'VpcId': 'string',
            'SubnetIds': [
                'string',
            ],
            'NetworkInterfaceIds': [
                'string',
            ],
            'DNSName': 'string',
            'KmsKeyId': 'string',
            'ResourceARN': 'string',
            'LustreConfiguration': {
                'PerUnitStorageThroughput': 123,
                'DeploymentType': 'CACHE_1',
                'MountName': 'string',
                'WeeklyMaintenanceStartTime': 'string',
                'MetadataConfiguration': {
                    'StorageCapacity': 123
                },
                'LogConfiguration': {
                    'Level': 'DISABLED'|'WARN_ONLY'|'ERROR_ONLY'|'WARN_ERROR',
                    'Destination': 'string'
                }
            },
            'DataRepositoryAssociationIds': [
                'string',
            ]
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) –

    • FileCaches (list) –

      The response object for the DescribeFileCaches operation.

      • (dict) –

        A description of a specific Amazon File Cache resource, which is a response object from the DescribeFileCaches operation.

        • OwnerId (string) –

          An Amazon Web Services account ID. This ID is a 12-digit number that you use to construct Amazon Resource Names (ARNs) for resources.

        • CreationTime (datetime) –

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

        • FileCacheId (string) –

          The system-generated, unique ID of the cache.

        • FileCacheType (string) –

          The type of cache, which must be LUSTRE.

        • FileCacheTypeVersion (string) –

          The Lustre version of the cache, which must be 2.12.

        • Lifecycle (string) –

          The lifecycle status of the cache. The following are the possible values and what they mean:

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

          • CREATING - The new cache is being created.

          • DELETING - An existing cache is being deleted.

          • UPDATING - The cache is undergoing a customer-initiated update.

          • FAILED - An existing cache has experienced an unrecoverable failure. When creating a new cache, the cache was unable to be created.

        • FailureDetails (dict) –

          A structure providing details of any failures that occurred.

          • Message (string) –

            A message describing any failures that occurred.

        • StorageCapacity (integer) –

          The storage capacity of the cache in gibibytes (GiB).

        • VpcId (string) –

          The ID of your virtual private cloud (VPC). For more information, see VPC and subnets in the Amazon VPC User Guide.

        • SubnetIds (list) –

          A list of subnet IDs that the cache will be accessible from. You can specify only one subnet ID in a call to the CreateFileCache operation.

          • (string) –

            The ID for a subnet. A subnet is a range of IP addresses in your virtual private cloud (VPC). For more information, see VPC and subnets in the Amazon VPC User Guide.

        • NetworkInterfaceIds (list) –

          A list of network interface IDs.

          • (string) –

            An elastic network interface ID. An elastic network interface is a logical networking component in a virtual private cloud (VPC) that represents a virtual network card. For more information, see Elastic Network Interfaces in the Amazon EC2 User Guide for Linux Instances.

        • DNSName (string) –

          The Domain Name System (DNS) name for the cache.

        • KmsKeyId (string) –

          Specifies the ID of the Key Management Service (KMS) key to use for encrypting data on an Amazon File Cache. If a KmsKeyId isn’t specified, the Amazon FSx-managed KMS key for your account is used. For more information, see Encrypt in the Key Management Service API Reference.

        • ResourceARN (string) –

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

        • LustreConfiguration (dict) –

          The configuration for the Amazon File Cache resource.

          • PerUnitStorageThroughput (integer) –

            Per unit storage throughput represents the megabytes per second of read or write throughput per 1 tebibyte of storage provisioned. Cache throughput capacity is equal to Storage capacity (TiB) * PerUnitStorageThroughput (MB/s/TiB). The only supported value is 1000.

          • DeploymentType (string) –

            The deployment type of the Amazon File Cache resource, which must be CACHE_1.

          • MountName (string) –

            You use the MountName value when mounting the cache. If you pass a cache ID to the DescribeFileCaches operation, it returns the the MountName value as part of the cache’s description.

          • WeeklyMaintenanceStartTime (string) –

            A recurring weekly time, in the format D:HH:MM.

            D is the day of the week, for which 1 represents Monday and 7 represents Sunday. For further details, see the ISO-8601 spec as described on Wikipedia.

            HH is the zero-padded hour of the day (0-23), and MM is the zero-padded minute of the hour.

            For example, 1:05:00 specifies maintenance at 5 AM Monday.

          • MetadataConfiguration (dict) –

            The configuration for a Lustre MDT (Metadata Target) storage volume.

            • StorageCapacity (integer) –

              The storage capacity of the Lustre MDT (Metadata Target) storage volume in gibibytes (GiB). The only supported value is 2400 GiB.

          • LogConfiguration (dict) –

            The configuration for Lustre logging used to write the enabled logging events for your Amazon File Cache resource to Amazon CloudWatch Logs.

            • Level (string) –

              The data repository events that are logged by Amazon FSx.

              • WARN_ONLY - only warning events are logged.

              • ERROR_ONLY - only error events are logged.

              • WARN_ERROR - both warning events and error events are logged.

              • DISABLED - logging of data repository events is turned off.

              Note that Amazon File Cache uses a default setting of WARN_ERROR, which can’t be changed.

            • Destination (string) –

              The Amazon Resource Name (ARN) that specifies the destination of the logs. The destination can be any Amazon CloudWatch Logs log group ARN. The destination ARN must be in the same Amazon Web Services partition, Amazon Web Services Region, and Amazon Web Services account as your Amazon FSx file system.

        • DataRepositoryAssociationIds (list) –

          A list of IDs of data repository associations that are associated with this cache.

          • (string) –

    • 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.

Exceptions