Class UserArgs.Builder

  • Enclosing class:
    UserArgs

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

      • Builder

        public Builder()
      • Builder

        public Builder​(UserArgs defaults)
    • Method Detail

      • forceDestroy

        public UserArgs.Builder forceDestroy​(@Nullable
                                             com.pulumi.core.Output<java.lang.Boolean> forceDestroy)
        Parameters:
        forceDestroy - When destroying this user, destroy even if it has non-provider-managed IAM access keys, login profile or MFA devices. Without `forceDestroy` a user with non-provider-managed access keys and login profile will fail to be destroyed. This only deletes objects when the user is destroyed, not when setting this parameter to true. Once this parameter is set to true, there must be a successful pulumi up run before a destroy is required to update this value in the resource state. Without a successful pulumi up after this parameter is set, this flag will have no effect. If setting this field in the same operation that would require replacing the user or destroying the user, this flag will not work. Additionally when importing a user, a successful pulumi up is required to set this value in state before it will take effect on a destroy operation.
        Returns:
        builder
      • forceDestroy

        public UserArgs.Builder forceDestroy​(java.lang.Boolean forceDestroy)
        Parameters:
        forceDestroy - When destroying this user, destroy even if it has non-provider-managed IAM access keys, login profile or MFA devices. Without `forceDestroy` a user with non-provider-managed access keys and login profile will fail to be destroyed. This only deletes objects when the user is destroyed, not when setting this parameter to true. Once this parameter is set to true, there must be a successful pulumi up run before a destroy is required to update this value in the resource state. Without a successful pulumi up after this parameter is set, this flag will have no effect. If setting this field in the same operation that would require replacing the user or destroying the user, this flag will not work. Additionally when importing a user, a successful pulumi up is required to set this value in state before it will take effect on a destroy operation.
        Returns:
        builder
      • name

        public UserArgs.Builder name​(@Nullable
                                     com.pulumi.core.Output<java.lang.String> name)
        Parameters:
        name - The user's name. The name must consist of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: `=,.@-_.`. User names are not distinguished by case. For example, you cannot create users named both "TESTUSER" and "testuser".
        Returns:
        builder
      • name

        public UserArgs.Builder name​(java.lang.String name)
        Parameters:
        name - The user's name. The name must consist of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: `=,.@-_.`. User names are not distinguished by case. For example, you cannot create users named both "TESTUSER" and "testuser".
        Returns:
        builder
      • path

        public UserArgs.Builder path​(@Nullable
                                     com.pulumi.core.Output<java.lang.String> path)
        Parameters:
        path - Path in which to create the user.
        Returns:
        builder
      • path

        public UserArgs.Builder path​(java.lang.String path)
        Parameters:
        path - Path in which to create the user.
        Returns:
        builder
      • permissionsBoundary

        public UserArgs.Builder permissionsBoundary​(@Nullable
                                                    com.pulumi.core.Output<java.lang.String> permissionsBoundary)
        Parameters:
        permissionsBoundary - The ARN of the policy that is used to set the permissions boundary for the user.
        Returns:
        builder
      • permissionsBoundary

        public UserArgs.Builder permissionsBoundary​(java.lang.String permissionsBoundary)
        Parameters:
        permissionsBoundary - The ARN of the policy that is used to set the permissions boundary for the user.
        Returns:
        builder
      • tags

        public UserArgs.Builder tags​(@Nullable
                                     com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tags)
        Parameters:
        tags - Key-value mapping of tags for the IAM user. 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 UserArgs.Builder tags​(java.util.Map<java.lang.String,​java.lang.String> tags)
        Parameters:
        tags - Key-value mapping of tags for the IAM user. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
        Returns:
        builder