Package com.pulumi.gcp.securitycenter
Class EventThreatDetectionCustomModule
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.gcp.securitycenter.EventThreatDetectionCustomModule
-
public class EventThreatDetectionCustomModule extends com.pulumi.resources.CustomResource
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: * [API documentation](https://cloud.google.com/security-command-center/docs/reference/rest/v1/organizations.eventThreatDetectionSettings.customModules) * How-to Guides * [Overview of custom modules for Event Threat Detection](https://cloud.google.com/security-command-center/docs/custom-modules-etd-overview) ## Example Usage ### Scc Event Threat Detection Custom Module <!--Start PulumiCodeChooser --> ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.gcp.securitycenter.EventThreatDetectionCustomModule; import com.pulumi.gcp.securitycenter.EventThreatDetectionCustomModuleArgs; import static com.pulumi.codegen.internal.Serialization.*; import java.util.List; import java.util.ArrayList; import java.util.Map; import java.io.File; import java.nio.file.Files; import java.nio.file.Paths; public class App { public static void main(String[] args) { Pulumi.run(App::stack); } public static void stack(Context ctx) { var example = new EventThreatDetectionCustomModule("example", EventThreatDetectionCustomModuleArgs.builder() .organization("123456789") .displayName("basic_custom_module") .enablementState("ENABLED") .type("CONFIGURABLE_BAD_IP") .description("My Event Threat Detection Custom Module") .config(serializeJson( jsonObject( jsonProperty("metadata", jsonObject( jsonProperty("severity", "LOW"), jsonProperty("description", "Flagged by Forcepoint as malicious"), jsonProperty("recommendation", "Contact the owner of the relevant project.") )), jsonProperty("ips", jsonArray( "192.0.2.1", "192.0.2.0/24" )) ))) .build()); } } ``` <!--End PulumiCodeChooser --> ## 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: ```sh $ pulumi import gcp:securitycenter/eventThreatDetectionCustomModule:EventThreatDetectionCustomModule default organizations/{{organization}}/eventThreatDetectionSettings/customModules/{{name}} ``` ```sh $ pulumi import gcp:securitycenter/eventThreatDetectionCustomModule:EventThreatDetectionCustomModule default {{organization}}/{{name}} ```
-
-
Constructor Summary
Constructors Constructor Description EventThreatDetectionCustomModule(java.lang.String name)
EventThreatDetectionCustomModule(java.lang.String name, EventThreatDetectionCustomModuleArgs args)
EventThreatDetectionCustomModule(java.lang.String name, EventThreatDetectionCustomModuleArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.lang.String>
config()
com.pulumi.core.Output<java.util.Optional<java.lang.String>>
displayName()
com.pulumi.core.Output<java.lang.String>
enablementState()
static EventThreatDetectionCustomModule
get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, EventThreatDetectionCustomModuleState state, com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.lang.String>
lastEditor()
com.pulumi.core.Output<java.lang.String>
name()
com.pulumi.core.Output<java.lang.String>
organization()
com.pulumi.core.Output<java.lang.String>
type()
com.pulumi.core.Output<java.lang.String>
updateTime()
-
-
-
Constructor Detail
-
EventThreatDetectionCustomModule
public EventThreatDetectionCustomModule(java.lang.String name)
- Parameters:
name
- The _unique_ name of the resulting resource.
-
EventThreatDetectionCustomModule
public EventThreatDetectionCustomModule(java.lang.String name, EventThreatDetectionCustomModuleArgs args)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.
-
EventThreatDetectionCustomModule
public EventThreatDetectionCustomModule(java.lang.String name, EventThreatDetectionCustomModuleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.options
- A bag of options that control this resource's behavior.
-
-
Method Detail
-
config
public com.pulumi.core.Output<java.lang.String> config()
- Returns:
- 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
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> displayName()
- Returns:
- The human readable name to be displayed for the module.
-
enablementState
public com.pulumi.core.Output<java.lang.String> enablementState()
- Returns:
- The state of enablement for the module at the given level of the hierarchy. Possible values are: `ENABLED`, `DISABLED`.
-
lastEditor
public com.pulumi.core.Output<java.lang.String> lastEditor()
- Returns:
- The editor that last updated the custom module
-
name
public com.pulumi.core.Output<java.lang.String> name()
- Returns:
- The resource name of the Event Threat Detection custom module. Its format is "organizations/{organization}/eventThreatDetectionSettings/customModules/{module}".
-
organization
public com.pulumi.core.Output<java.lang.String> organization()
- Returns:
- Numerical ID of the parent organization. ***
-
type
public com.pulumi.core.Output<java.lang.String> type()
- Returns:
- Immutable. Type for the module. e.g. CONFIGURABLE_BAD_IP.
-
updateTime
public com.pulumi.core.Output<java.lang.String> updateTime()
- Returns:
- 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".
-
get
public static EventThreatDetectionCustomModule get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable EventThreatDetectionCustomModuleState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name
- The _unique_ name of the resulting resource.id
- The _unique_ provider ID of the resource to lookup.state
-options
- Optional settings to control the behavior of the CustomResource.
-
-