Enum FileSystemType
- All Implemented Interfaces:
Serializable
,Comparable<FileSystemType>
,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)",
date="2024-05-08T21:35:06.572Z")
@Stability(Stable)
public enum FileSystemType
extends Enum<FileSystemType>
FileSystemType for Service Managed EBS Volume Configuration.
Example:
Cluster cluster; FargateTaskDefinition taskDefinition = new FargateTaskDefinition(this, "TaskDef"); ContainerDefinition container = taskDefinition.addContainer("web", ContainerDefinitionOptions.builder() .image(ContainerImage.fromRegistry("amazon/amazon-ecs-sample")) .portMappings(List.of(PortMapping.builder() .containerPort(80) .protocol(Protocol.TCP) .build())) .build()); ServiceManagedVolume volume = ServiceManagedVolume.Builder.create(this, "EBSVolume") .name("ebs1") .managedEBSVolume(ServiceManagedEBSVolumeConfiguration.builder() .size(Size.gibibytes(15)) .volumeType(EbsDeviceVolumeType.GP3) .fileSystemType(FileSystemType.XFS) .tagSpecifications(List.of(EBSTagSpecification.builder() .tags(Map.of( "purpose", "production")) .propagateTags(EbsPropagatedTagSource.SERVICE) .build())) .build()) .build(); volume.mountIn(container, ContainerMountPoint.builder() .containerPath("/var/lib") .readOnly(false) .build()); taskDefinition.addVolume(volume); FargateService service = FargateService.Builder.create(this, "FargateService") .cluster(cluster) .taskDefinition(taskDefinition) .build(); service.addVolume(volume);
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic FileSystemType
Returns the enum constant of this type with the specified name.static FileSystemType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
EXT3
ext3 type. -
EXT4
ext4 type. -
XFS
xfs type.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-