@pulumiverse/dynatrace
Version:
A Pulumi package for creating and managing Dynatrace cloud resources.
96 lines (95 loc) • 2.82 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* The generic setting data source allows a single Settings 2.0 object to be retrieved by its schema ID, scope, and/or filter.
*
* If multiple objects match the given criteria, the first result will be retrieved.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as dynatrace from "@pulumi/dynatrace";
*
* const example = dynatrace.getGenericSetting({
* schema: "builtin:alerting.maintenance-window",
* filter: "value.generalProperties.name = 'Terraform Example'",
* });
* export const genericSetting = example;
* ```
*/
export declare function getGenericSetting(args?: GetGenericSettingArgs, opts?: pulumi.InvokeOptions): Promise<GetGenericSettingResult>;
/**
* A collection of arguments for invoking getGenericSetting.
*/
export interface GetGenericSettingArgs {
/**
* Filter of the requested objects
*/
filter?: string;
/**
* Schema IDs to which the requested objects belong
*/
schema?: string;
/**
* Scope that the requested objects target
*/
scope?: string;
}
/**
* A collection of values returned by getGenericSetting.
*/
export interface GetGenericSettingResult {
/**
* Filter of the requested objects
*/
readonly filter?: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* Schema IDs to which the requested objects belong
*/
readonly schema: string;
/**
* Scope that the requested objects target
*/
readonly scope: string;
readonly value: string;
}
/**
* The generic setting data source allows a single Settings 2.0 object to be retrieved by its schema ID, scope, and/or filter.
*
* If multiple objects match the given criteria, the first result will be retrieved.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as dynatrace from "@pulumi/dynatrace";
*
* const example = dynatrace.getGenericSetting({
* schema: "builtin:alerting.maintenance-window",
* filter: "value.generalProperties.name = 'Terraform Example'",
* });
* export const genericSetting = example;
* ```
*/
export declare function getGenericSettingOutput(args?: GetGenericSettingOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetGenericSettingResult>;
/**
* A collection of arguments for invoking getGenericSetting.
*/
export interface GetGenericSettingOutputArgs {
/**
* Filter of the requested objects
*/
filter?: pulumi.Input<string>;
/**
* Schema IDs to which the requested objects belong
*/
schema?: pulumi.Input<string>;
/**
* Scope that the requested objects target
*/
scope?: pulumi.Input<string>;
}