1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. securitycenter
  5. EventThreatDetectionCustomModule
Google Cloud v8.26.0 published on Thursday, Apr 10, 2025 by Pulumi

gcp.securitycenter.EventThreatDetectionCustomModule

Explore with Pulumi AI

Represents an instance of an Event Threat Detection custom module, including its full module name, display name, enablement state, andlast updated time. You can create a custom module at the organization level only.

To get more information about EventThreatDetectionCustomModule, see:

Example Usage

Scc Event Threat Detection Custom Module

Coming soon!
Coming soon!
Coming soon!
Coming soon!
Coming soon!
resources:
  example:
    type: gcp:securitycenter:EventThreatDetectionCustomModule
    properties:
      organization: '123456789'
      displayName: basic_custom_module
      enablementState: ENABLED
      type: CONFIGURABLE_BAD_IP
      description: My Event Threat Detection Custom Module
      config:
        fn::toJSON:
          metadata:
            severity: LOW
            description: Flagged by Forcepoint as malicious
            recommendation: Contact the owner of the relevant project.
          ips:
            - 192.0.2.1
            - 192.0.2.0/24
Copy

Create EventThreatDetectionCustomModule Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new EventThreatDetectionCustomModule(name: string, args: EventThreatDetectionCustomModuleArgs, opts?: CustomResourceOptions);
@overload
def EventThreatDetectionCustomModule(resource_name: str,
                                     args: EventThreatDetectionCustomModuleArgs,
                                     opts: Optional[ResourceOptions] = None)

@overload
def EventThreatDetectionCustomModule(resource_name: str,
                                     opts: Optional[ResourceOptions] = None,
                                     config: Optional[str] = None,
                                     enablement_state: Optional[str] = None,
                                     organization: Optional[str] = None,
                                     type: Optional[str] = None,
                                     display_name: Optional[str] = None)
func NewEventThreatDetectionCustomModule(ctx *Context, name string, args EventThreatDetectionCustomModuleArgs, opts ...ResourceOption) (*EventThreatDetectionCustomModule, error)
public EventThreatDetectionCustomModule(string name, EventThreatDetectionCustomModuleArgs args, CustomResourceOptions? opts = null)
public EventThreatDetectionCustomModule(String name, EventThreatDetectionCustomModuleArgs args)
public EventThreatDetectionCustomModule(String name, EventThreatDetectionCustomModuleArgs args, CustomResourceOptions options)
type: gcp:securitycenter:EventThreatDetectionCustomModule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. EventThreatDetectionCustomModuleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. EventThreatDetectionCustomModuleArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. EventThreatDetectionCustomModuleArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. EventThreatDetectionCustomModuleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. EventThreatDetectionCustomModuleArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var eventThreatDetectionCustomModuleResource = new Gcp.SecurityCenter.EventThreatDetectionCustomModule("eventThreatDetectionCustomModuleResource", new()
{
    Config = "string",
    EnablementState = "string",
    Organization = "string",
    Type = "string",
    DisplayName = "string",
});
Copy
example, err := securitycenter.NewEventThreatDetectionCustomModule(ctx, "eventThreatDetectionCustomModuleResource", &securitycenter.EventThreatDetectionCustomModuleArgs{
	Config:          pulumi.String("string"),
	EnablementState: pulumi.String("string"),
	Organization:    pulumi.String("string"),
	Type:            pulumi.String("string"),
	DisplayName:     pulumi.String("string"),
})
Copy
var eventThreatDetectionCustomModuleResource = new EventThreatDetectionCustomModule("eventThreatDetectionCustomModuleResource", EventThreatDetectionCustomModuleArgs.builder()
    .config("string")
    .enablementState("string")
    .organization("string")
    .type("string")
    .displayName("string")
    .build());
Copy
event_threat_detection_custom_module_resource = gcp.securitycenter.EventThreatDetectionCustomModule("eventThreatDetectionCustomModuleResource",
    config="string",
    enablement_state="string",
    organization="string",
    type="string",
    display_name="string")
Copy
const eventThreatDetectionCustomModuleResource = new gcp.securitycenter.EventThreatDetectionCustomModule("eventThreatDetectionCustomModuleResource", {
    config: "string",
    enablementState: "string",
    organization: "string",
    type: "string",
    displayName: "string",
});
Copy
type: gcp:securitycenter:EventThreatDetectionCustomModule
properties:
    config: string
    displayName: string
    enablementState: string
    organization: string
    type: string
Copy

EventThreatDetectionCustomModule Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The EventThreatDetectionCustomModule resource accepts the following input properties:

Config This property is required. string
Config for the module. For the resident module, its config value is defined at this level. For the inherited module, its config value is inherited from the ancestor module.
EnablementState This property is required. string
The state of enablement for the module at the given level of the hierarchy. Possible values are: ENABLED, DISABLED.
Organization
This property is required.
Changes to this property will trigger replacement.
string
Numerical ID of the parent organization.


Type
This property is required.
Changes to this property will trigger replacement.
string
Immutable. Type for the module. e.g. CONFIGURABLE_BAD_IP.
DisplayName string
The human readable name to be displayed for the module.
Config This property is required. string
Config for the module. For the resident module, its config value is defined at this level. For the inherited module, its config value is inherited from the ancestor module.
EnablementState This property is required. string
The state of enablement for the module at the given level of the hierarchy. Possible values are: ENABLED, DISABLED.
Organization
This property is required.
Changes to this property will trigger replacement.
string
Numerical ID of the parent organization.


Type
This property is required.
Changes to this property will trigger replacement.
string
Immutable. Type for the module. e.g. CONFIGURABLE_BAD_IP.
DisplayName string
The human readable name to be displayed for the module.
config This property is required. String
Config for the module. For the resident module, its config value is defined at this level. For the inherited module, its config value is inherited from the ancestor module.
enablementState This property is required. String
The state of enablement for the module at the given level of the hierarchy. Possible values are: ENABLED, DISABLED.
organization
This property is required.
Changes to this property will trigger replacement.
String
Numerical ID of the parent organization.


type
This property is required.
Changes to this property will trigger replacement.
String
Immutable. Type for the module. e.g. CONFIGURABLE_BAD_IP.
displayName String
The human readable name to be displayed for the module.
config This property is required. string
Config for the module. For the resident module, its config value is defined at this level. For the inherited module, its config value is inherited from the ancestor module.
enablementState This property is required. string
The state of enablement for the module at the given level of the hierarchy. Possible values are: ENABLED, DISABLED.
organization
This property is required.
Changes to this property will trigger replacement.
string
Numerical ID of the parent organization.


type
This property is required.
Changes to this property will trigger replacement.
string
Immutable. Type for the module. e.g. CONFIGURABLE_BAD_IP.
displayName string
The human readable name to be displayed for the module.
config This property is required. str
Config for the module. For the resident module, its config value is defined at this level. For the inherited module, its config value is inherited from the ancestor module.
enablement_state This property is required. str
The state of enablement for the module at the given level of the hierarchy. Possible values are: ENABLED, DISABLED.
organization
This property is required.
Changes to this property will trigger replacement.
str
Numerical ID of the parent organization.


type
This property is required.
Changes to this property will trigger replacement.
str
Immutable. Type for the module. e.g. CONFIGURABLE_BAD_IP.
display_name str
The human readable name to be displayed for the module.
config This property is required. String
Config for the module. For the resident module, its config value is defined at this level. For the inherited module, its config value is inherited from the ancestor module.
enablementState This property is required. String
The state of enablement for the module at the given level of the hierarchy. Possible values are: ENABLED, DISABLED.
organization
This property is required.
Changes to this property will trigger replacement.
String
Numerical ID of the parent organization.


type
This property is required.
Changes to this property will trigger replacement.
String
Immutable. Type for the module. e.g. CONFIGURABLE_BAD_IP.
displayName String
The human readable name to be displayed for the module.

Outputs

All input properties are implicitly available as output properties. Additionally, the EventThreatDetectionCustomModule resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
LastEditor string
The editor that last updated the custom module
Name string
The resource name of the Event Threat Detection custom module. Its format is "organizations/{organization}/eventThreatDetectionSettings/customModules/{module}".
UpdateTime string
The time at which the custom module was last 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".
Id string
The provider-assigned unique ID for this managed resource.
LastEditor string
The editor that last updated the custom module
Name string
The resource name of the Event Threat Detection custom module. Its format is "organizations/{organization}/eventThreatDetectionSettings/customModules/{module}".
UpdateTime string
The time at which the custom module was last 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".
id String
The provider-assigned unique ID for this managed resource.
lastEditor String
The editor that last updated the custom module
name String
The resource name of the Event Threat Detection custom module. Its format is "organizations/{organization}/eventThreatDetectionSettings/customModules/{module}".
updateTime String
The time at which the custom module was last 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".
id string
The provider-assigned unique ID for this managed resource.
lastEditor string
The editor that last updated the custom module
name string
The resource name of the Event Threat Detection custom module. Its format is "organizations/{organization}/eventThreatDetectionSettings/customModules/{module}".
updateTime string
The time at which the custom module was last 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".
id str
The provider-assigned unique ID for this managed resource.
last_editor str
The editor that last updated the custom module
name str
The resource name of the Event Threat Detection custom module. Its format is "organizations/{organization}/eventThreatDetectionSettings/customModules/{module}".
update_time str
The time at which the custom module was last 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".
id String
The provider-assigned unique ID for this managed resource.
lastEditor String
The editor that last updated the custom module
name String
The resource name of the Event Threat Detection custom module. Its format is "organizations/{organization}/eventThreatDetectionSettings/customModules/{module}".
updateTime String
The time at which the custom module was last 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".

Look up Existing EventThreatDetectionCustomModule Resource

Get an existing EventThreatDetectionCustomModule resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: EventThreatDetectionCustomModuleState, opts?: CustomResourceOptions): EventThreatDetectionCustomModule
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        config: Optional[str] = None,
        display_name: Optional[str] = None,
        enablement_state: Optional[str] = None,
        last_editor: Optional[str] = None,
        name: Optional[str] = None,
        organization: Optional[str] = None,
        type: Optional[str] = None,
        update_time: Optional[str] = None) -> EventThreatDetectionCustomModule
func GetEventThreatDetectionCustomModule(ctx *Context, name string, id IDInput, state *EventThreatDetectionCustomModuleState, opts ...ResourceOption) (*EventThreatDetectionCustomModule, error)
public static EventThreatDetectionCustomModule Get(string name, Input<string> id, EventThreatDetectionCustomModuleState? state, CustomResourceOptions? opts = null)
public static EventThreatDetectionCustomModule get(String name, Output<String> id, EventThreatDetectionCustomModuleState state, CustomResourceOptions options)
resources:  _:    type: gcp:securitycenter:EventThreatDetectionCustomModule    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Config string
Config for the module. For the resident module, its config value is defined at this level. For the inherited module, its config value is inherited from the ancestor module.
DisplayName string
The human readable name to be displayed for the module.
EnablementState string
The state of enablement for the module at the given level of the hierarchy. Possible values are: ENABLED, DISABLED.
LastEditor string
The editor that last updated the custom module
Name string
The resource name of the Event Threat Detection custom module. Its format is "organizations/{organization}/eventThreatDetectionSettings/customModules/{module}".
Organization Changes to this property will trigger replacement. string
Numerical ID of the parent organization.


Type Changes to this property will trigger replacement. string
Immutable. Type for the module. e.g. CONFIGURABLE_BAD_IP.
UpdateTime string
The time at which the custom module was last 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".
Config string
Config for the module. For the resident module, its config value is defined at this level. For the inherited module, its config value is inherited from the ancestor module.
DisplayName string
The human readable name to be displayed for the module.
EnablementState string
The state of enablement for the module at the given level of the hierarchy. Possible values are: ENABLED, DISABLED.
LastEditor string
The editor that last updated the custom module
Name string
The resource name of the Event Threat Detection custom module. Its format is "organizations/{organization}/eventThreatDetectionSettings/customModules/{module}".
Organization Changes to this property will trigger replacement. string
Numerical ID of the parent organization.


Type Changes to this property will trigger replacement. string
Immutable. Type for the module. e.g. CONFIGURABLE_BAD_IP.
UpdateTime string
The time at which the custom module was last 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".
config String
Config for the module. For the resident module, its config value is defined at this level. For the inherited module, its config value is inherited from the ancestor module.
displayName String
The human readable name to be displayed for the module.
enablementState String
The state of enablement for the module at the given level of the hierarchy. Possible values are: ENABLED, DISABLED.
lastEditor String
The editor that last updated the custom module
name String
The resource name of the Event Threat Detection custom module. Its format is "organizations/{organization}/eventThreatDetectionSettings/customModules/{module}".
organization Changes to this property will trigger replacement. String
Numerical ID of the parent organization.


type Changes to this property will trigger replacement. String
Immutable. Type for the module. e.g. CONFIGURABLE_BAD_IP.
updateTime String
The time at which the custom module was last 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".
config string
Config for the module. For the resident module, its config value is defined at this level. For the inherited module, its config value is inherited from the ancestor module.
displayName string
The human readable name to be displayed for the module.
enablementState string
The state of enablement for the module at the given level of the hierarchy. Possible values are: ENABLED, DISABLED.
lastEditor string
The editor that last updated the custom module
name string
The resource name of the Event Threat Detection custom module. Its format is "organizations/{organization}/eventThreatDetectionSettings/customModules/{module}".
organization Changes to this property will trigger replacement. string
Numerical ID of the parent organization.


type Changes to this property will trigger replacement. string
Immutable. Type for the module. e.g. CONFIGURABLE_BAD_IP.
updateTime string
The time at which the custom module was last 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".
config str
Config for the module. For the resident module, its config value is defined at this level. For the inherited module, its config value is inherited from the ancestor module.
display_name str
The human readable name to be displayed for the module.
enablement_state str
The state of enablement for the module at the given level of the hierarchy. Possible values are: ENABLED, DISABLED.
last_editor str
The editor that last updated the custom module
name str
The resource name of the Event Threat Detection custom module. Its format is "organizations/{organization}/eventThreatDetectionSettings/customModules/{module}".
organization Changes to this property will trigger replacement. str
Numerical ID of the parent organization.


type Changes to this property will trigger replacement. str
Immutable. Type for the module. e.g. CONFIGURABLE_BAD_IP.
update_time str
The time at which the custom module was last 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".
config String
Config for the module. For the resident module, its config value is defined at this level. For the inherited module, its config value is inherited from the ancestor module.
displayName String
The human readable name to be displayed for the module.
enablementState String
The state of enablement for the module at the given level of the hierarchy. Possible values are: ENABLED, DISABLED.
lastEditor String
The editor that last updated the custom module
name String
The resource name of the Event Threat Detection custom module. Its format is "organizations/{organization}/eventThreatDetectionSettings/customModules/{module}".
organization Changes to this property will trigger replacement. String
Numerical ID of the parent organization.


type Changes to this property will trigger replacement. String
Immutable. Type for the module. e.g. CONFIGURABLE_BAD_IP.
updateTime String
The time at which the custom module was last 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".

Import

EventThreatDetectionCustomModule can be imported using any of these accepted formats:

  • organizations/{{organization}}/eventThreatDetectionSettings/customModules/{{name}}

  • {{organization}}/{{name}}

When using the pulumi import command, EventThreatDetectionCustomModule can be imported using one of the formats above. For example:

$ pulumi import gcp:securitycenter/eventThreatDetectionCustomModule:EventThreatDetectionCustomModule default organizations/{{organization}}/eventThreatDetectionSettings/customModules/{{name}}
Copy
$ pulumi import gcp:securitycenter/eventThreatDetectionCustomModule:EventThreatDetectionCustomModule default {{organization}}/{{name}}
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Google Cloud (GCP) Classic pulumi/pulumi-gcp
License
Apache-2.0
Notes
This Pulumi package is based on the google-beta Terraform Provider.