EfsVolumeConfiguration

class aws_cdk.aws_ecs.EfsVolumeConfiguration(*, file_system_id, authorization_config=None, root_directory=None, transit_encryption=None, transit_encryption_port=None)

Bases: object

The configuration for an Elastic FileSystem volume.

Parameters
  • file_system_id (str) – The Amazon EFS file system ID to use.

  • authorization_config (Optional[AuthorizationConfig]) – The authorization configuration details for the Amazon EFS file system. Default: No configuration.

  • root_directory (Optional[str]) – The directory within the Amazon EFS file system to mount as the root directory inside the host. Specifying / will have the same effect as omitting this parameter. Default: The root of the Amazon EFS volume

  • transit_encryption (Optional[str]) – Whether or not to enable encryption for Amazon EFS data in transit between the Amazon ECS host and the Amazon EFS server. Transit encryption must be enabled if Amazon EFS IAM authorization is used. Valid values: ENABLED | DISABLED Default: DISABLED

  • transit_encryption_port (Union[int, float, None]) – The port to use when sending encrypted data between the Amazon ECS host and the Amazon EFS server. EFS mount helper uses. Default: Port selection strategy that the Amazon EFS mount helper uses.

Attributes

authorization_config

The authorization configuration details for the Amazon EFS file system.

Default

No configuration.

Return type

Optional[AuthorizationConfig]

file_system_id

The Amazon EFS file system ID to use.

Return type

str

root_directory

The directory within the Amazon EFS file system to mount as the root directory inside the host.

Specifying / will have the same effect as omitting this parameter.

Default

The root of the Amazon EFS volume

Return type

Optional[str]

transit_encryption

Whether or not to enable encryption for Amazon EFS data in transit between the Amazon ECS host and the Amazon EFS server.

Transit encryption must be enabled if Amazon EFS IAM authorization is used.

Valid values: ENABLED | DISABLED

Default

DISABLED

Return type

Optional[str]

transit_encryption_port

The port to use when sending encrypted data between the Amazon ECS host and the Amazon EFS server.

EFS mount helper uses.

Default

Port selection strategy that the Amazon EFS mount helper uses.

Return type

Union[int, float, None]