import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Provides a Datadog DeploymentGate resource. This can be used to create and manage Datadog deployment_gate. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as datadog from "@pulumi/datadog"; * * // Create new deployment_gate resource * const foo = new datadog.DeploymentGate("foo", { * dryRun: false, * env: "production", * identifier: "my-gate", * service: "my-service", * rules: [ * { * name: "fdd", * type: "faulty_deployment_detection", * dryRun: false, * options: [{ * duration: 1300, * excludedResources: ["GET api/v1/test"], * }], * }, * { * name: "monitor", * type: "monitor", * dryRun: false, * options: [{ * query: "service:test-service", * duration: 1300, * }], * }, * ], * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * ```sh * $ pulumi import datadog:index/deploymentGate:DeploymentGate new_list "" * ``` */ export declare class DeploymentGate extends pulumi.CustomResource { /** * Get an existing DeploymentGate 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?: DeploymentGateState, opts?: pulumi.CustomResourceOptions): DeploymentGate; /** * Returns true if the given object is an instance of DeploymentGate. 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 DeploymentGate; /** * Creation timestamp of the deployment gate. */ readonly createdAt: pulumi.Output; /** * Enable Dry Run to test gate behavior without impacting deployments. The evaluation of a dry run gate always responds with a pass status, but the in-app result is the real status based on rules evaluation. This is particularly useful when performing an initial evaluation of the gate behavior without impacting the deployment pipeline. */ readonly dryRun: pulumi.Output; /** * The target environment (example: dev). */ readonly env: pulumi.Output; /** * Unique name for multiple gates on the same service/environment. */ readonly identifier: pulumi.Output; /** * Deployment rules for this gate. */ readonly rules: pulumi.Output; /** * The service name (example: transaction-backend). */ readonly service: pulumi.Output; /** * Last update timestamp of the deployment gate. */ readonly updatedAt: pulumi.Output; /** * Create a DeploymentGate 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: DeploymentGateArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering DeploymentGate resources. */ export interface DeploymentGateState { /** * Creation timestamp of the deployment gate. */ createdAt?: pulumi.Input; /** * Enable Dry Run to test gate behavior without impacting deployments. The evaluation of a dry run gate always responds with a pass status, but the in-app result is the real status based on rules evaluation. This is particularly useful when performing an initial evaluation of the gate behavior without impacting the deployment pipeline. */ dryRun?: pulumi.Input; /** * The target environment (example: dev). */ env?: pulumi.Input; /** * Unique name for multiple gates on the same service/environment. */ identifier?: pulumi.Input; /** * Deployment rules for this gate. */ rules?: pulumi.Input[]>; /** * The service name (example: transaction-backend). */ service?: pulumi.Input; /** * Last update timestamp of the deployment gate. */ updatedAt?: pulumi.Input; } /** * The set of arguments for constructing a DeploymentGate resource. */ export interface DeploymentGateArgs { /** * Enable Dry Run to test gate behavior without impacting deployments. The evaluation of a dry run gate always responds with a pass status, but the in-app result is the real status based on rules evaluation. This is particularly useful when performing an initial evaluation of the gate behavior without impacting the deployment pipeline. */ dryRun?: pulumi.Input; /** * The target environment (example: dev). */ env: pulumi.Input; /** * Unique name for multiple gates on the same service/environment. */ identifier?: pulumi.Input; /** * Deployment rules for this gate. */ rules?: pulumi.Input[]>; /** * The service name (example: transaction-backend). */ service: pulumi.Input; }