Class FileSystemArgs.Builder

  • Enclosing class:
    FileSystemArgs

    public static final class FileSystemArgs.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • availabilityZoneName

        public FileSystemArgs.Builder availabilityZoneName​(@Nullable
                                                           com.pulumi.core.Output<java.lang.String> availabilityZoneName)
        Parameters:
        availabilityZoneName - the AWS Availability Zone in which to create the file system. Used to create a file system that uses One Zone storage classes. See [user guide](https://docs.aws.amazon.com/efs/latest/ug/availability-durability.html) for more information.
        Returns:
        builder
      • availabilityZoneName

        public FileSystemArgs.Builder availabilityZoneName​(java.lang.String availabilityZoneName)
        Parameters:
        availabilityZoneName - the AWS Availability Zone in which to create the file system. Used to create a file system that uses One Zone storage classes. See [user guide](https://docs.aws.amazon.com/efs/latest/ug/availability-durability.html) for more information.
        Returns:
        builder
      • creationToken

        public FileSystemArgs.Builder creationToken​(@Nullable
                                                    com.pulumi.core.Output<java.lang.String> creationToken)
        Parameters:
        creationToken - A unique name (a maximum of 64 characters are allowed) used as reference when creating the Elastic File System to ensure idempotent file system creation. By default generated by this provider. See [Elastic File System] user guide for more information.
        Returns:
        builder
      • creationToken

        public FileSystemArgs.Builder creationToken​(java.lang.String creationToken)
        Parameters:
        creationToken - A unique name (a maximum of 64 characters are allowed) used as reference when creating the Elastic File System to ensure idempotent file system creation. By default generated by this provider. See [Elastic File System] user guide for more information.
        Returns:
        builder
      • encrypted

        public FileSystemArgs.Builder encrypted​(@Nullable
                                                com.pulumi.core.Output<java.lang.Boolean> encrypted)
        Parameters:
        encrypted - If true, the disk will be encrypted.
        Returns:
        builder
      • encrypted

        public FileSystemArgs.Builder encrypted​(java.lang.Boolean encrypted)
        Parameters:
        encrypted - If true, the disk will be encrypted.
        Returns:
        builder
      • kmsKeyId

        public FileSystemArgs.Builder kmsKeyId​(@Nullable
                                               com.pulumi.core.Output<java.lang.String> kmsKeyId)
        Parameters:
        kmsKeyId - The ARN for the KMS encryption key. When specifying kms_key_id, encrypted needs to be set to true.
        Returns:
        builder
      • kmsKeyId

        public FileSystemArgs.Builder kmsKeyId​(java.lang.String kmsKeyId)
        Parameters:
        kmsKeyId - The ARN for the KMS encryption key. When specifying kms_key_id, encrypted needs to be set to true.
        Returns:
        builder
      • lifecyclePolicies

        public FileSystemArgs.Builder lifecyclePolicies​(@Nullable
                                                        com.pulumi.core.Output<java.util.List<FileSystemLifecyclePolicyArgs>> lifecyclePolicies)
        Parameters:
        lifecyclePolicies - A file system [lifecycle policy](https://docs.aws.amazon.com/efs/latest/ug/API_LifecyclePolicy.html) object. See `lifecyclePolicy` block below for details.
        Returns:
        builder
      • lifecyclePolicies

        public FileSystemArgs.Builder lifecyclePolicies​(java.util.List<FileSystemLifecyclePolicyArgs> lifecyclePolicies)
        Parameters:
        lifecyclePolicies - A file system [lifecycle policy](https://docs.aws.amazon.com/efs/latest/ug/API_LifecyclePolicy.html) object. See `lifecyclePolicy` block below for details.
        Returns:
        builder
      • lifecyclePolicies

        public FileSystemArgs.Builder lifecyclePolicies​(FileSystemLifecyclePolicyArgs... lifecyclePolicies)
        Parameters:
        lifecyclePolicies - A file system [lifecycle policy](https://docs.aws.amazon.com/efs/latest/ug/API_LifecyclePolicy.html) object. See `lifecyclePolicy` block below for details.
        Returns:
        builder
      • performanceMode

        public FileSystemArgs.Builder performanceMode​(@Nullable
                                                      com.pulumi.core.Output<java.lang.String> performanceMode)
        Parameters:
        performanceMode - The file system performance mode. Can be either `"generalPurpose"` or `"maxIO"` (Default: `"generalPurpose"`).
        Returns:
        builder
      • performanceMode

        public FileSystemArgs.Builder performanceMode​(java.lang.String performanceMode)
        Parameters:
        performanceMode - The file system performance mode. Can be either `"generalPurpose"` or `"maxIO"` (Default: `"generalPurpose"`).
        Returns:
        builder
      • protection

        public FileSystemArgs.Builder protection​(@Nullable
                                                 com.pulumi.core.Output<FileSystemProtectionArgs> protection)
        Parameters:
        protection - A file system [protection](https://docs.aws.amazon.com/efs/latest/ug/API_FileSystemProtectionDescription.html) object. See `protection` block below for details.
        Returns:
        builder
      • protection

        public FileSystemArgs.Builder protection​(FileSystemProtectionArgs protection)
        Parameters:
        protection - A file system [protection](https://docs.aws.amazon.com/efs/latest/ug/API_FileSystemProtectionDescription.html) object. See `protection` block below for details.
        Returns:
        builder
      • provisionedThroughputInMibps

        public FileSystemArgs.Builder provisionedThroughputInMibps​(@Nullable
                                                                   com.pulumi.core.Output<java.lang.Double> provisionedThroughputInMibps)
        Parameters:
        provisionedThroughputInMibps - The throughput, measured in MiB/s, that you want to provision for the file system. Only applicable with `throughputMode` set to `provisioned`.
        Returns:
        builder
      • provisionedThroughputInMibps

        public FileSystemArgs.Builder provisionedThroughputInMibps​(java.lang.Double provisionedThroughputInMibps)
        Parameters:
        provisionedThroughputInMibps - The throughput, measured in MiB/s, that you want to provision for the file system. Only applicable with `throughputMode` set to `provisioned`.
        Returns:
        builder
      • region

        public FileSystemArgs.Builder region​(@Nullable
                                             com.pulumi.core.Output<java.lang.String> region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder
      • region

        public FileSystemArgs.Builder region​(java.lang.String region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder
      • tags

        public FileSystemArgs.Builder tags​(@Nullable
                                           com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tags)
        Parameters:
        tags - A map of tags to assign to the file system. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
        Returns:
        builder
      • tags

        public FileSystemArgs.Builder tags​(java.util.Map<java.lang.String,​java.lang.String> tags)
        Parameters:
        tags - A map of tags to assign to the file system. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
        Returns:
        builder
      • throughputMode

        public FileSystemArgs.Builder throughputMode​(@Nullable
                                                     com.pulumi.core.Output<java.lang.String> throughputMode)
        Parameters:
        throughputMode - Throughput mode for the file system. Defaults to `bursting`, matching the [`CreateFileSystem`](https://docs.aws.amazon.com/efs/latest/ug/API_CreateFileSystem.html) API default. Note that AWS [recommends `elastic` for most use cases](https://docs.aws.amazon.com/efs/latest/ug/managing-throughput.html), and `elastic` is the default in the Amazon EFS console. Valid values: `bursting`, `provisioned`, or `elastic`. When using `provisioned`, also set `provisionedThroughputInMibps`.
        Returns:
        builder
      • throughputMode

        public FileSystemArgs.Builder throughputMode​(java.lang.String throughputMode)
        Parameters:
        throughputMode - Throughput mode for the file system. Defaults to `bursting`, matching the [`CreateFileSystem`](https://docs.aws.amazon.com/efs/latest/ug/API_CreateFileSystem.html) API default. Note that AWS [recommends `elastic` for most use cases](https://docs.aws.amazon.com/efs/latest/ug/managing-throughput.html), and `elastic` is the default in the Amazon EFS console. Valid values: `bursting`, `provisioned`, or `elastic`. When using `provisioned`, also set `provisionedThroughputInMibps`.
        Returns:
        builder