gcp.securitycenter.V2FolderMuteConfig
Explore with Pulumi AI
Mute Findings is a volume management feature in Security Command Center that lets you manually or programmatically hide irrelevant findings, and create filters to automatically silence existing and future findings based on criteria you specify.
To get more information about FolderMuteConfig, see:
Example Usage
Scc V2 Folder Mute Config Basic
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const folder = new gcp.organizations.Folder("folder", {
parent: "organizations/123456789",
displayName: "folder-name",
});
const _default = new gcp.securitycenter.V2FolderMuteConfig("default", {
muteConfigId: "my-config",
folder: folder.folderId,
location: "global",
description: "My custom Cloud Security Command Center Finding Folder mute Configuration",
filter: "severity = \"HIGH\"",
type: "STATIC",
});
import pulumi
import pulumi_gcp as gcp
folder = gcp.organizations.Folder("folder",
parent="organizations/123456789",
display_name="folder-name")
default = gcp.securitycenter.V2FolderMuteConfig("default",
mute_config_id="my-config",
folder=folder.folder_id,
location="global",
description="My custom Cloud Security Command Center Finding Folder mute Configuration",
filter="severity = \"HIGH\"",
type="STATIC")
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/organizations"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/securitycenter"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
folder, err := organizations.NewFolder(ctx, "folder", &organizations.FolderArgs{
Parent: pulumi.String("organizations/123456789"),
DisplayName: pulumi.String("folder-name"),
})
if err != nil {
return err
}
_, err = securitycenter.NewV2FolderMuteConfig(ctx, "default", &securitycenter.V2FolderMuteConfigArgs{
MuteConfigId: pulumi.String("my-config"),
Folder: folder.FolderId,
Location: pulumi.String("global"),
Description: pulumi.String("My custom Cloud Security Command Center Finding Folder mute Configuration"),
Filter: pulumi.String("severity = \"HIGH\""),
Type: pulumi.String("STATIC"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var folder = new Gcp.Organizations.Folder("folder", new()
{
Parent = "organizations/123456789",
DisplayName = "folder-name",
});
var @default = new Gcp.SecurityCenter.V2FolderMuteConfig("default", new()
{
MuteConfigId = "my-config",
Folder = folder.FolderId,
Location = "global",
Description = "My custom Cloud Security Command Center Finding Folder mute Configuration",
Filter = "severity = \"HIGH\"",
Type = "STATIC",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.organizations.Folder;
import com.pulumi.gcp.organizations.FolderArgs;
import com.pulumi.gcp.securitycenter.V2FolderMuteConfig;
import com.pulumi.gcp.securitycenter.V2FolderMuteConfigArgs;
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 folder = new Folder("folder", FolderArgs.builder()
.parent("organizations/123456789")
.displayName("folder-name")
.build());
var default_ = new V2FolderMuteConfig("default", V2FolderMuteConfigArgs.builder()
.muteConfigId("my-config")
.folder(folder.folderId())
.location("global")
.description("My custom Cloud Security Command Center Finding Folder mute Configuration")
.filter("severity = \"HIGH\"")
.type("STATIC")
.build());
}
}
resources:
folder:
type: gcp:organizations:Folder
properties:
parent: organizations/123456789
displayName: folder-name
default:
type: gcp:securitycenter:V2FolderMuteConfig
properties:
muteConfigId: my-config
folder: ${folder.folderId}
location: global
description: My custom Cloud Security Command Center Finding Folder mute Configuration
filter: severity = "HIGH"
type: STATIC
Create V2FolderMuteConfig Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new V2FolderMuteConfig(name: string, args: V2FolderMuteConfigArgs, opts?: CustomResourceOptions);
@overload
def V2FolderMuteConfig(resource_name: str,
args: V2FolderMuteConfigArgs,
opts: Optional[ResourceOptions] = None)
@overload
def V2FolderMuteConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
filter: Optional[str] = None,
folder: Optional[str] = None,
mute_config_id: Optional[str] = None,
type: Optional[str] = None,
description: Optional[str] = None,
location: Optional[str] = None)
func NewV2FolderMuteConfig(ctx *Context, name string, args V2FolderMuteConfigArgs, opts ...ResourceOption) (*V2FolderMuteConfig, error)
public V2FolderMuteConfig(string name, V2FolderMuteConfigArgs args, CustomResourceOptions? opts = null)
public V2FolderMuteConfig(String name, V2FolderMuteConfigArgs args)
public V2FolderMuteConfig(String name, V2FolderMuteConfigArgs args, CustomResourceOptions options)
type: gcp:securitycenter:V2FolderMuteConfig
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args V2FolderMuteConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args V2FolderMuteConfigArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args V2FolderMuteConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args V2FolderMuteConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args V2FolderMuteConfigArgs
- 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 v2folderMuteConfigResource = new Gcp.SecurityCenter.V2FolderMuteConfig("v2folderMuteConfigResource", new()
{
Filter = "string",
Folder = "string",
MuteConfigId = "string",
Type = "string",
Description = "string",
Location = "string",
});
example, err := securitycenter.NewV2FolderMuteConfig(ctx, "v2folderMuteConfigResource", &securitycenter.V2FolderMuteConfigArgs{
Filter: pulumi.String("string"),
Folder: pulumi.String("string"),
MuteConfigId: pulumi.String("string"),
Type: pulumi.String("string"),
Description: pulumi.String("string"),
Location: pulumi.String("string"),
})
var v2folderMuteConfigResource = new V2FolderMuteConfig("v2folderMuteConfigResource", V2FolderMuteConfigArgs.builder()
.filter("string")
.folder("string")
.muteConfigId("string")
.type("string")
.description("string")
.location("string")
.build());
v2folder_mute_config_resource = gcp.securitycenter.V2FolderMuteConfig("v2folderMuteConfigResource",
filter="string",
folder="string",
mute_config_id="string",
type="string",
description="string",
location="string")
const v2folderMuteConfigResource = new gcp.securitycenter.V2FolderMuteConfig("v2folderMuteConfigResource", {
filter: "string",
folder: "string",
muteConfigId: "string",
type: "string",
description: "string",
location: "string",
});
type: gcp:securitycenter:V2FolderMuteConfig
properties:
description: string
filter: string
folder: string
location: string
muteConfigId: string
type: string
V2FolderMuteConfig Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The V2FolderMuteConfig resource accepts the following input properties:
- Filter string
- An expression that defines the filter to apply across create/update events of findings. While creating a filter string, be mindful of the scope in which the mute configuration is being created. E.g., If a filter contains project = X but is created under the project = Y scope, it might not match any findings.
- Folder string
- The folder whose Cloud Security Command Center the Mute Config lives in.
- Mute
Config stringId - Unique identifier provided by the client within the parent scope.
- Type string
- The type of the mute config.
- Description string
- A description of the mute config.
- Location string
- location Id is provided by folder. If not provided, Use global as default.
- Filter string
- An expression that defines the filter to apply across create/update events of findings. While creating a filter string, be mindful of the scope in which the mute configuration is being created. E.g., If a filter contains project = X but is created under the project = Y scope, it might not match any findings.
- Folder string
- The folder whose Cloud Security Command Center the Mute Config lives in.
- Mute
Config stringId - Unique identifier provided by the client within the parent scope.
- Type string
- The type of the mute config.
- Description string
- A description of the mute config.
- Location string
- location Id is provided by folder. If not provided, Use global as default.
- filter String
- An expression that defines the filter to apply across create/update events of findings. While creating a filter string, be mindful of the scope in which the mute configuration is being created. E.g., If a filter contains project = X but is created under the project = Y scope, it might not match any findings.
- folder String
- The folder whose Cloud Security Command Center the Mute Config lives in.
- mute
Config StringId - Unique identifier provided by the client within the parent scope.
- type String
- The type of the mute config.
- description String
- A description of the mute config.
- location String
- location Id is provided by folder. If not provided, Use global as default.
- filter string
- An expression that defines the filter to apply across create/update events of findings. While creating a filter string, be mindful of the scope in which the mute configuration is being created. E.g., If a filter contains project = X but is created under the project = Y scope, it might not match any findings.
- folder string
- The folder whose Cloud Security Command Center the Mute Config lives in.
- mute
Config stringId - Unique identifier provided by the client within the parent scope.
- type string
- The type of the mute config.
- description string
- A description of the mute config.
- location string
- location Id is provided by folder. If not provided, Use global as default.
- filter str
- An expression that defines the filter to apply across create/update events of findings. While creating a filter string, be mindful of the scope in which the mute configuration is being created. E.g., If a filter contains project = X but is created under the project = Y scope, it might not match any findings.
- folder str
- The folder whose Cloud Security Command Center the Mute Config lives in.
- mute_
config_ strid - Unique identifier provided by the client within the parent scope.
- type str
- The type of the mute config.
- description str
- A description of the mute config.
- location str
- location Id is provided by folder. If not provided, Use global as default.
- filter String
- An expression that defines the filter to apply across create/update events of findings. While creating a filter string, be mindful of the scope in which the mute configuration is being created. E.g., If a filter contains project = X but is created under the project = Y scope, it might not match any findings.
- folder String
- The folder whose Cloud Security Command Center the Mute Config lives in.
- mute
Config StringId - Unique identifier provided by the client within the parent scope.
- type String
- The type of the mute config.
- description String
- A description of the mute config.
- location String
- location Id is provided by folder. If not provided, Use global as default.
Outputs
All input properties are implicitly available as output properties. Additionally, the V2FolderMuteConfig resource produces the following output properties:
- Create
Time string - The time at which the mute config was created. This field is set by the server and will be ignored if provided on config creation.
- Id string
- The provider-assigned unique ID for this managed resource.
- Most
Recent stringEditor - Email address of the user who last edited the mute config. This field is set by the server and will be ignored if provided on config creation or update.
- Name string
- Name of the mute config. Its format is organizations/{organization}/locations/global/muteConfigs/{configId}, folders/{folder}/locations/global/muteConfigs/{configId}, or projects/{project}/locations/global/muteConfigs/{configId}
- Update
Time string - Output only. The most recent time at which the mute config was updated. This field is set by the server and will be ignored if provided on config creation or update.
- Create
Time string - The time at which the mute config was created. This field is set by the server and will be ignored if provided on config creation.
- Id string
- The provider-assigned unique ID for this managed resource.
- Most
Recent stringEditor - Email address of the user who last edited the mute config. This field is set by the server and will be ignored if provided on config creation or update.
- Name string
- Name of the mute config. Its format is organizations/{organization}/locations/global/muteConfigs/{configId}, folders/{folder}/locations/global/muteConfigs/{configId}, or projects/{project}/locations/global/muteConfigs/{configId}
- Update
Time string - Output only. The most recent time at which the mute config was updated. This field is set by the server and will be ignored if provided on config creation or update.
- create
Time String - The time at which the mute config was created. This field is set by the server and will be ignored if provided on config creation.
- id String
- The provider-assigned unique ID for this managed resource.
- most
Recent StringEditor - Email address of the user who last edited the mute config. This field is set by the server and will be ignored if provided on config creation or update.
- name String
- Name of the mute config. Its format is organizations/{organization}/locations/global/muteConfigs/{configId}, folders/{folder}/locations/global/muteConfigs/{configId}, or projects/{project}/locations/global/muteConfigs/{configId}
- update
Time String - Output only. The most recent time at which the mute config was updated. This field is set by the server and will be ignored if provided on config creation or update.
- create
Time string - The time at which the mute config was created. This field is set by the server and will be ignored if provided on config creation.
- id string
- The provider-assigned unique ID for this managed resource.
- most
Recent stringEditor - Email address of the user who last edited the mute config. This field is set by the server and will be ignored if provided on config creation or update.
- name string
- Name of the mute config. Its format is organizations/{organization}/locations/global/muteConfigs/{configId}, folders/{folder}/locations/global/muteConfigs/{configId}, or projects/{project}/locations/global/muteConfigs/{configId}
- update
Time string - Output only. The most recent time at which the mute config was updated. This field is set by the server and will be ignored if provided on config creation or update.
- create_
time str - The time at which the mute config was created. This field is set by the server and will be ignored if provided on config creation.
- id str
- The provider-assigned unique ID for this managed resource.
- most_
recent_ streditor - Email address of the user who last edited the mute config. This field is set by the server and will be ignored if provided on config creation or update.
- name str
- Name of the mute config. Its format is organizations/{organization}/locations/global/muteConfigs/{configId}, folders/{folder}/locations/global/muteConfigs/{configId}, or projects/{project}/locations/global/muteConfigs/{configId}
- update_
time str - Output only. The most recent time at which the mute config was updated. This field is set by the server and will be ignored if provided on config creation or update.
- create
Time String - The time at which the mute config was created. This field is set by the server and will be ignored if provided on config creation.
- id String
- The provider-assigned unique ID for this managed resource.
- most
Recent StringEditor - Email address of the user who last edited the mute config. This field is set by the server and will be ignored if provided on config creation or update.
- name String
- Name of the mute config. Its format is organizations/{organization}/locations/global/muteConfigs/{configId}, folders/{folder}/locations/global/muteConfigs/{configId}, or projects/{project}/locations/global/muteConfigs/{configId}
- update
Time String - Output only. The most recent time at which the mute config was updated. This field is set by the server and will be ignored if provided on config creation or update.
Look up Existing V2FolderMuteConfig Resource
Get an existing V2FolderMuteConfig 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?: V2FolderMuteConfigState, opts?: CustomResourceOptions): V2FolderMuteConfig
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
create_time: Optional[str] = None,
description: Optional[str] = None,
filter: Optional[str] = None,
folder: Optional[str] = None,
location: Optional[str] = None,
most_recent_editor: Optional[str] = None,
mute_config_id: Optional[str] = None,
name: Optional[str] = None,
type: Optional[str] = None,
update_time: Optional[str] = None) -> V2FolderMuteConfig
func GetV2FolderMuteConfig(ctx *Context, name string, id IDInput, state *V2FolderMuteConfigState, opts ...ResourceOption) (*V2FolderMuteConfig, error)
public static V2FolderMuteConfig Get(string name, Input<string> id, V2FolderMuteConfigState? state, CustomResourceOptions? opts = null)
public static V2FolderMuteConfig get(String name, Output<String> id, V2FolderMuteConfigState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
- Create
Time string - The time at which the mute config was created. This field is set by the server and will be ignored if provided on config creation.
- Description string
- A description of the mute config.
- Filter string
- An expression that defines the filter to apply across create/update events of findings. While creating a filter string, be mindful of the scope in which the mute configuration is being created. E.g., If a filter contains project = X but is created under the project = Y scope, it might not match any findings.
- Folder string
- The folder whose Cloud Security Command Center the Mute Config lives in.
- Location string
- location Id is provided by folder. If not provided, Use global as default.
- Most
Recent stringEditor - Email address of the user who last edited the mute config. This field is set by the server and will be ignored if provided on config creation or update.
- Mute
Config stringId - Unique identifier provided by the client within the parent scope.
- Name string
- Name of the mute config. Its format is organizations/{organization}/locations/global/muteConfigs/{configId}, folders/{folder}/locations/global/muteConfigs/{configId}, or projects/{project}/locations/global/muteConfigs/{configId}
- Type string
- The type of the mute config.
- Update
Time string - Output only. The most recent time at which the mute config was updated. This field is set by the server and will be ignored if provided on config creation or update.
- Create
Time string - The time at which the mute config was created. This field is set by the server and will be ignored if provided on config creation.
- Description string
- A description of the mute config.
- Filter string
- An expression that defines the filter to apply across create/update events of findings. While creating a filter string, be mindful of the scope in which the mute configuration is being created. E.g., If a filter contains project = X but is created under the project = Y scope, it might not match any findings.
- Folder string
- The folder whose Cloud Security Command Center the Mute Config lives in.
- Location string
- location Id is provided by folder. If not provided, Use global as default.
- Most
Recent stringEditor - Email address of the user who last edited the mute config. This field is set by the server and will be ignored if provided on config creation or update.
- Mute
Config stringId - Unique identifier provided by the client within the parent scope.
- Name string
- Name of the mute config. Its format is organizations/{organization}/locations/global/muteConfigs/{configId}, folders/{folder}/locations/global/muteConfigs/{configId}, or projects/{project}/locations/global/muteConfigs/{configId}
- Type string
- The type of the mute config.
- Update
Time string - Output only. The most recent time at which the mute config was updated. This field is set by the server and will be ignored if provided on config creation or update.
- create
Time String - The time at which the mute config was created. This field is set by the server and will be ignored if provided on config creation.
- description String
- A description of the mute config.
- filter String
- An expression that defines the filter to apply across create/update events of findings. While creating a filter string, be mindful of the scope in which the mute configuration is being created. E.g., If a filter contains project = X but is created under the project = Y scope, it might not match any findings.
- folder String
- The folder whose Cloud Security Command Center the Mute Config lives in.
- location String
- location Id is provided by folder. If not provided, Use global as default.
- most
Recent StringEditor - Email address of the user who last edited the mute config. This field is set by the server and will be ignored if provided on config creation or update.
- mute
Config StringId - Unique identifier provided by the client within the parent scope.
- name String
- Name of the mute config. Its format is organizations/{organization}/locations/global/muteConfigs/{configId}, folders/{folder}/locations/global/muteConfigs/{configId}, or projects/{project}/locations/global/muteConfigs/{configId}
- type String
- The type of the mute config.
- update
Time String - Output only. The most recent time at which the mute config was updated. This field is set by the server and will be ignored if provided on config creation or update.
- create
Time string - The time at which the mute config was created. This field is set by the server and will be ignored if provided on config creation.
- description string
- A description of the mute config.
- filter string
- An expression that defines the filter to apply across create/update events of findings. While creating a filter string, be mindful of the scope in which the mute configuration is being created. E.g., If a filter contains project = X but is created under the project = Y scope, it might not match any findings.
- folder string
- The folder whose Cloud Security Command Center the Mute Config lives in.
- location string
- location Id is provided by folder. If not provided, Use global as default.
- most
Recent stringEditor - Email address of the user who last edited the mute config. This field is set by the server and will be ignored if provided on config creation or update.
- mute
Config stringId - Unique identifier provided by the client within the parent scope.
- name string
- Name of the mute config. Its format is organizations/{organization}/locations/global/muteConfigs/{configId}, folders/{folder}/locations/global/muteConfigs/{configId}, or projects/{project}/locations/global/muteConfigs/{configId}
- type string
- The type of the mute config.
- update
Time string - Output only. The most recent time at which the mute config was updated. This field is set by the server and will be ignored if provided on config creation or update.
- create_
time str - The time at which the mute config was created. This field is set by the server and will be ignored if provided on config creation.
- description str
- A description of the mute config.
- filter str
- An expression that defines the filter to apply across create/update events of findings. While creating a filter string, be mindful of the scope in which the mute configuration is being created. E.g., If a filter contains project = X but is created under the project = Y scope, it might not match any findings.
- folder str
- The folder whose Cloud Security Command Center the Mute Config lives in.
- location str
- location Id is provided by folder. If not provided, Use global as default.
- most_
recent_ streditor - Email address of the user who last edited the mute config. This field is set by the server and will be ignored if provided on config creation or update.
- mute_
config_ strid - Unique identifier provided by the client within the parent scope.
- name str
- Name of the mute config. Its format is organizations/{organization}/locations/global/muteConfigs/{configId}, folders/{folder}/locations/global/muteConfigs/{configId}, or projects/{project}/locations/global/muteConfigs/{configId}
- type str
- The type of the mute config.
- update_
time str - Output only. The most recent time at which the mute config was updated. This field is set by the server and will be ignored if provided on config creation or update.
- create
Time String - The time at which the mute config was created. This field is set by the server and will be ignored if provided on config creation.
- description String
- A description of the mute config.
- filter String
- An expression that defines the filter to apply across create/update events of findings. While creating a filter string, be mindful of the scope in which the mute configuration is being created. E.g., If a filter contains project = X but is created under the project = Y scope, it might not match any findings.
- folder String
- The folder whose Cloud Security Command Center the Mute Config lives in.
- location String
- location Id is provided by folder. If not provided, Use global as default.
- most
Recent StringEditor - Email address of the user who last edited the mute config. This field is set by the server and will be ignored if provided on config creation or update.
- mute
Config StringId - Unique identifier provided by the client within the parent scope.
- name String
- Name of the mute config. Its format is organizations/{organization}/locations/global/muteConfigs/{configId}, folders/{folder}/locations/global/muteConfigs/{configId}, or projects/{project}/locations/global/muteConfigs/{configId}
- type String
- The type of the mute config.
- update
Time String - Output only. The most recent time at which the mute config was updated. This field is set by the server and will be ignored if provided on config creation or update.
Import
FolderMuteConfig can be imported using any of these accepted formats:
folders/{{folder}}/locations/{{location}}/muteConfigs/{{mute_config_id}}
{{folder}}/{{location}}/{{mute_config_id}}
When using the pulumi import
command, FolderMuteConfig can be imported using one of the formats above. For example:
$ pulumi import gcp:securitycenter/v2FolderMuteConfig:V2FolderMuteConfig default folders/{{folder}}/locations/{{location}}/muteConfigs/{{mute_config_id}}
$ pulumi import gcp:securitycenter/v2FolderMuteConfig:V2FolderMuteConfig default {{folder}}/{{location}}/{{mute_config_id}}
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.