import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * This data source provides details about a specific Recommendation Strategy resource in Oracle Cloud Infrastructure Optimizer service. * * Lists the existing strategies. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testRecommendationStrategy = oci.optimizer.getRecommendationStrategy({ * compartmentId: compartmentId, * compartmentIdInSubtree: recommendationStrategyCompartmentIdInSubtree === "true", * name: recommendationStrategyName, * recommendationName: testRecommendation.name, * }); * ``` */ export declare function getRecommendationStrategy(args: GetRecommendationStrategyArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getRecommendationStrategy. */ export interface GetRecommendationStrategyArgs { /** * The OCID of the compartment. */ compartmentId: string; /** * When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned depending on the the setting of `accessLevel`. * * Can only be set to true when performing ListCompartments on the tenancy (root compartment). */ compartmentIdInSubtree: boolean; /** * Optional. A filter that returns results that match the name specified. */ name?: string; /** * Optional. A filter that returns results that match the recommendation name specified. */ recommendationName?: string; } /** * A collection of values returned by getRecommendationStrategy. */ export interface GetRecommendationStrategyResult { readonly compartmentId: string; readonly compartmentIdInSubtree: boolean; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * A collection of recommendation strategy summaries. */ readonly items: outputs.Optimizer.GetRecommendationStrategyItem[]; /** * The name of the strategy parameter. */ readonly name?: string; readonly recommendationName?: string; } /** * This data source provides details about a specific Recommendation Strategy resource in Oracle Cloud Infrastructure Optimizer service. * * Lists the existing strategies. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testRecommendationStrategy = oci.optimizer.getRecommendationStrategy({ * compartmentId: compartmentId, * compartmentIdInSubtree: recommendationStrategyCompartmentIdInSubtree === "true", * name: recommendationStrategyName, * recommendationName: testRecommendation.name, * }); * ``` */ export declare function getRecommendationStrategyOutput(args: GetRecommendationStrategyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getRecommendationStrategy. */ export interface GetRecommendationStrategyOutputArgs { /** * The OCID of the compartment. */ compartmentId: pulumi.Input; /** * When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned depending on the the setting of `accessLevel`. * * Can only be set to true when performing ListCompartments on the tenancy (root compartment). */ compartmentIdInSubtree: pulumi.Input; /** * Optional. A filter that returns results that match the name specified. */ name?: pulumi.Input; /** * Optional. A filter that returns results that match the recommendation name specified. */ recommendationName?: pulumi.Input; } //# sourceMappingURL=getRecommendationStrategy.d.ts.map