FindingsRefinementDeployment class
The FindingsRefinementDeployment resource represents the deployment state of a findings refinement.
To get more information about FindingsRefinementDeployment, see:
- API documentation
- How-to Guides
- Google SecOps Guides
Example Usage
Chronicle Findings Refinement Deployment Full
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
import * as std from "@pulumi/std";
const my_findings_refinement = new gcp.chronicle.FindingsRefinement("my-findings-refinement", {
location: "us",
instance: "00000000-0000-0000-0000-000000000000",
displayName: "findings_refinement_display_name",
type: "DETECTION_EXCLUSION",
query: "network.dns.response = true",
outcomeFilters: [{
outcomeVariable: "risk_score",
outcomeFilterOperator: "EQUAL",
outcomeValue: "value",
}],
});
const example = new gcp.chronicle.FindingsRefinementDeployment("example", {
location: "us",
instance: "00000000-0000-0000-0000-000000000000",
findingsRefinement: pulumi.all([std.split({
separator: "/",
text: googleChronicleFindingsRefinement["my-findings-refinement"].name,
}), std.split({
separator: "/",
text: googleChronicleFindingsRefinement["my-findings-refinement"].name,
}).then(invoke => invoke.result).length]).apply(([invoke, length]) => invoke.result[length - 1]).apply(x =>String(x)),
enabled: true,
archived: false,
});
import pulumi
import pulumi_gcp as gcp
import pulumi_std as std
my_findings_refinement = gcp.chronicle.FindingsRefinement("my-findings-refinement",
location="us",
instance="00000000-0000-0000-0000-000000000000",
display_name="findings_refinement_display_name",
type="DETECTION_EXCLUSION",
query="network.dns.response = true",
outcome_filters=[{
"outcome_variable": "risk_score",
"outcome_filter_operator": "EQUAL",
"outcome_value": "value",
}])
example = gcp.chronicle.FindingsRefinementDeployment("example",
location="us",
instance="00000000-0000-0000-0000-000000000000",
findings_refinement=len(std.split(separator="/",
text=google_chronicle_findings_refinement["my-findings-refinement"]["name"]).result).apply(lambda length: std.split(separator="/",
text=google_chronicle_findings_refinement["my-findings-refinement"]["name"]).result[int(length - 1)]).apply(lambda x: str(x)),
enabled=True,
archived=False)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
using Std = Pulumi.Std;
return await Deployment.RunAsync(() =>
{
var my_findings_refinement = new Gcp.Chronicle.FindingsRefinement("my-findings-refinement", new()
{
Location = "us",
Instance = "00000000-0000-0000-0000-000000000000",
DisplayName = "findings_refinement_display_name",
Type = "DETECTION_EXCLUSION",
Query = "network.dns.response = true",
OutcomeFilters = new[]
{
new Gcp.Chronicle.Inputs.FindingsRefinementOutcomeFilterArgs
{
OutcomeVariable = "risk_score",
OutcomeFilterOperator = "EQUAL",
OutcomeValue = "value",
},
},
});
var example = new Gcp.Chronicle.FindingsRefinementDeployment("example", new()
{
Location = "us",
Instance = "00000000-0000-0000-0000-000000000000",
FindingsRefinement = Output.Tuple(Std.Split.Invoke(new()
{
Separator = "/",
Text = googleChronicleFindingsRefinement.My_findings_refinement.Name,
}), Std.Split.Invoke(new()
{
Separator = "/",
Text = googleChronicleFindingsRefinement.My_findings_refinement.Name,
}).Apply(invoke => invoke.Result).Length()).Apply(values =>
{
var invoke = values.Item1;
var length = values.Item2;
return invoke.Result[(int)(length - 1)];
}).Apply(x => x.ToString(System.Globalization.CultureInfo.InvariantCulture)),
Enabled = true,
Archived = false,
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/chronicle"
"github.com/pulumi/pulumi-std/sdk/go/std"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := chronicle.NewFindingsRefinement(ctx, "my-findings-refinement", &chronicle.FindingsRefinementArgs{
Location: pulumi.String("us"),
Instance: pulumi.String("00000000-0000-0000-0000-000000000000"),
DisplayName: pulumi.String("findings_refinement_display_name"),
Type: pulumi.String("DETECTION_EXCLUSION"),
Query: pulumi.String("network.dns.response = true"),
OutcomeFilters: chronicle.FindingsRefinementOutcomeFilterArray{
&chronicle.FindingsRefinementOutcomeFilterArgs{
OutcomeVariable: pulumi.String("risk_score"),
OutcomeFilterOperator: pulumi.String("EQUAL"),
OutcomeValue: pulumi.String("value"),
},
},
})
if err != nil {
return err
}
invokeSplit, err := std.Split(ctx, &std.SplitArgs{
Separator: "/",
Text: googleChronicleFindingsRefinement.MyFindingsRefinement.Name,
}, nil)
if err != nil {
return err
}
invokeSplit1, err := std.Split(ctx, &std.SplitArgs{
Separator: "/",
Text: googleChronicleFindingsRefinement.MyFindingsRefinement.Name,
}, nil)
if err != nil {
return err
}
_, err = chronicle.NewFindingsRefinementDeployment(ctx, "example", &chronicle.FindingsRefinementDeploymentArgs{
Location: pulumi.String("us"),
Instance: pulumi.String("00000000-0000-0000-0000-000000000000"),
FindingsRefinement: pulumi.String(len(invokeSplit.Result).ApplyT(func(length int) (pulumi.Any, error) {
%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference)).(pulumi.AnyOutput)),
Enabled: pulumi.Bool(true),
Archived: pulumi.Bool(false),
})
if err != nil {
return err
}
return nil
})
}
pulumi {
required_providers {
gcp = {
source = "pulumi/gcp"
}
std = {
source = "pulumi/std"
}
}
}
resource "gcp_chronicle_findingsrefinement" "my-findings-refinement" {
location = "us"
instance = "00000000-0000-0000-0000-000000000000"
display_name = "findings_refinement_display_name"
type = "DETECTION_EXCLUSION"
query = "network.dns.response = true"
outcome_filters {
outcome_variable = "risk_score"
outcome_filter_operator = "EQUAL"
outcome_value = "value"
}
}
resource "gcp_chronicle_findingsrefinementdeployment" "example" {
location = "us"
instance = "00000000-0000-0000-0000-000000000000"
findings_refinement = element(split("/", googleChronicleFindingsRefinement.my-findings-refinement.name), length(split("/", googleChronicleFindingsRefinement.my-findings-refinement.name)) - 1)
enabled = "true"
archived = false
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.chronicle.FindingsRefinement;
import com.pulumi.gcp.chronicle.FindingsRefinementArgs;
import com.pulumi.gcp.chronicle.inputs.FindingsRefinementOutcomeFilterArgs;
import com.pulumi.gcp.chronicle.FindingsRefinementDeployment;
import com.pulumi.gcp.chronicle.FindingsRefinementDeploymentArgs;
import com.pulumi.std.StdFunctions;
import com.pulumi.std.inputs.SplitArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 my_findings_refinement = new FindingsRefinement("my-findings-refinement", FindingsRefinementArgs.builder()
.location("us")
.instance("00000000-0000-0000-0000-000000000000")
.displayName("findings_refinement_display_name")
.type("DETECTION_EXCLUSION")
.query("network.dns.response = true")
.outcomeFilters(FindingsRefinementOutcomeFilterArgs.builder()
.outcomeVariable("risk_score")
.outcomeFilterOperator("EQUAL")
.outcomeValue("value")
.build())
.build());
var example = new FindingsRefinementDeployment("example", FindingsRefinementDeploymentArgs.builder()
.location("us")
.instance("00000000-0000-0000-0000-000000000000")
.findingsRefinement(((String) StdFunctions.split(SplitArgs.builder()
.separator("/")
.text(googleChronicleFindingsRefinement.get("my-findings-refinement").get("name"))
.build()).result().size().applyValue(_length -> StdFunctions.split(SplitArgs.builder()
.separator("/")
.text(googleChronicleFindingsRefinement.get("my-findings-refinement").get("name"))
.build()).result()[_length - 1])))
.enabled(true)
.archived(false)
.build());
}
}
Import
FindingsRefinementDeployment can be imported using any of these accepted formats:
projects/{{project}}/locations/{{location}}/instances/{{instance}}/findingsRefinements/{{findings_refinement}}/deployment{{project}}/{{location}}/{{instance}}/{{findings_refinement}}{{location}}/{{instance}}/{{findings_refinement}}
When using the pulumi import command, FindingsRefinementDeployment can be imported using one of the formats above. For example:
$ pulumi import gcp:chronicle/findingsRefinementDeployment:FindingsRefinementDeployment default projects/{{project}}/locations/{{location}}/instances/{{instance}}/findingsRefinements/{{findings_refinement}}/deployment
$ pulumi import gcp:chronicle/findingsRefinementDeployment:FindingsRefinementDeployment default {{project}}/{{location}}/{{instance}}/{{findings_refinement}}
$ pulumi import gcp:chronicle/findingsRefinementDeployment:FindingsRefinementDeployment default {{location}}/{{instance}}/{{findings_refinement}}
Constructors
- FindingsRefinementDeployment(String name, {FindingsRefinementDeploymentArgs? args, CustomResourceOptions? options})
-
Creates a new FindingsRefinementDeployment.
nameThe Pulumi resource name.argsArguments used to configure this FindingsRefinementDeployment. The set of arguments for FindingsRefinementDeployment.optionsResource options controlling this resource's behavior. - FindingsRefinementDeployment.reference(String urn)
- Creates a typed reference to an existing FindingsRefinementDeployment resource.
Properties
-
archived
↔ Output<
bool?> -
The archive state of the findings refinement deployment.
Cannot be set to true unless enabled is set to false.
If currently set to true, enabled cannot be updated to true.
latefinal
-
childResources
→ Set<
Resource> -
finalinherited
-
completionSources
↔ Map<
String, IOutputCompletionSource> -
latefinalinherited
-
detectionExclusionApplication
↔ Output<
FindingsRefinementDeploymentDetectionExclusionApplication?> -
Describes the detectors a detection exclusion is applied to.
Structure is documented below.
latefinal
-
enabled
↔ Output<
bool?> -
Whether the findings refinement is currently deployed continuously against
incoming findings.
latefinal
-
findingsRefinement
↔ Output<
String> -
Resource ID segment making up resource
name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.latefinal - hashCode → int
-
The hash code for this object.
no setterinherited
-
id
↔ Output<
String> -
getter/setter pairinherited
-
instance
↔ Output<
String> -
Resource ID segment making up resource
name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.latefinal - isCustom → bool
-
Returns whether this resource is provider-managed.
no setterinherited
- isProtected → bool
-
Returns whether this resource is protected from deletion.
no setterinherited
- isRemote → bool
-
Whether this resource is registered as remote.
no setterinherited
- isResourceReference → bool
-
Whether this instance represents a resource value returned over RPC.
finalinherited
-
location
↔ Output<
String> -
Resource ID segment making up resource
name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.latefinal -
name
↔ Output<
String> -
The resource name of the findings refinement deployment.
Format:
projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}/deployment
latefinal
-
project
↔ Output<
String> -
The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
latefinal
-
resourceTransforms
→ List<
ResourceTransform> -
Inherited/explicit async transforms.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
transformations
→ List<
ResourceTransformation> -
Inherited/explicit legacy transformations.
no setterinherited
-
updateTime
↔ Output<
String> -
The timestamp when the findings refinement deployment was last updated.
latefinal
-
urn
↔ Output<
String> -
latefinalinherited
Methods
-
failId(
Object error) → void -
Completes this resource ID with an error when registration fails.
inherited
-
failOutputs(
Object error) → void -
Completes all output properties with
error.inherited -
failUrn(
Object error) → void -
Completes this resource URN with an error when registration fails.
inherited
-
getProvider(
String moduleMember) → ProviderResource? -
Returns provider for
moduleMember's package, if configured.inherited -
getResourceName(
) → String -
Returns this resource's logical name.
inherited
-
getResourceType(
) → String -
Returns this resource's Pulumi type token.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerOutput<
T> (String propertyName, {Object? decoder(Object?)?, bool isSecret = false}) → Output< T> -
Registers a dynamic output property for this resource.
inherited
-
resolveId(
String? value, {required bool isKnown}) → void -
Resolves the provider-assigned ID for this resource.
inherited
-
resolveOutputs(
Struct outputs) → void -
Resolves all output properties from a monitor response payload.
inherited
-
resolveUrn(
String value) → void -
Resolves this resource's URN once assigned by the engine.
inherited
-
serializeProperties(
Map< String, dynamic> properties) → Future<Struct> -
Serializes resource properties for RPC transmission.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
get(
String name, Input< String> id, {FindingsRefinementDeploymentState? state, CustomResourceOptions? options}) → FindingsRefinementDeployment -
Gets an existing FindingsRefinementDeployment resource's state with the given
nameandid.