import * as pulumi from "@pulumi/pulumi"; /** * The Cloud Account data source allows access to the ID of a Cloud Account configuration. This ID can be * used when creating Subscription resources. * * ## Example Usage * * The following example excludes the Redis Labs internal cloud account and returns only AWS related accounts. * This example assumes there is only a single AWS cloud account defined. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as rediscloud from "@pulumi/rediscloud"; * * const example = rediscloud.getCloudAccount({ * excludeInternalAccount: true, * providerType: "AWS", * }); * ``` * * If there is more than one AWS cloud account then the name attribute can be used to further filter the ID returned. * This example looks for a cloud account named `test` and returns the cloud account ID and access key ID. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as rediscloud from "@pulumi/rediscloud"; * * const example = rediscloud.getCloudAccount({ * excludeInternalAccount: true, * providerType: "AWS", * name: "test", * }); * export const cloudAccountId = example.then(example => example.id); * export const cloudAccountAccessKeyId = example.then(example => example.accessKeyId); * ``` */ export declare function getCloudAccount(args?: GetCloudAccountArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getCloudAccount. */ export interface GetCloudAccountArgs { /** * Whether to exclude the Redis Labs internal cloud account. */ excludeInternalAccount?: boolean; /** * A meaningful name to identify the cloud account */ name?: string; /** * The cloud provider of the cloud account, (either `AWS` or `GCP`) */ providerType?: string; } /** * A collection of values returned by getCloudAccount. */ export interface GetCloudAccountResult { /** * The access key ID associated with the cloud account */ readonly accessKeyId: string; readonly excludeInternalAccount?: boolean; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly name: string; readonly providerType: string; } /** * The Cloud Account data source allows access to the ID of a Cloud Account configuration. This ID can be * used when creating Subscription resources. * * ## Example Usage * * The following example excludes the Redis Labs internal cloud account and returns only AWS related accounts. * This example assumes there is only a single AWS cloud account defined. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as rediscloud from "@pulumi/rediscloud"; * * const example = rediscloud.getCloudAccount({ * excludeInternalAccount: true, * providerType: "AWS", * }); * ``` * * If there is more than one AWS cloud account then the name attribute can be used to further filter the ID returned. * This example looks for a cloud account named `test` and returns the cloud account ID and access key ID. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as rediscloud from "@pulumi/rediscloud"; * * const example = rediscloud.getCloudAccount({ * excludeInternalAccount: true, * providerType: "AWS", * name: "test", * }); * export const cloudAccountId = example.then(example => example.id); * export const cloudAccountAccessKeyId = example.then(example => example.accessKeyId); * ``` */ export declare function getCloudAccountOutput(args?: GetCloudAccountOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output; /** * A collection of arguments for invoking getCloudAccount. */ export interface GetCloudAccountOutputArgs { /** * Whether to exclude the Redis Labs internal cloud account. */ excludeInternalAccount?: pulumi.Input; /** * A meaningful name to identify the cloud account */ name?: pulumi.Input; /** * The cloud provider of the cloud account, (either `AWS` or `GCP`) */ providerType?: pulumi.Input; }