@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
110 lines (109 loc) • 3.36 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
* Use this data source to get information about an ElastiCache User.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const bar = aws.elasticache.getUser({
* userId: "example",
* });
* ```
*/
export declare function getUser(args: GetUserArgs, opts?: pulumi.InvokeOptions): Promise<GetUserResult>;
/**
* A collection of arguments for invoking getUser.
*/
export interface GetUserArgs {
/**
* String for what access a user possesses within the associated ElastiCache replication groups or clusters.
*/
accessString?: string;
authenticationModes?: inputs.elasticache.GetUserAuthenticationMode[];
engine?: string;
noPasswordRequired?: boolean;
passwords?: string[];
/**
* 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.
*/
region?: string;
/**
* Identifier for the user.
*/
userId: string;
/**
* User name of the user.
*/
userName?: string;
}
/**
* A collection of values returned by getUser.
*/
export interface GetUserResult {
/**
* String for what access a user possesses within the associated ElastiCache replication groups or clusters.
*/
readonly accessString?: string;
readonly authenticationModes?: outputs.elasticache.GetUserAuthenticationMode[];
readonly engine?: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly noPasswordRequired?: boolean;
readonly passwords?: string[];
readonly region: string;
/**
* Identifier for the user.
*/
readonly userId: string;
/**
* User name of the user.
*/
readonly userName?: string;
}
/**
* Use this data source to get information about an ElastiCache User.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const bar = aws.elasticache.getUser({
* userId: "example",
* });
* ```
*/
export declare function getUserOutput(args: GetUserOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetUserResult>;
/**
* A collection of arguments for invoking getUser.
*/
export interface GetUserOutputArgs {
/**
* String for what access a user possesses within the associated ElastiCache replication groups or clusters.
*/
accessString?: pulumi.Input<string>;
authenticationModes?: pulumi.Input<pulumi.Input<inputs.elasticache.GetUserAuthenticationModeArgs>[]>;
engine?: pulumi.Input<string>;
noPasswordRequired?: pulumi.Input<boolean>;
passwords?: pulumi.Input<pulumi.Input<string>[]>;
/**
* 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.
*/
region?: pulumi.Input<string>;
/**
* Identifier for the user.
*/
userId: pulumi.Input<string>;
/**
* User name of the user.
*/
userName?: pulumi.Input<string>;
}