import * as pulumi from "@pulumi/pulumi"; /** * Use this data source to fetch the content and version metadata of an existing New Relic fleet configuration. Three mutually exclusive lookup modes are supported: by **configuration GUID**, by **version entity GUID**, or by **name**. * * ## Example Usage * * ### Look Up by Configuration GUID * * Fetches the content of the **latest** version of the configuration identified by its entity GUID. Also returns the GUIDs of all versions. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as newrelic from "@pulumi/newrelic"; * * const byId = newrelic.getFleetConfiguration({ * configurationId: "NjQyNTg2NXxOR0VQ...", * }); * export const latestContent = byId.then(byId => byId.configurationContent); * export const allVersionGuids = byId.then(byId => byId.versionEntityIds); * ``` * * ### Look Up by Version Entity GUID * * Fetches the content of a **specific version** identified by its version entity GUID. Also resolves and returns the parent configuration GUID. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as newrelic from "@pulumi/newrelic"; * * const byVersion = newrelic.getFleetConfiguration({ * versionEntityId: "NjQyNTg2NXxOR0VQfEFHRU5UX0NPTkZJR1VSQVRJT05fVkVSU0lPTnw...", * }); * export const versionContent = byVersion.then(byVersion => byVersion.configurationContent); * export const parentConfigGuid = byVersion.then(byVersion => byVersion.configurationId); * ``` * * ### Look Up by Name * * Fetches the content of the **latest** version of the configuration matching the given name. Also returns the GUIDs of all versions. The first matching configuration is returned if multiple share the same name. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as newrelic from "@pulumi/newrelic"; * * const byName = newrelic.getFleetConfiguration({ * name: "Production Infrastructure Config", * }); * export const latestContent = byName.then(byName => byName.configurationContent); * ``` */ export declare function getFleetConfiguration(args?: GetFleetConfigurationArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getFleetConfiguration. */ export interface GetFleetConfigurationArgs { /** * The entity GUID of the fleet configuration. Returns the content of its **latest** version. This attribute is also populated as an output when looking up by `versionEntityId`. */ configurationId?: string; /** * The name of the fleet configuration. Returns the content of its **latest** version. The first matching configuration is returned if multiple share the same name. * * The following optional argument is supported in all modes: */ name?: string; /** * The organization ID. Resolved automatically from the provider account when omitted. */ organizationId?: string; /** * The entity GUID of a specific configuration version. Returns the content of that exact version. */ versionEntityId?: string; } /** * A collection of values returned by getFleetConfiguration. */ export interface GetFleetConfigurationResult { /** * The raw YAML/JSON content of the resolved version. */ readonly configurationContent: string; /** * The entity GUID of the fleet configuration. */ readonly configurationId: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The entity GUID of the latest (highest-numbered) version. */ readonly latestVersionEntityId: string; readonly name?: string; /** * The organization ID the configuration belongs to. */ readonly organizationId: string; readonly versionEntityId?: string; /** * Entity GUIDs of all versions ordered by version number, oldest first. */ readonly versionEntityIds: string[]; } /** * Use this data source to fetch the content and version metadata of an existing New Relic fleet configuration. Three mutually exclusive lookup modes are supported: by **configuration GUID**, by **version entity GUID**, or by **name**. * * ## Example Usage * * ### Look Up by Configuration GUID * * Fetches the content of the **latest** version of the configuration identified by its entity GUID. Also returns the GUIDs of all versions. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as newrelic from "@pulumi/newrelic"; * * const byId = newrelic.getFleetConfiguration({ * configurationId: "NjQyNTg2NXxOR0VQ...", * }); * export const latestContent = byId.then(byId => byId.configurationContent); * export const allVersionGuids = byId.then(byId => byId.versionEntityIds); * ``` * * ### Look Up by Version Entity GUID * * Fetches the content of a **specific version** identified by its version entity GUID. Also resolves and returns the parent configuration GUID. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as newrelic from "@pulumi/newrelic"; * * const byVersion = newrelic.getFleetConfiguration({ * versionEntityId: "NjQyNTg2NXxOR0VQfEFHRU5UX0NPTkZJR1VSQVRJT05fVkVSU0lPTnw...", * }); * export const versionContent = byVersion.then(byVersion => byVersion.configurationContent); * export const parentConfigGuid = byVersion.then(byVersion => byVersion.configurationId); * ``` * * ### Look Up by Name * * Fetches the content of the **latest** version of the configuration matching the given name. Also returns the GUIDs of all versions. The first matching configuration is returned if multiple share the same name. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as newrelic from "@pulumi/newrelic"; * * const byName = newrelic.getFleetConfiguration({ * name: "Production Infrastructure Config", * }); * export const latestContent = byName.then(byName => byName.configurationContent); * ``` */ export declare function getFleetConfigurationOutput(args?: GetFleetConfigurationOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getFleetConfiguration. */ export interface GetFleetConfigurationOutputArgs { /** * The entity GUID of the fleet configuration. Returns the content of its **latest** version. This attribute is also populated as an output when looking up by `versionEntityId`. */ configurationId?: pulumi.Input; /** * The name of the fleet configuration. Returns the content of its **latest** version. The first matching configuration is returned if multiple share the same name. * * The following optional argument is supported in all modes: */ name?: pulumi.Input; /** * The organization ID. Resolved automatically from the provider account when omitted. */ organizationId?: pulumi.Input; /** * The entity GUID of a specific configuration version. Returns the content of that exact version. */ versionEntityId?: pulumi.Input; } //# sourceMappingURL=getFleetConfiguration.d.ts.map