Class GetClusterCredentialsArgs.Builder

  • Enclosing class:
    GetClusterCredentialsArgs

    public static final class GetClusterCredentialsArgs.Builder
    extends java.lang.Object
    • Method Detail

      • autoCreate

        public GetClusterCredentialsArgs.Builder autoCreate​(@Nullable
                                                            com.pulumi.core.Output<java.lang.Boolean> autoCreate)
        Parameters:
        autoCreate - Create a database user with the name specified for the user named in `dbUser` if one does not exist.
        Returns:
        builder
      • autoCreate

        public GetClusterCredentialsArgs.Builder autoCreate​(java.lang.Boolean autoCreate)
        Parameters:
        autoCreate - Create a database user with the name specified for the user named in `dbUser` if one does not exist.
        Returns:
        builder
      • clusterIdentifier

        public GetClusterCredentialsArgs.Builder clusterIdentifier​(com.pulumi.core.Output<java.lang.String> clusterIdentifier)
        Parameters:
        clusterIdentifier - Unique identifier of the cluster that contains the database for which your are requesting credentials.
        Returns:
        builder
      • clusterIdentifier

        public GetClusterCredentialsArgs.Builder clusterIdentifier​(java.lang.String clusterIdentifier)
        Parameters:
        clusterIdentifier - Unique identifier of the cluster that contains the database for which your are requesting credentials.
        Returns:
        builder
      • dbGroups

        public GetClusterCredentialsArgs.Builder dbGroups​(@Nullable
                                                          com.pulumi.core.Output<java.util.List<java.lang.String>> dbGroups)
        Parameters:
        dbGroups - List of the names of existing database groups that the user named in `dbUser` will join for the current session, in addition to any group memberships for an existing user. If not specified, a new user is added only to `PUBLIC`.
        Returns:
        builder
      • dbGroups

        public GetClusterCredentialsArgs.Builder dbGroups​(java.util.List<java.lang.String> dbGroups)
        Parameters:
        dbGroups - List of the names of existing database groups that the user named in `dbUser` will join for the current session, in addition to any group memberships for an existing user. If not specified, a new user is added only to `PUBLIC`.
        Returns:
        builder
      • dbGroups

        public GetClusterCredentialsArgs.Builder dbGroups​(java.lang.String... dbGroups)
        Parameters:
        dbGroups - List of the names of existing database groups that the user named in `dbUser` will join for the current session, in addition to any group memberships for an existing user. If not specified, a new user is added only to `PUBLIC`.
        Returns:
        builder
      • dbName

        public GetClusterCredentialsArgs.Builder dbName​(@Nullable
                                                        com.pulumi.core.Output<java.lang.String> dbName)
        Parameters:
        dbName - Name of a database that DbUser is authorized to log on to. If `dbName` is not specified, `dbUser` can log on to any existing database.
        Returns:
        builder
      • dbName

        public GetClusterCredentialsArgs.Builder dbName​(java.lang.String dbName)
        Parameters:
        dbName - Name of a database that DbUser is authorized to log on to. If `dbName` is not specified, `dbUser` can log on to any existing database.
        Returns:
        builder
      • dbUser

        public GetClusterCredentialsArgs.Builder dbUser​(com.pulumi.core.Output<java.lang.String> dbUser)
        Parameters:
        dbUser - Name of a database user. If a user name matching `dbUser` exists in the database, the temporary user credentials have the same permissions as the existing user. If `dbUser` doesn't exist in the database and `autoCreate` is `True`, a new user is created using the value for `dbUser` with `PUBLIC` permissions. If a database user matching the value for `dbUser` doesn't exist and `not` is `False`, then the command succeeds but the connection attempt will fail because the user doesn't exist in the database.
        Returns:
        builder
      • dbUser

        public GetClusterCredentialsArgs.Builder dbUser​(java.lang.String dbUser)
        Parameters:
        dbUser - Name of a database user. If a user name matching `dbUser` exists in the database, the temporary user credentials have the same permissions as the existing user. If `dbUser` doesn't exist in the database and `autoCreate` is `True`, a new user is created using the value for `dbUser` with `PUBLIC` permissions. If a database user matching the value for `dbUser` doesn't exist and `not` is `False`, then the command succeeds but the connection attempt will fail because the user doesn't exist in the database.
        Returns:
        builder
      • durationSeconds

        public GetClusterCredentialsArgs.Builder durationSeconds​(@Nullable
                                                                 com.pulumi.core.Output<java.lang.Integer> durationSeconds)
        Parameters:
        durationSeconds - The number of seconds until the returned temporary password expires. Valid values are between `900` and `3600`. Default value is `900`.
        Returns:
        builder
      • durationSeconds

        public GetClusterCredentialsArgs.Builder durationSeconds​(java.lang.Integer durationSeconds)
        Parameters:
        durationSeconds - The number of seconds until the returned temporary password expires. Valid values are between `900` and `3600`. Default value is `900`.
        Returns:
        builder
      • region

        public GetClusterCredentialsArgs.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 GetClusterCredentialsArgs.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