import * as pulumi from "@pulumi/pulumi"; /** * Provides a Datadog service definition resource. This can be used to create and manage Datadog service definitions in the service catalog using the YAML/JSON definition. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as datadog from "@pulumi/datadog"; * * // Service Definition with v2.2 Schema Definition * const serviceDefinitionV22 = new datadog.ServiceDefinitionYaml("service_definition_v2_2", {serviceDefinition: `schema-version: v2.2 * dd-service: shopping-cart * team: e-commerce-team * contacts: * - name: Support Email * type: email * contact: team@shopping.com * - name: Support Slack * type: slack * contact: https://www.slack.com/archives/shopping-cart * description: shopping cart service responsible for managing shopping carts * tier: high * lifecycle: production * application: e-commerce * languages: * - go * - python * type: web * ci-pipeline-fingerprints: * - fp1 * - fp2 * links: * - name: shopping-cart runbook * type: runbook * url: https://runbook/shopping-cart * - name: shopping-cart architecture * type: doc * provider: gdoc * url: https://google.drive/shopping-cart-architecture * - name: shopping-cart service Wiki * type: doc * provider: wiki * url: https://wiki/shopping-cart * - name: shopping-cart source code * type: repo * provider: github * url: http://github/shopping-cart * tags: * - business-unit:retail * - cost-center:engineering * integrations: * pagerduty: * service-url: https://www.pagerduty.com/service-directory/Pshopping-cart * extensions: * mycompany.com/shopping-cart: * customField: customValue * `}); * // Service Definition with v2.1 Schema Definition * const serviceDefinitionV21 = new datadog.ServiceDefinitionYaml("service_definition_v2_1", {serviceDefinition: `schema-version: v2.1 * dd-service: shopping-cart * team: e-commerce-team * contacts: * - name: Support Email * type: email * contact: team@shopping.com * - name: Support Slack * type: slack * contact: https://www.slack.com/archives/shopping-cart * description: shopping cart service responsible for managing shopping carts * tier: high * lifecycle: production * application: e-commerce * links: * - name: shopping-cart runbook * type: runbook * url: https://runbook/shopping-cart * - name: shopping-cart architecture * type: doc * provider: gdoc * url: https://google.drive/shopping-cart-architecture * - name: shopping-cart service Wiki * type: doc * provider: wiki * url: https://wiki/shopping-cart * - name: shopping-cart source code * type: repo * provider: github * url: http://github/shopping-cart * tags: * - business-unit:retail * - cost-center:engineering * integrations: * pagerduty: * service-url: https://www.pagerduty.com/service-directory/Pshopping-cart * extensions: * mycompany.com/shopping-cart: * customField: customValue * `}); * // Service Definition with v2 Schema Definition * const serviceDefinitionV2 = new datadog.ServiceDefinitionYaml("service_definition_v2", {serviceDefinition: `schema-version: v2 * dd-service: shopping-cart * team: E Commerce * contacts: * - name: Support Email * type: email * contact: team@shopping.com * - name: Support Slack * type: slack * contact: https://www.slack.com/archives/shopping-cart * repos: * - name: shopping-cart source code * provider: github * url: http://github/shopping-cart * docs: * - name: shopping-cart architecture * provider: gdoc * url: https://google.drive/shopping-cart-architecture * - name: shopping-cart service Wiki * provider: wiki * url: https://wiki/shopping-cart * links: * - name: shopping-cart runbook * type: runbook * url: https://runbook/shopping-cart * tags: * - business-unit:retail * - cost-center:engineering * integrations: * pagerduty: https://www.pagerduty.com/service-directory/Pshopping-cart * extensions: * datadoghq.com/shopping-cart: * customField: customValue * `}); * // Service Definition with backstage.io Schema * const serviceDefinitionBackstage = new datadog.ServiceDefinitionYaml("service_definition_backstage", {serviceDefinition: `apiVersion: backstage.io/v1alpha1 * kind: Component * metadata: * annotations: * backstage.io/techdocs-ref: http://a/b/c * some.annotation: value * namespace: default * name: shopping-cart * title: Shopping Cart * description: A shopping cart service * tags: ["taga:valuea", "tagb:valueb"] * links: * - title: Wiki * url: https://wiki/shopping-cart * icon: help * ignore-attribute: * id: 1 * value: "value" * spec: * type: service * lifecycle: production * owner: e-commerce * system: retail * `}); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * ```sh * $ pulumi import datadog:index/serviceDefinitionYaml:ServiceDefinitionYaml service_definition "" * ``` */ export declare class ServiceDefinitionYaml extends pulumi.CustomResource { /** * Get an existing ServiceDefinitionYaml 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, state?: ServiceDefinitionYamlState, opts?: pulumi.CustomResourceOptions): ServiceDefinitionYaml; /** * Returns true if the given object is an instance of ServiceDefinitionYaml. 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 ServiceDefinitionYaml; /** * The YAML/JSON formatted definition of the service */ readonly serviceDefinition: pulumi.Output; /** * Create a ServiceDefinitionYaml 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: ServiceDefinitionYamlArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ServiceDefinitionYaml resources. */ export interface ServiceDefinitionYamlState { /** * The YAML/JSON formatted definition of the service */ serviceDefinition?: pulumi.Input; } /** * The set of arguments for constructing a ServiceDefinitionYaml resource. */ export interface ServiceDefinitionYamlArgs { /** * The YAML/JSON formatted definition of the service */ serviceDefinition: pulumi.Input; }