Class UserState.Builder

  • Enclosing class:
    UserState

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

      • Builder

        public Builder()
      • Builder

        public Builder​(UserState defaults)
    • Method Detail

      • arn

        public UserState.Builder arn​(@Nullable
                                     com.pulumi.core.Output<java.lang.String> arn)
        Parameters:
        arn - ARN of Transfer User
        Returns:
        builder
      • arn

        public UserState.Builder arn​(java.lang.String arn)
        Parameters:
        arn - ARN of Transfer User
        Returns:
        builder
      • homeDirectory

        public UserState.Builder homeDirectory​(@Nullable
                                               com.pulumi.core.Output<java.lang.String> homeDirectory)
        Parameters:
        homeDirectory - Landing directory (folder) for a user when they log in to the server using their SFTP client. It should begin with a `/`. The first item in the path is the name of the home bucket (accessible as `${Transfer:HomeBucket}` in the policy) and the rest is the home directory (accessible as `${Transfer:HomeDirectory}` in the policy). For example, `/example-bucket-1234/username` would set the home bucket to `example-bucket-1234` and the home directory to `username`.
        Returns:
        builder
      • homeDirectory

        public UserState.Builder homeDirectory​(java.lang.String homeDirectory)
        Parameters:
        homeDirectory - Landing directory (folder) for a user when they log in to the server using their SFTP client. It should begin with a `/`. The first item in the path is the name of the home bucket (accessible as `${Transfer:HomeBucket}` in the policy) and the rest is the home directory (accessible as `${Transfer:HomeDirectory}` in the policy). For example, `/example-bucket-1234/username` would set the home bucket to `example-bucket-1234` and the home directory to `username`.
        Returns:
        builder
      • homeDirectoryMappings

        public UserState.Builder homeDirectoryMappings​(@Nullable
                                                       com.pulumi.core.Output<java.util.List<UserHomeDirectoryMappingArgs>> homeDirectoryMappings)
        Parameters:
        homeDirectoryMappings - Logical directory mappings that specify what S3 paths and keys should be visible to your user and how you want to make them visible. See `homeDirectoryMappings` Block below.
        Returns:
        builder
      • homeDirectoryMappings

        public UserState.Builder homeDirectoryMappings​(java.util.List<UserHomeDirectoryMappingArgs> homeDirectoryMappings)
        Parameters:
        homeDirectoryMappings - Logical directory mappings that specify what S3 paths and keys should be visible to your user and how you want to make them visible. See `homeDirectoryMappings` Block below.
        Returns:
        builder
      • homeDirectoryMappings

        public UserState.Builder homeDirectoryMappings​(UserHomeDirectoryMappingArgs... homeDirectoryMappings)
        Parameters:
        homeDirectoryMappings - Logical directory mappings that specify what S3 paths and keys should be visible to your user and how you want to make them visible. See `homeDirectoryMappings` Block below.
        Returns:
        builder
      • homeDirectoryType

        public UserState.Builder homeDirectoryType​(@Nullable
                                                   com.pulumi.core.Output<java.lang.String> homeDirectoryType)
        Parameters:
        homeDirectoryType - Type of landing directory (folder) you mapped for your users' home directory. Valid values are `PATH` and `LOGICAL`.
        Returns:
        builder
      • homeDirectoryType

        public UserState.Builder homeDirectoryType​(java.lang.String homeDirectoryType)
        Parameters:
        homeDirectoryType - Type of landing directory (folder) you mapped for your users' home directory. Valid values are `PATH` and `LOGICAL`.
        Returns:
        builder
      • policy

        public UserState.Builder policy​(@Nullable
                                        com.pulumi.core.Output<java.lang.String> policy)
        Parameters:
        policy - IAM JSON policy document that scopes down user access to portions of their Amazon S3 bucket. IAM variables you can use inside this policy include `${Transfer:UserName}`, `${Transfer:HomeDirectory}`, and `${Transfer:HomeBucket}`. Since the IAM variable syntax matches Terraform's interpolation syntax, they must be escaped inside Terraform configuration strings (`$${Transfer:UserName}`). These are evaluated on-the-fly when navigating the bucket.
        Returns:
        builder
      • policy

        public UserState.Builder policy​(java.lang.String policy)
        Parameters:
        policy - IAM JSON policy document that scopes down user access to portions of their Amazon S3 bucket. IAM variables you can use inside this policy include `${Transfer:UserName}`, `${Transfer:HomeDirectory}`, and `${Transfer:HomeBucket}`. Since the IAM variable syntax matches Terraform's interpolation syntax, they must be escaped inside Terraform configuration strings (`$${Transfer:UserName}`). These are evaluated on-the-fly when navigating the bucket.
        Returns:
        builder
      • posixProfile

        public UserState.Builder posixProfile​(@Nullable
                                              com.pulumi.core.Output<UserPosixProfileArgs> posixProfile)
        Parameters:
        posixProfile - Full POSIX identity, including user ID (Uid), group ID (Gid), and any secondary groups IDs (SecondaryGids), that controls your users' access to your Amazon EFS file systems. See `posixProfile` Block below.
        Returns:
        builder
      • posixProfile

        public UserState.Builder posixProfile​(UserPosixProfileArgs posixProfile)
        Parameters:
        posixProfile - Full POSIX identity, including user ID (Uid), group ID (Gid), and any secondary groups IDs (SecondaryGids), that controls your users' access to your Amazon EFS file systems. See `posixProfile` Block below.
        Returns:
        builder
      • region

        public UserState.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 UserState.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
      • role

        public UserState.Builder role​(@Nullable
                                      com.pulumi.core.Output<java.lang.String> role)
        Parameters:
        role - ARN of an IAM role that allows the service to control your user’s access to your Amazon S3 bucket.
        Returns:
        builder
      • role

        public UserState.Builder role​(java.lang.String role)
        Parameters:
        role - ARN of an IAM role that allows the service to control your user’s access to your Amazon S3 bucket.
        Returns:
        builder
      • serverId

        public UserState.Builder serverId​(@Nullable
                                          com.pulumi.core.Output<java.lang.String> serverId)
        Parameters:
        serverId - Server ID of the Transfer Server (e.g., `s-12345678`)
        Returns:
        builder
      • serverId

        public UserState.Builder serverId​(java.lang.String serverId)
        Parameters:
        serverId - Server ID of the Transfer Server (e.g., `s-12345678`)
        Returns:
        builder
      • tags

        public UserState.Builder tags​(@Nullable
                                      com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tags)
        Parameters:
        tags - Map of tags to assign to the resource. 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 UserState.Builder tags​(java.util.Map<java.lang.String,​java.lang.String> tags)
        Parameters:
        tags - Map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
        Returns:
        builder
      • tagsAll

        public UserState.Builder tagsAll​(@Nullable
                                         com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tagsAll)
        Parameters:
        tagsAll - Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
        Returns:
        builder
      • tagsAll

        public UserState.Builder tagsAll​(java.util.Map<java.lang.String,​java.lang.String> tagsAll)
        Parameters:
        tagsAll - Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
        Returns:
        builder
      • userName

        public UserState.Builder userName​(@Nullable
                                          com.pulumi.core.Output<java.lang.String> userName)
        Parameters:
        userName - Name used for log in to your SFTP server.
        Returns:
        builder
      • userName

        public UserState.Builder userName​(java.lang.String userName)
        Parameters:
        userName - Name used for log in to your SFTP server.
        Returns:
        builder