securitycenter

package
v4.21.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Source

type Source struct {
	pulumi.CustomResourceState

	// The description of the source (max of 1024 characters).
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// 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.
	DisplayName pulumi.StringOutput `pulumi:"displayName"`
	// The resource name of this source, in the format 'organizations/{{organization}}/sources/{{source}}'.
	Name pulumi.StringOutput `pulumi:"name"`
	// The organization whose Cloud Security Command Center the Source
	// lives in.
	Organization pulumi.StringOutput `pulumi:"organization"`
}

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:

* [API documentation](https://cloud.google.com/security-command-center/docs/reference/rest/v1beta1/organizations.sources) * How-to Guides

## Example Usage ### Scc Source Basic

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v4/go/gcp/securitycenter"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := securitycenter.NewSource(ctx, "customSource", &securitycenter.SourceArgs{
			Description:  pulumi.String("My custom Cloud Security Command Center Finding Source"),
			DisplayName:  pulumi.String("My Source"),
			Organization: pulumi.String("123456789"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Source can be imported using any of these accepted formats

```sh

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

```

```sh

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

```

func GetSource

func GetSource(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *SourceState, opts ...pulumi.ResourceOption) (*Source, error)

GetSource gets an existing Source resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewSource

func NewSource(ctx *pulumi.Context,
	name string, args *SourceArgs, opts ...pulumi.ResourceOption) (*Source, error)

NewSource registers a new resource with the given unique name, arguments, and options.

func (*Source) ElementType added in v4.4.0

func (*Source) ElementType() reflect.Type

func (*Source) ToSourceOutput added in v4.4.0

func (i *Source) ToSourceOutput() SourceOutput

func (*Source) ToSourceOutputWithContext added in v4.4.0

func (i *Source) ToSourceOutputWithContext(ctx context.Context) SourceOutput

func (*Source) ToSourcePtrOutput added in v4.11.1

func (i *Source) ToSourcePtrOutput() SourcePtrOutput

func (*Source) ToSourcePtrOutputWithContext added in v4.11.1

func (i *Source) ToSourcePtrOutputWithContext(ctx context.Context) SourcePtrOutput

type SourceArgs

type SourceArgs struct {
	// The description of the source (max of 1024 characters).
	Description pulumi.StringPtrInput
	// 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.
	DisplayName pulumi.StringInput
	// The organization whose Cloud Security Command Center the Source
	// lives in.
	Organization pulumi.StringInput
}

The set of arguments for constructing a Source resource.

func (SourceArgs) ElementType

func (SourceArgs) ElementType() reflect.Type

type SourceArray added in v4.11.1

type SourceArray []SourceInput

func (SourceArray) ElementType added in v4.11.1

func (SourceArray) ElementType() reflect.Type

func (SourceArray) ToSourceArrayOutput added in v4.11.1

func (i SourceArray) ToSourceArrayOutput() SourceArrayOutput

func (SourceArray) ToSourceArrayOutputWithContext added in v4.11.1

func (i SourceArray) ToSourceArrayOutputWithContext(ctx context.Context) SourceArrayOutput

type SourceArrayInput added in v4.11.1

type SourceArrayInput interface {
	pulumi.Input

	ToSourceArrayOutput() SourceArrayOutput
	ToSourceArrayOutputWithContext(context.Context) SourceArrayOutput
}

SourceArrayInput is an input type that accepts SourceArray and SourceArrayOutput values. You can construct a concrete instance of `SourceArrayInput` via:

SourceArray{ SourceArgs{...} }

type SourceArrayOutput added in v4.11.1

type SourceArrayOutput struct{ *pulumi.OutputState }

func (SourceArrayOutput) ElementType added in v4.11.1

func (SourceArrayOutput) ElementType() reflect.Type

func (SourceArrayOutput) Index added in v4.11.1

func (SourceArrayOutput) ToSourceArrayOutput added in v4.11.1

func (o SourceArrayOutput) ToSourceArrayOutput() SourceArrayOutput

func (SourceArrayOutput) ToSourceArrayOutputWithContext added in v4.11.1

func (o SourceArrayOutput) ToSourceArrayOutputWithContext(ctx context.Context) SourceArrayOutput

type SourceInput added in v4.4.0

type SourceInput interface {
	pulumi.Input

	ToSourceOutput() SourceOutput
	ToSourceOutputWithContext(ctx context.Context) SourceOutput
}

type SourceMap added in v4.11.1

type SourceMap map[string]SourceInput

func (SourceMap) ElementType added in v4.11.1

func (SourceMap) ElementType() reflect.Type

func (SourceMap) ToSourceMapOutput added in v4.11.1

func (i SourceMap) ToSourceMapOutput() SourceMapOutput

func (SourceMap) ToSourceMapOutputWithContext added in v4.11.1

func (i SourceMap) ToSourceMapOutputWithContext(ctx context.Context) SourceMapOutput

type SourceMapInput added in v4.11.1

type SourceMapInput interface {
	pulumi.Input

	ToSourceMapOutput() SourceMapOutput
	ToSourceMapOutputWithContext(context.Context) SourceMapOutput
}

SourceMapInput is an input type that accepts SourceMap and SourceMapOutput values. You can construct a concrete instance of `SourceMapInput` via:

SourceMap{ "key": SourceArgs{...} }

type SourceMapOutput added in v4.11.1

type SourceMapOutput struct{ *pulumi.OutputState }

func (SourceMapOutput) ElementType added in v4.11.1

func (SourceMapOutput) ElementType() reflect.Type

func (SourceMapOutput) MapIndex added in v4.11.1

func (SourceMapOutput) ToSourceMapOutput added in v4.11.1

func (o SourceMapOutput) ToSourceMapOutput() SourceMapOutput

func (SourceMapOutput) ToSourceMapOutputWithContext added in v4.11.1

func (o SourceMapOutput) ToSourceMapOutputWithContext(ctx context.Context) SourceMapOutput

type SourceOutput added in v4.4.0

type SourceOutput struct {
	*pulumi.OutputState
}

func (SourceOutput) ElementType added in v4.4.0

func (SourceOutput) ElementType() reflect.Type

func (SourceOutput) ToSourceOutput added in v4.4.0

func (o SourceOutput) ToSourceOutput() SourceOutput

func (SourceOutput) ToSourceOutputWithContext added in v4.4.0

func (o SourceOutput) ToSourceOutputWithContext(ctx context.Context) SourceOutput

func (SourceOutput) ToSourcePtrOutput added in v4.11.1

func (o SourceOutput) ToSourcePtrOutput() SourcePtrOutput

func (SourceOutput) ToSourcePtrOutputWithContext added in v4.11.1

func (o SourceOutput) ToSourcePtrOutputWithContext(ctx context.Context) SourcePtrOutput

type SourcePtrInput added in v4.11.1

type SourcePtrInput interface {
	pulumi.Input

	ToSourcePtrOutput() SourcePtrOutput
	ToSourcePtrOutputWithContext(ctx context.Context) SourcePtrOutput
}

type SourcePtrOutput added in v4.11.1

type SourcePtrOutput struct {
	*pulumi.OutputState
}

func (SourcePtrOutput) ElementType added in v4.11.1

func (SourcePtrOutput) ElementType() reflect.Type

func (SourcePtrOutput) ToSourcePtrOutput added in v4.11.1

func (o SourcePtrOutput) ToSourcePtrOutput() SourcePtrOutput

func (SourcePtrOutput) ToSourcePtrOutputWithContext added in v4.11.1

func (o SourcePtrOutput) ToSourcePtrOutputWithContext(ctx context.Context) SourcePtrOutput

type SourceState

type SourceState struct {
	// The description of the source (max of 1024 characters).
	Description pulumi.StringPtrInput
	// 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.
	DisplayName pulumi.StringPtrInput
	// The resource name of this source, in the format 'organizations/{{organization}}/sources/{{source}}'.
	Name pulumi.StringPtrInput
	// The organization whose Cloud Security Command Center the Source
	// lives in.
	Organization pulumi.StringPtrInput
}

func (SourceState) ElementType

func (SourceState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL