import * as pulumi from "@pulumi/pulumi"; /** * Use this data source to get information about a specific cloud account linked to New Relic. * Accounts can be located by a combination of New Relic Account ID, name and cloud provider (aws, gcp, azure, etc). Name and cloud provider are required attributes. If no accountId is specified on the resource the provider level accountId will be used. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as newrelic from "@pulumi/newrelic"; * * const account = newrelic.getCloudAccount({ * accountId: "12345", * cloudProvider: "aws", * name: "my aws account", * }); * ``` * * ### GCP Dimensional Metrics account lookup * * To look up a GCP account linked for **GCP Dimensional Metrics** (keyless / Workload Identity Federation), set `cloudProvider = "gcp"` and `isDimensionalMetrics = true`. This flag tells the data source to match only Dimensional Metrics linked accounts, distinguishing them from legacy GCP integration accounts of the same name. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as newrelic from "@pulumi/newrelic"; * * const gcpDmAccount = newrelic.getCloudAccount({ * accountId: "12345", * cloudProvider: "gcp", * name: "my gcp dimensional metrics account", * isDimensionalMetrics: true, * }); * ``` */ export declare function getCloudAccount(args: GetCloudAccountArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getCloudAccount. */ export interface GetCloudAccountArgs { /** * The account ID in New Relic. */ accountId?: string; /** * The cloud provider of the account (aws, gcp, azure, etc) */ cloudProvider: string; /** * Set to `true` to look up a GCP **Dimensional Metrics** (keyless / Workload Identity Federation) linked account, as opposed to a legacy GCP integration account of the same name. Can only be used when `cloudProvider` is `"gcp"`. Defaults to `false`. */ isDimensionalMetrics?: boolean; /** * The cloud account name in New Relic. */ name: string; } /** * A collection of values returned by getCloudAccount. */ export interface GetCloudAccountResult { readonly accountId?: string; readonly cloudProvider: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly isDimensionalMetrics?: boolean; readonly name: string; } /** * Use this data source to get information about a specific cloud account linked to New Relic. * Accounts can be located by a combination of New Relic Account ID, name and cloud provider (aws, gcp, azure, etc). Name and cloud provider are required attributes. If no accountId is specified on the resource the provider level accountId will be used. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as newrelic from "@pulumi/newrelic"; * * const account = newrelic.getCloudAccount({ * accountId: "12345", * cloudProvider: "aws", * name: "my aws account", * }); * ``` * * ### GCP Dimensional Metrics account lookup * * To look up a GCP account linked for **GCP Dimensional Metrics** (keyless / Workload Identity Federation), set `cloudProvider = "gcp"` and `isDimensionalMetrics = true`. This flag tells the data source to match only Dimensional Metrics linked accounts, distinguishing them from legacy GCP integration accounts of the same name. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as newrelic from "@pulumi/newrelic"; * * const gcpDmAccount = newrelic.getCloudAccount({ * accountId: "12345", * cloudProvider: "gcp", * name: "my gcp dimensional metrics account", * isDimensionalMetrics: true, * }); * ``` */ export declare function getCloudAccountOutput(args: GetCloudAccountOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getCloudAccount. */ export interface GetCloudAccountOutputArgs { /** * The account ID in New Relic. */ accountId?: pulumi.Input; /** * The cloud provider of the account (aws, gcp, azure, etc) */ cloudProvider: pulumi.Input; /** * Set to `true` to look up a GCP **Dimensional Metrics** (keyless / Workload Identity Federation) linked account, as opposed to a legacy GCP integration account of the same name. Can only be used when `cloudProvider` is `"gcp"`. Defaults to `false`. */ isDimensionalMetrics?: pulumi.Input; /** * The cloud account name in New Relic. */ name: pulumi.Input; } //# sourceMappingURL=getCloudAccount.d.ts.map