CfnFileCacheProps

class aws_cdk.aws_fsx.CfnFileCacheProps(*, file_cache_type, file_cache_type_version, storage_capacity, subnet_ids, copy_tags_to_data_repository_associations=None, data_repository_associations=None, kms_key_id=None, lustre_configuration=None, security_group_ids=None, tags=None)

Bases: object

Properties for defining a CfnFileCache.

Parameters:
  • file_cache_type (str) – The type of cache, which must be LUSTRE.

  • file_cache_type_version (str) – The Lustre version of the cache, which must be 2.12.

  • storage_capacity (Union[int, float]) – The storage capacity of the cache in gibibytes (GiB).

  • subnet_ids (Sequence[str]) – A list of subnet IDs for the cache.

  • copy_tags_to_data_repository_associations (Union[bool, IResolvable, None]) – Whether tags should be copied to data repository associations.

  • data_repository_associations (Union[IResolvable, Sequence[Union[IResolvable, DataRepositoryAssociationProperty, Dict[str, Any]]], None]) – Data repository associations for the cache.

  • kms_key_id (Optional[str]) – The KMS key ID for encrypting data.

  • lustre_configuration (Union[IResolvable, LustreConfigurationProperty, Dict[str, Any], None])

  • security_group_ids (Optional[Sequence[str]]) – A list of security group IDs for the cache.

  • tags (Optional[Sequence[Union[CfnTag, Dict[str, Any]]]]) – Tags to associate with the file cache.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-fsx-filecache.html

ExampleMetadata:

fixture=_generated

Example:

from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_fsx as fsx

cfn_file_cache_props = fsx.CfnFileCacheProps(
    file_cache_type="fileCacheType",
    file_cache_type_version="fileCacheTypeVersion",
    storage_capacity=123,
    subnet_ids=["subnetIds"],

    # the properties below are optional
    copy_tags_to_data_repository_associations=False,
    data_repository_associations=[fsx.CfnFileCache.DataRepositoryAssociationProperty(
        data_repository_path="dataRepositoryPath",
        file_cache_path="fileCachePath"
    )],
    kms_key_id="kmsKeyId",
    lustre_configuration=fsx.CfnFileCache.LustreConfigurationProperty(
        deployment_type="deploymentType",
        metadata_configuration=fsx.CfnFileCache.MetadataConfigurationProperty(
            storage_capacity=123
        ),
        per_unit_storage_throughput=123,

        # the properties below are optional
        log_configuration=fsx.CfnFileCache.LogConfigurationProperty(
            level="level",

            # the properties below are optional
            destination="destination"
        ),
        mount_name="mountName",
        weekly_maintenance_start_time="weeklyMaintenanceStartTime"
    ),
    security_group_ids=["securityGroupIds"],
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)

Attributes

copy_tags_to_data_repository_associations

Whether tags should be copied to data repository associations.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-fsx-filecache.html#cfn-fsx-filecache-copytagstodatarepositoryassociations

data_repository_associations

Data repository associations for the cache.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-fsx-filecache.html#cfn-fsx-filecache-datarepositoryassociations

file_cache_type

The type of cache, which must be LUSTRE.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-fsx-filecache.html#cfn-fsx-filecache-filecachetype

file_cache_type_version

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

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-fsx-filecache.html#cfn-fsx-filecache-filecachetypeversion

kms_key_id

The KMS key ID for encrypting data.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-fsx-filecache.html#cfn-fsx-filecache-kmskeyid

lustre_configuration

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-fsx-filecache.html#cfn-fsx-filecache-lustreconfiguration

Type:

see

security_group_ids

A list of security group IDs for the cache.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-fsx-filecache.html#cfn-fsx-filecache-securitygroupids

storage_capacity

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

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-fsx-filecache.html#cfn-fsx-filecache-storagecapacity

subnet_ids

A list of subnet IDs for the cache.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-fsx-filecache.html#cfn-fsx-filecache-subnetids

tags

Tags to associate with the file cache.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-fsx-filecache.html#cfn-fsx-filecache-tags