SourceArgs

data class SourceArgs(val description: Output<String>? = null, val displayName: Output<String>? = null, val organization: Output<String>? = null) : ConvertibleToJava<SourceArgs>

A Cloud Security Command Center's (Cloud SCC) finding source. A finding source is an entity or a mechanism that can produce a finding. A source is like a container of findings that come from the same scanner, logger, monitor, etc. To get more information about Source, see:

Example Usage

Scc Source Basic

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.securitycenter.Source;
import com.pulumi.gcp.securitycenter.SourceArgs;
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 customSource = new Source("customSource", SourceArgs.builder()
.description("My custom Cloud Security Command Center Finding Source")
.displayName("My Source")
.organization("123456789")
.build());
}
}

Import

Source can be imported using any of these accepted formats

$ pulumi import gcp:securitycenter/source:Source default organizations/{{organization}}/sources/{{name}}
$ pulumi import gcp:securitycenter/source:Source default {{organization}}/{{name}}

Constructors

Link copied to clipboard
constructor(description: Output<String>? = null, displayName: Output<String>? = null, organization: Output<String>? = null)

Properties

Link copied to clipboard
val description: Output<String>? = null

The description of the source (max of 1024 characters).

Link copied to clipboard
val displayName: Output<String>? = null

The source’s display name. A source’s display name must be unique amongst its siblings, for example, two sources with the same parent can't share the same display name. The display name must start and end with a letter or digit, may contain letters, digits, spaces, hyphens, and underscores, and can be no longer than 32 characters.

Link copied to clipboard
val organization: Output<String>? = null

The organization whose Cloud Security Command Center the Source lives in.

Functions

Link copied to clipboard
open override fun toJava(): SourceArgs