@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
87 lines (86 loc) • 2.43 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Data source for managing an AWS Timestream Write Database.
*
* ## Example Usage
*
* ### Basic Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const test = aws.timestreamwrite.getDatabase({
* name: "database-example",
* });
* ```
*/
export declare function getDatabase(args: GetDatabaseArgs, opts?: pulumi.InvokeOptions): Promise<GetDatabaseResult>;
/**
* A collection of arguments for invoking getDatabase.
*/
export interface GetDatabaseArgs {
name: 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;
}
/**
* A collection of values returned by getDatabase.
*/
export interface GetDatabaseResult {
/**
* The ARN that uniquely identifies this database.
*/
readonly arn: string;
/**
* Creation time of database.
*/
readonly createdTime: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* The ARN of the KMS key used to encrypt the data stored in the database.
*/
readonly kmsKeyId: string;
/**
* Last time database was updated.
*/
readonly lastUpdatedTime: string;
readonly name: string;
readonly region: string;
/**
* Total number of tables in the Timestream database.
*/
readonly tableCount: number;
}
/**
* Data source for managing an AWS Timestream Write Database.
*
* ## Example Usage
*
* ### Basic Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const test = aws.timestreamwrite.getDatabase({
* name: "database-example",
* });
* ```
*/
export declare function getDatabaseOutput(args: GetDatabaseOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetDatabaseResult>;
/**
* A collection of arguments for invoking getDatabase.
*/
export interface GetDatabaseOutputArgs {
name: 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>;
}