@pulumi/pagerduty
Version:
A Pulumi package for creating and managing pagerduty cloud resources.
107 lines • 3.2 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "./types/output";
/**
* Use this data source to get information about the [scores for the standards for
* many resources][1].
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as pagerduty from "@pulumi/pagerduty";
*
* const foo = pagerduty.getService({
* name: "foo",
* });
* const bar = pagerduty.getService({
* name: "bar",
* });
* const baz = pagerduty.getService({
* name: "baz",
* });
* const scores = Promise.all([foo, bar, baz]).then(([foo, bar, baz]) => pagerduty.getStandardsResourcesScores({
* resourceType: "technical_services",
* ids: [
* foo.id,
* bar.id,
* baz.id,
* ],
* }));
* ```
*/
export declare function getStandardsResourcesScores(args: GetStandardsResourcesScoresArgs, opts?: pulumi.InvokeOptions): Promise<GetStandardsResourcesScoresResult>;
/**
* A collection of arguments for invoking getStandardsResourcesScores.
*/
export interface GetStandardsResourcesScoresArgs {
/**
* List of identifiers of the resources to query.
*/
ids: string[];
/**
* Type of the object the standards are associated to. Allowed values are `technicalServices`.
*/
resourceType: string;
}
/**
* A collection of values returned by getStandardsResourcesScores.
*/
export interface GetStandardsResourcesScoresResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly ids: string[];
/**
* Specifies the type of resource to which the standard applies.
*/
readonly resourceType: string;
/**
* List of score results for each queried resource.
*/
readonly resources: outputs.GetStandardsResourcesScoresResource[];
}
/**
* Use this data source to get information about the [scores for the standards for
* many resources][1].
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as pagerduty from "@pulumi/pagerduty";
*
* const foo = pagerduty.getService({
* name: "foo",
* });
* const bar = pagerduty.getService({
* name: "bar",
* });
* const baz = pagerduty.getService({
* name: "baz",
* });
* const scores = Promise.all([foo, bar, baz]).then(([foo, bar, baz]) => pagerduty.getStandardsResourcesScores({
* resourceType: "technical_services",
* ids: [
* foo.id,
* bar.id,
* baz.id,
* ],
* }));
* ```
*/
export declare function getStandardsResourcesScoresOutput(args: GetStandardsResourcesScoresOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetStandardsResourcesScoresResult>;
/**
* A collection of arguments for invoking getStandardsResourcesScores.
*/
export interface GetStandardsResourcesScoresOutputArgs {
/**
* List of identifiers of the resources to query.
*/
ids: pulumi.Input<pulumi.Input<string>[]>;
/**
* Type of the object the standards are associated to. Allowed values are `technicalServices`.
*/
resourceType: pulumi.Input<string>;
}
//# sourceMappingURL=getStandardsResourcesScores.d.ts.map