import * as pulumi from "@pulumi/pulumi"; /** * Cloud IDS is an intrusion detection service that provides threat detection for intrusions, malware, spyware, and command-and-control attacks on your network. * * To get more information about Endpoint, see: * * * [API documentation](https://cloud.google.com/intrusion-detection-system/docs/configuring-ids) * * ## Example Usage * * ### Cloudids Endpoint * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const _default = new gcp.compute.Network("default", {name: "tf-test-my-network"}); * const serviceRange = new gcp.compute.GlobalAddress("service_range", { * name: "address", * purpose: "VPC_PEERING", * addressType: "INTERNAL", * prefixLength: 16, * network: _default.id, * }); * const privateServiceConnection = new gcp.servicenetworking.Connection("private_service_connection", { * network: _default.id, * service: "servicenetworking.googleapis.com", * reservedPeeringRanges: [serviceRange.name], * }); * const example_endpoint = new gcp.cloudids.Endpoint("example-endpoint", { * name: "test", * location: "us-central1-f", * network: _default.id, * severity: "INFORMATIONAL", * }, { * dependsOn: [privateServiceConnection], * }); * ``` * * ## Import * * Endpoint can be imported using any of these accepted formats: * * * `projects/{{project}}/locations/{{location}}/endpoints/{{name}}` * * `{{project}}/{{location}}/{{name}}` * * `{{location}}/{{name}}` * * When using the `pulumi import` command, Endpoint can be imported using one of the formats above. For example: * * ```sh * $ pulumi import gcp:cloudids/endpoint:Endpoint default projects/{{project}}/locations/{{location}}/endpoints/{{name}} * $ pulumi import gcp:cloudids/endpoint:Endpoint default {{project}}/{{location}}/{{name}} * $ pulumi import gcp:cloudids/endpoint:Endpoint default {{location}}/{{name}} * ``` */ export declare class Endpoint extends pulumi.CustomResource { /** * Get an existing Endpoint 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?: EndpointState, opts?: pulumi.CustomResourceOptions): Endpoint; /** * Returns true if the given object is an instance of Endpoint. 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 Endpoint; /** * Creation timestamp in RFC 3339 text format. */ readonly createTime: pulumi.Output; /** * An optional description of the endpoint. */ readonly description: pulumi.Output; /** * URL of the endpoint's network address to which traffic is to be sent by Packet Mirroring. */ readonly endpointForwardingRule: pulumi.Output; /** * Internal IP address of the endpoint's network entry point. */ readonly endpointIp: pulumi.Output; /** * The location for the endpoint. */ readonly location: pulumi.Output; /** * Name of the endpoint in the format projects/{project_id}/locations/{locationId}/endpoints/{endpointId}. */ readonly name: pulumi.Output; /** * Name of the VPC network that is connected to the IDS endpoint. This can either contain the VPC network name itself (like "src-net") or the full URL to the network (like "projects/{project_id}/global/networks/src-net"). */ readonly network: 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 minimum alert severity level that is reported by the endpoint. * Possible values are: `INFORMATIONAL`, `LOW`, `MEDIUM`, `HIGH`, `CRITICAL`. */ readonly severity: pulumi.Output; /** * Configuration for threat IDs excluded from generating alerts. Limit: 99 IDs. */ readonly threatExceptions: pulumi.Output; /** * Last update timestamp in RFC 3339 text format. */ readonly updateTime: pulumi.Output; /** * Create a Endpoint 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: EndpointArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Endpoint resources. */ export interface EndpointState { /** * Creation timestamp in RFC 3339 text format. */ createTime?: pulumi.Input; /** * An optional description of the endpoint. */ description?: pulumi.Input; /** * URL of the endpoint's network address to which traffic is to be sent by Packet Mirroring. */ endpointForwardingRule?: pulumi.Input; /** * Internal IP address of the endpoint's network entry point. */ endpointIp?: pulumi.Input; /** * The location for the endpoint. */ location?: pulumi.Input; /** * Name of the endpoint in the format projects/{project_id}/locations/{locationId}/endpoints/{endpointId}. */ name?: pulumi.Input; /** * Name of the VPC network that is connected to the IDS endpoint. This can either contain the VPC network name itself (like "src-net") or the full URL to the network (like "projects/{project_id}/global/networks/src-net"). */ network?: 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 minimum alert severity level that is reported by the endpoint. * Possible values are: `INFORMATIONAL`, `LOW`, `MEDIUM`, `HIGH`, `CRITICAL`. */ severity?: pulumi.Input; /** * Configuration for threat IDs excluded from generating alerts. Limit: 99 IDs. */ threatExceptions?: pulumi.Input[]>; /** * Last update timestamp in RFC 3339 text format. */ updateTime?: pulumi.Input; } /** * The set of arguments for constructing a Endpoint resource. */ export interface EndpointArgs { /** * An optional description of the endpoint. */ description?: pulumi.Input; /** * The location for the endpoint. */ location: pulumi.Input; /** * Name of the endpoint in the format projects/{project_id}/locations/{locationId}/endpoints/{endpointId}. */ name?: pulumi.Input; /** * Name of the VPC network that is connected to the IDS endpoint. This can either contain the VPC network name itself (like "src-net") or the full URL to the network (like "projects/{project_id}/global/networks/src-net"). */ network: 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 minimum alert severity level that is reported by the endpoint. * Possible values are: `INFORMATIONAL`, `LOW`, `MEDIUM`, `HIGH`, `CRITICAL`. */ severity: pulumi.Input; /** * Configuration for threat IDs excluded from generating alerts. Limit: 99 IDs. */ threatExceptions?: pulumi.Input[]>; }