import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Provides a Datadog synthetics global variable resource. This can be used to create and manage Datadog synthetics global variables. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as datadog from "@pulumi/datadog"; * import * as std from "@pulumi/std"; * * // Basic Usage * const testVariable = new datadog.SyntheticsGlobalVariable("test_variable", { * name: "EXAMPLE_VARIABLE", * description: "Description of the variable", * tags: [ * "foo:bar", * "env:test", * ], * value: "variable-value", * }); * // Write-Only Value (Recommended for Terraform 1.11+) * const secureVariable = new datadog.SyntheticsGlobalVariable("secure_variable", { * name: "SECURE_VARIABLE", * description: "Secure global variable with write-only value", * tags: [ * "foo:bar", * "env:production", * ], * secure: true, * valueWo: secretValue, * valueWoVersion: "1", * }); * const secretKeepers = { * rotationDate: "2024-02-15", * environment: "production", * securityPolicy: "v3.1", * }; * // Auto-generate version from keepers * const secretVersion = `rotation-${std.index.substr({ * input: std.index.md5({ * input: JSON.stringify(secretKeepers), * }).result, * length: 0, * offset: 8, * }).result}`; * const automatedRotation = new datadog.SyntheticsGlobalVariable("automated_rotation", { * name: "AUTO_ROTATED_VARIABLE", * description: "Variable with automated rotation", * tags: [ * "foo:bar", * "env:production", * ], * secure: true, * valueWo: secretValue, * valueWoVersion: secretVersion, * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * Synthetics global variables can be imported using their string ID, e.g. * * ```sh * $ pulumi import datadog:index/syntheticsGlobalVariable:SyntheticsGlobalVariable fizz abcde123-fghi-456-jkl-mnopqrstuv * ``` */ export declare class SyntheticsGlobalVariable extends pulumi.CustomResource { /** * Get an existing SyntheticsGlobalVariable 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?: SyntheticsGlobalVariableState, opts?: pulumi.CustomResourceOptions): SyntheticsGlobalVariable; /** * Returns true if the given object is an instance of SyntheticsGlobalVariable. 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 SyntheticsGlobalVariable; /** * Description of the global variable. Defaults to `""`. */ readonly description: pulumi.Output; /** * If set to true, the global variable is a FIDO variable. Defaults to `false`. */ readonly isFido: pulumi.Output; /** * If set to true, the global variable is a TOTP variable. Defaults to `false`. */ readonly isTotp: pulumi.Output; /** * Synthetics global variable name. Must be all uppercase with underscores. */ readonly name: pulumi.Output; /** * Additional options for the variable, such as a MFA token. */ readonly options: pulumi.Output; /** * Id of the Synthetics test to use for a variable from test. */ readonly parseTestId: pulumi.Output; /** * ID of the Synthetics test to use a source of the global variable value. */ readonly parseTestOptions: pulumi.Output; /** * A list of role identifiers to associate with the Synthetics global variable. **Deprecated.** This field is no longer supported by the Datadog API. Please use `datadog.RestrictionPolicy` instead. * * @deprecated This field is no longer supported by the Datadog API. Please use `datadog.RestrictionPolicy` instead. */ readonly restrictedRoles: pulumi.Output; /** * If set to true, the value of the global variable is hidden. This setting is automatically set to `true` if `isTotp` or `isFido` is set to `true`. Defaults to `false`. */ readonly secure: pulumi.Output; /** * A list of tags to associate with your synthetics global variable. */ readonly tags: pulumi.Output; /** * The value of the global variable. Required unless `isFido` is set to `true` or `valueWo` is used */ readonly value: pulumi.Output; /** * **NOTE:** This field is write-only and its value will not be updated in state as part of read operations. * Write-only value of the global variable. Must be used with `valueWoVersion`. */ readonly valueWo: pulumi.Output; /** * Version associated with the write-only value. Changing this triggers an update. Can be any string (e.g., '1', 'v2.1', '2024-Q1'). String length must be at least 1. */ readonly valueWoVersion: pulumi.Output; /** * Create a SyntheticsGlobalVariable 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: SyntheticsGlobalVariableArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering SyntheticsGlobalVariable resources. */ export interface SyntheticsGlobalVariableState { /** * Description of the global variable. Defaults to `""`. */ description?: pulumi.Input; /** * If set to true, the global variable is a FIDO variable. Defaults to `false`. */ isFido?: pulumi.Input; /** * If set to true, the global variable is a TOTP variable. Defaults to `false`. */ isTotp?: pulumi.Input; /** * Synthetics global variable name. Must be all uppercase with underscores. */ name?: pulumi.Input; /** * Additional options for the variable, such as a MFA token. */ options?: pulumi.Input; /** * Id of the Synthetics test to use for a variable from test. */ parseTestId?: pulumi.Input; /** * ID of the Synthetics test to use a source of the global variable value. */ parseTestOptions?: pulumi.Input; /** * A list of role identifiers to associate with the Synthetics global variable. **Deprecated.** This field is no longer supported by the Datadog API. Please use `datadog.RestrictionPolicy` instead. * * @deprecated This field is no longer supported by the Datadog API. Please use `datadog.RestrictionPolicy` instead. */ restrictedRoles?: pulumi.Input[]>; /** * If set to true, the value of the global variable is hidden. This setting is automatically set to `true` if `isTotp` or `isFido` is set to `true`. Defaults to `false`. */ secure?: pulumi.Input; /** * A list of tags to associate with your synthetics global variable. */ tags?: pulumi.Input[]>; /** * The value of the global variable. Required unless `isFido` is set to `true` or `valueWo` is used */ value?: pulumi.Input; /** * **NOTE:** This field is write-only and its value will not be updated in state as part of read operations. * Write-only value of the global variable. Must be used with `valueWoVersion`. */ valueWo?: pulumi.Input; /** * Version associated with the write-only value. Changing this triggers an update. Can be any string (e.g., '1', 'v2.1', '2024-Q1'). String length must be at least 1. */ valueWoVersion?: pulumi.Input; } /** * The set of arguments for constructing a SyntheticsGlobalVariable resource. */ export interface SyntheticsGlobalVariableArgs { /** * Description of the global variable. Defaults to `""`. */ description?: pulumi.Input; /** * If set to true, the global variable is a FIDO variable. Defaults to `false`. */ isFido?: pulumi.Input; /** * If set to true, the global variable is a TOTP variable. Defaults to `false`. */ isTotp?: pulumi.Input; /** * Synthetics global variable name. Must be all uppercase with underscores. */ name: pulumi.Input; /** * Additional options for the variable, such as a MFA token. */ options?: pulumi.Input; /** * Id of the Synthetics test to use for a variable from test. */ parseTestId?: pulumi.Input; /** * ID of the Synthetics test to use a source of the global variable value. */ parseTestOptions?: pulumi.Input; /** * A list of role identifiers to associate with the Synthetics global variable. **Deprecated.** This field is no longer supported by the Datadog API. Please use `datadog.RestrictionPolicy` instead. * * @deprecated This field is no longer supported by the Datadog API. Please use `datadog.RestrictionPolicy` instead. */ restrictedRoles?: pulumi.Input[]>; /** * If set to true, the value of the global variable is hidden. This setting is automatically set to `true` if `isTotp` or `isFido` is set to `true`. Defaults to `false`. */ secure?: pulumi.Input; /** * A list of tags to associate with your synthetics global variable. */ tags?: pulumi.Input[]>; /** * The value of the global variable. Required unless `isFido` is set to `true` or `valueWo` is used */ value?: pulumi.Input; /** * **NOTE:** This field is write-only and its value will not be updated in state as part of read operations. * Write-only value of the global variable. Must be used with `valueWoVersion`. */ valueWo?: pulumi.Input; /** * Version associated with the write-only value. Changing this triggers an update. Can be any string (e.g., '1', 'v2.1', '2024-Q1'). String length must be at least 1. */ valueWoVersion?: pulumi.Input; }