@pulumi/opsgenie
Version:
A Pulumi package for creating and managing opsgenie cloud resources.
112 lines (111 loc) • 3.9 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Manages a Service within Opsgenie.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as opsgenie from "@pulumi/opsgenie";
*
* const payment = new opsgenie.Team("payment", {
* name: "example",
* description: "This team deals with all the things",
* });
* const _this = new opsgenie.Service("this", {
* name: "Payment",
* teamId: "$opsgenie_team.payment.id",
* });
* ```
*
* ## Import
*
* Teams can be imported using the `service_id`, e.g.
*
* ```sh
* $ pulumi import opsgenie:index/service:Service this service_id`
* ```
*/
export declare class Service extends pulumi.CustomResource {
/**
* Get an existing Service resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ServiceState, opts?: pulumi.CustomResourceOptions): Service;
/**
* Returns true if the given object is an instance of Service. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is Service;
/**
* Description field of the service that is generally used to provide a detailed information about the service.
*/
readonly description: pulumi.Output<string | undefined>;
/**
* Name of the service. This field must not be longer than 100 characters.
*/
readonly name: pulumi.Output<string>;
/**
* Tags for the service, with a maximum of 20 tags per service.
*/
readonly tags: pulumi.Output<string[] | undefined>;
/**
* Team id of the service. This field must not be longer than 512 characters.
*/
readonly teamId: pulumi.Output<string>;
/**
* Create a Service resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args: ServiceArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering Service resources.
*/
export interface ServiceState {
/**
* Description field of the service that is generally used to provide a detailed information about the service.
*/
description?: pulumi.Input<string>;
/**
* Name of the service. This field must not be longer than 100 characters.
*/
name?: pulumi.Input<string>;
/**
* Tags for the service, with a maximum of 20 tags per service.
*/
tags?: pulumi.Input<pulumi.Input<string>[]>;
/**
* Team id of the service. This field must not be longer than 512 characters.
*/
teamId?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a Service resource.
*/
export interface ServiceArgs {
/**
* Description field of the service that is generally used to provide a detailed information about the service.
*/
description?: pulumi.Input<string>;
/**
* Name of the service. This field must not be longer than 100 characters.
*/
name?: pulumi.Input<string>;
/**
* Tags for the service, with a maximum of 20 tags per service.
*/
tags?: pulumi.Input<pulumi.Input<string>[]>;
/**
* Team id of the service. This field must not be longer than 512 characters.
*/
teamId: pulumi.Input<string>;
}