@pulumi/pagerduty
Version:
A Pulumi package for creating and managing pagerduty cloud resources.
90 lines (89 loc) • 2.74 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 of a
* resource][1].
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as pagerduty from "@pulumi/pagerduty";
*
* const example = pagerduty.getService({
* name: "My Service",
* });
* const scores = example.then(example => pagerduty.getStandardsResourceScores({
* resourceType: "technical_services",
* id: example.id,
* }));
* ```
*/
export declare function getStandardsResourceScores(args: GetStandardsResourceScoresArgs, opts?: pulumi.InvokeOptions): Promise<GetStandardsResourceScoresResult>;
/**
* A collection of arguments for invoking getStandardsResourceScores.
*/
export interface GetStandardsResourceScoresArgs {
/**
* Identifier of said resource.
*/
id: string;
/**
* Type of the object the standards are associated to. Allowed values are `technicalServices`.
*/
resourceType: string;
}
/**
* A collection of values returned by getStandardsResourceScores.
*/
export interface GetStandardsResourceScoresResult {
/**
* A unique identifier for the standard.
*/
readonly id: string;
/**
* Specifies the type of resource to which the standard applies.
*/
readonly resourceType: string;
/**
* Summary of the scores for standards associated with this resource.
*/
readonly score: outputs.GetStandardsResourceScoresScore;
/**
* The list of standards evaluated against.
*/
readonly standards: outputs.GetStandardsResourceScoresStandard[];
}
/**
* Use this data source to get information about the [scores for the standards of a
* resource][1].
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as pagerduty from "@pulumi/pagerduty";
*
* const example = pagerduty.getService({
* name: "My Service",
* });
* const scores = example.then(example => pagerduty.getStandardsResourceScores({
* resourceType: "technical_services",
* id: example.id,
* }));
* ```
*/
export declare function getStandardsResourceScoresOutput(args: GetStandardsResourceScoresOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetStandardsResourceScoresResult>;
/**
* A collection of arguments for invoking getStandardsResourceScores.
*/
export interface GetStandardsResourceScoresOutputArgs {
/**
* Identifier of said resource.
*/
id: pulumi.Input<string>;
/**
* Type of the object the standards are associated to. Allowed values are `technicalServices`.
*/
resourceType: pulumi.Input<string>;
}