import * as pulumi from "@pulumi/pulumi"; /** * DNS Armor is a fully-managed service that provides DNS-layer security for your Google Cloud workloads. * * To get more information about DnsThreatDetector, see: * * * [API documentation](https://cloud.google.com/dns/docs/create-threat-detector) * * How-to Guides * * [DNS Threat Detector](https://cloud.google.com/dns/docs/threat-detection) * * ## Example Usage * * ### Network Security Dns Threat Detector Basic * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const foobar = new gcp.compute.Network("foobar", { * name: "my-vpc", * autoCreateSubnetworks: false, * }); * const _default = new gcp.networksecurity.DnsThreatDetector("default", { * name: "my-threat-detector", * location: "global", * threatDetectorProvider: "INFOBLOX", * excludedNetworks: [foobar.id], * labels: { * foo: "bar", * }, * }); * ``` * * ## Import * * DnsThreatDetector can be imported using any of these accepted formats: * * * `projects/{{project}}/locations/{{location}}/dnsThreatDetectors/{{name}}` * * * `{{project}}/{{location}}/{{name}}` * * * `{{location}}/{{name}}` * * * `{{name}}` * * When using the `pulumi import` command, DnsThreatDetector can be imported using one of the formats above. For example: * * ```sh * $ pulumi import gcp:networksecurity/dnsThreatDetector:DnsThreatDetector default projects/{{project}}/locations/{{location}}/dnsThreatDetectors/{{name}} * ``` * * ```sh * $ pulumi import gcp:networksecurity/dnsThreatDetector:DnsThreatDetector default {{project}}/{{location}}/{{name}} * ``` * * ```sh * $ pulumi import gcp:networksecurity/dnsThreatDetector:DnsThreatDetector default {{location}}/{{name}} * ``` * * ```sh * $ pulumi import gcp:networksecurity/dnsThreatDetector:DnsThreatDetector default {{name}} * ``` */ export declare class DnsThreatDetector extends pulumi.CustomResource { /** * Get an existing DnsThreatDetector 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?: DnsThreatDetectorState, opts?: pulumi.CustomResourceOptions): DnsThreatDetector; /** * Returns true if the given object is an instance of DnsThreatDetector. 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 DnsThreatDetector; /** * The timestamp when the resource was created. * A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. * Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z" */ readonly createTime: pulumi.Output; /** * All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services. */ readonly effectiveLabels: pulumi.Output<{ [key: string]: string; }>; /** * List of networks that are excluded from detection. Format: projects/{project}/global/networks/{name}. */ readonly excludedNetworks: pulumi.Output; /** * Set of label tags associated with the DNS Threat Detector resource. * An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }. * * **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. * Please refer to the field `effectiveLabels` for all of the labels present on the resource. */ readonly labels: pulumi.Output<{ [key: string]: string; } | undefined>; /** * The location of the DNS Threat Detector. The only supported value is `global`. */ readonly location: pulumi.Output; /** * Name of the DnsThreatDetector resource. */ readonly name: pulumi.Output; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ readonly project: pulumi.Output; /** * The combination of labels configured directly on the resource * and default labels configured on the provider. */ readonly pulumiLabels: pulumi.Output<{ [key: string]: string; }>; /** * DNS Threat Detection provider. The only supported value is `INFOBLOX`. */ readonly threatDetectorProvider: pulumi.Output; /** * The timestamp when the resource was updated. * A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. * Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z". */ readonly updateTime: pulumi.Output; /** * Create a DnsThreatDetector 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?: DnsThreatDetectorArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering DnsThreatDetector resources. */ export interface DnsThreatDetectorState { /** * The timestamp when the resource was created. * A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. * Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z" */ createTime?: pulumi.Input; /** * All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services. */ effectiveLabels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * List of networks that are excluded from detection. Format: projects/{project}/global/networks/{name}. */ excludedNetworks?: pulumi.Input[]>; /** * Set of label tags associated with the DNS Threat Detector resource. * An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }. * * **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. * Please refer to the field `effectiveLabels` for all of the labels present on the resource. */ labels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * The location of the DNS Threat Detector. The only supported value is `global`. */ location?: pulumi.Input; /** * Name of the DnsThreatDetector resource. */ name?: pulumi.Input; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ project?: pulumi.Input; /** * The combination of labels configured directly on the resource * and default labels configured on the provider. */ pulumiLabels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * DNS Threat Detection provider. The only supported value is `INFOBLOX`. */ threatDetectorProvider?: pulumi.Input; /** * The timestamp when the resource was updated. * A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. * Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z". */ updateTime?: pulumi.Input; } /** * The set of arguments for constructing a DnsThreatDetector resource. */ export interface DnsThreatDetectorArgs { /** * List of networks that are excluded from detection. Format: projects/{project}/global/networks/{name}. */ excludedNetworks?: pulumi.Input[]>; /** * Set of label tags associated with the DNS Threat Detector resource. * An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }. * * **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. * Please refer to the field `effectiveLabels` for all of the labels present on the resource. */ labels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * The location of the DNS Threat Detector. The only supported value is `global`. */ location?: pulumi.Input; /** * Name of the DnsThreatDetector resource. */ name?: pulumi.Input; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ project?: pulumi.Input; /** * DNS Threat Detection provider. The only supported value is `INFOBLOX`. */ threatDetectorProvider?: pulumi.Input; }