securitycenter

package
v6.55.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 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 InstanceIamBinding added in v6.45.0

type InstanceIamBinding struct {
	pulumi.CustomResourceState

	Condition InstanceIamBindingConditionPtrOutput `pulumi:"condition"`
	Etag      pulumi.StringOutput                  `pulumi:"etag"`
	Members   pulumi.StringArrayOutput             `pulumi:"members"`
	// The ID of the instance or a fully qualified identifier for the instance.
	Name pulumi.StringOutput `pulumi:"name"`
	// The ID of the project in which the resource belongs.
	// If it is not provided, the provider project is used.
	Project pulumi.StringOutput `pulumi:"project"`
	// The region of the Data Fusion instance.
	Region pulumi.StringOutput `pulumi:"region"`
	Role   pulumi.StringOutput `pulumi:"role"`
}

Represents a Data Fusion instance.

To get more information about Instance, see:

* [API documentation](https://cloud.google.com/data-fusion/docs/reference/rest/v1beta1/projects.locations.instances) * How-to Guides

## Example Usage ### Data Fusion Instance Basic

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/datafusion"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := datafusion.NewInstance(ctx, "basicInstance", &datafusion.InstanceArgs{
			Region: pulumi.String("us-central1"),
			Type:   pulumi.String("BASIC"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Data Fusion Instance Full

```go package main

import (

"fmt"

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/appengine"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/compute"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/datafusion"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := appengine.GetDefaultServiceAccount(ctx, nil, nil)
		if err != nil {
			return err
		}
		network, err := compute.NewNetwork(ctx, "network", nil)
		if err != nil {
			return err
		}
		privateIpAlloc, err := compute.NewGlobalAddress(ctx, "privateIpAlloc", &compute.GlobalAddressArgs{
			AddressType:  pulumi.String("INTERNAL"),
			Purpose:      pulumi.String("VPC_PEERING"),
			PrefixLength: pulumi.Int(22),
			Network:      network.ID(),
		})
		if err != nil {
			return err
		}
		_, err = datafusion.NewInstance(ctx, "extendedInstance", &datafusion.InstanceArgs{
			Description:                 pulumi.String("My Data Fusion instance"),
			DisplayName:                 pulumi.String("My Data Fusion instance"),
			Region:                      pulumi.String("us-central1"),
			Type:                        pulumi.String("BASIC"),
			EnableStackdriverLogging:    pulumi.Bool(true),
			EnableStackdriverMonitoring: pulumi.Bool(true),
			PrivateInstance:             pulumi.Bool(true),
			DataprocServiceAccount:      *pulumi.String(_default.Email),
			Labels: pulumi.StringMap{
				"example_key": pulumi.String("example_value"),
			},
			NetworkConfig: &datafusion.InstanceNetworkConfigArgs{
				Network: pulumi.String("default"),
				IpAllocation: pulumi.All(privateIpAlloc.Address, privateIpAlloc.PrefixLength).ApplyT(func(_args []interface{}) (string, error) {
					address := _args[0].(string)
					prefixLength := _args[1].(*int)
					return fmt.Sprintf("%v/%v", address, prefixLength), nil
				}).(pulumi.StringOutput),
			},
			Accelerators: datafusion.InstanceAcceleratorArray{
				&datafusion.InstanceAcceleratorArgs{
					AcceleratorType: pulumi.String("CDC"),
					State:           pulumi.String("ENABLED"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Data Fusion Instance Cmek

```go package main

import (

"fmt"

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/datafusion"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/kms"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/organizations"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		keyRing, err := kms.NewKeyRing(ctx, "keyRing", &kms.KeyRingArgs{
			Location: pulumi.String("us-central1"),
		})
		if err != nil {
			return err
		}
		cryptoKey, err := kms.NewCryptoKey(ctx, "cryptoKey", &kms.CryptoKeyArgs{
			KeyRing: keyRing.ID(),
		})
		if err != nil {
			return err
		}
		project, err := organizations.LookupProject(ctx, nil, nil)
		if err != nil {
			return err
		}
		cryptoKeyBinding, err := kms.NewCryptoKeyIAMBinding(ctx, "cryptoKeyBinding", &kms.CryptoKeyIAMBindingArgs{
			CryptoKeyId: cryptoKey.ID(),
			Role:        pulumi.String("roles/cloudkms.cryptoKeyEncrypterDecrypter"),
			Members: pulumi.StringArray{
				pulumi.String(fmt.Sprintf("serviceAccount:service-%v@gcp-sa-datafusion.iam.gserviceaccount.com", project.Number)),
			},
		})
		if err != nil {
			return err
		}
		_, err = datafusion.NewInstance(ctx, "cmek", &datafusion.InstanceArgs{
			Region: pulumi.String("us-central1"),
			Type:   pulumi.String("BASIC"),
			CryptoKeyConfig: &datafusion.InstanceCryptoKeyConfigArgs{
				KeyReference: cryptoKey.ID(),
			},
		}, pulumi.DependsOn([]pulumi.Resource{
			cryptoKeyBinding,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Data Fusion Instance Enterprise

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/datafusion"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := datafusion.NewInstance(ctx, "enterpriseInstance", &datafusion.InstanceArgs{
			EnableRbac: pulumi.Bool(true),
			Region:     pulumi.String("us-central1"),
			Type:       pulumi.String("ENTERPRISE"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Data Fusion Instance Event

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/datafusion"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/pubsub"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		eventTopic, err := pubsub.NewTopic(ctx, "eventTopic", nil)
		if err != nil {
			return err
		}
		_, err = datafusion.NewInstance(ctx, "eventInstance", &datafusion.InstanceArgs{
			Region: pulumi.String("us-central1"),
			Type:   pulumi.String("BASIC"),
			EventPublishConfig: &datafusion.InstanceEventPublishConfigArgs{
				Enabled: pulumi.Bool(true),
				Topic:   eventTopic.ID(),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Data Fusion Instance Zone

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/datafusion"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := datafusion.NewInstance(ctx, "zone", &datafusion.InstanceArgs{
			Region: pulumi.String("us-central1"),
			Type:   pulumi.String("DEVELOPER"),
			Zone:   pulumi.String("us-central1-a"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Instance can be imported using any of these accepted formats

```sh

$ pulumi import gcp:securitycenter/instanceIamBinding:InstanceIamBinding default projects/{{project}}/locations/{{region}}/instances/{{name}}

```

```sh

$ pulumi import gcp:securitycenter/instanceIamBinding:InstanceIamBinding default {{project}}/{{region}}/{{name}}

```

```sh

$ pulumi import gcp:securitycenter/instanceIamBinding:InstanceIamBinding default {{region}}/{{name}}

```

```sh

$ pulumi import gcp:securitycenter/instanceIamBinding:InstanceIamBinding default {{name}}

```

func GetInstanceIamBinding added in v6.45.0

func GetInstanceIamBinding(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *InstanceIamBindingState, opts ...pulumi.ResourceOption) (*InstanceIamBinding, error)

GetInstanceIamBinding gets an existing InstanceIamBinding 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 NewInstanceIamBinding added in v6.45.0

func NewInstanceIamBinding(ctx *pulumi.Context,
	name string, args *InstanceIamBindingArgs, opts ...pulumi.ResourceOption) (*InstanceIamBinding, error)

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

func (*InstanceIamBinding) ElementType added in v6.45.0

func (*InstanceIamBinding) ElementType() reflect.Type

func (*InstanceIamBinding) ToInstanceIamBindingOutput added in v6.45.0

func (i *InstanceIamBinding) ToInstanceIamBindingOutput() InstanceIamBindingOutput

func (*InstanceIamBinding) ToInstanceIamBindingOutputWithContext added in v6.45.0

func (i *InstanceIamBinding) ToInstanceIamBindingOutputWithContext(ctx context.Context) InstanceIamBindingOutput

type InstanceIamBindingArgs added in v6.45.0

type InstanceIamBindingArgs struct {
	Condition InstanceIamBindingConditionPtrInput
	Members   pulumi.StringArrayInput
	// The ID of the instance or a fully qualified identifier for the instance.
	Name pulumi.StringPtrInput
	// The ID of the project in which the resource belongs.
	// If it is not provided, the provider project is used.
	Project pulumi.StringPtrInput
	// The region of the Data Fusion instance.
	Region pulumi.StringPtrInput
	Role   pulumi.StringInput
}

The set of arguments for constructing a InstanceIamBinding resource.

func (InstanceIamBindingArgs) ElementType added in v6.45.0

func (InstanceIamBindingArgs) ElementType() reflect.Type

type InstanceIamBindingArray added in v6.45.0

type InstanceIamBindingArray []InstanceIamBindingInput

func (InstanceIamBindingArray) ElementType added in v6.45.0

func (InstanceIamBindingArray) ElementType() reflect.Type

func (InstanceIamBindingArray) ToInstanceIamBindingArrayOutput added in v6.45.0

func (i InstanceIamBindingArray) ToInstanceIamBindingArrayOutput() InstanceIamBindingArrayOutput

func (InstanceIamBindingArray) ToInstanceIamBindingArrayOutputWithContext added in v6.45.0

func (i InstanceIamBindingArray) ToInstanceIamBindingArrayOutputWithContext(ctx context.Context) InstanceIamBindingArrayOutput

type InstanceIamBindingArrayInput added in v6.45.0

type InstanceIamBindingArrayInput interface {
	pulumi.Input

	ToInstanceIamBindingArrayOutput() InstanceIamBindingArrayOutput
	ToInstanceIamBindingArrayOutputWithContext(context.Context) InstanceIamBindingArrayOutput
}

InstanceIamBindingArrayInput is an input type that accepts InstanceIamBindingArray and InstanceIamBindingArrayOutput values. You can construct a concrete instance of `InstanceIamBindingArrayInput` via:

InstanceIamBindingArray{ InstanceIamBindingArgs{...} }

type InstanceIamBindingArrayOutput added in v6.45.0

type InstanceIamBindingArrayOutput struct{ *pulumi.OutputState }

func (InstanceIamBindingArrayOutput) ElementType added in v6.45.0

func (InstanceIamBindingArrayOutput) Index added in v6.45.0

func (InstanceIamBindingArrayOutput) ToInstanceIamBindingArrayOutput added in v6.45.0

func (o InstanceIamBindingArrayOutput) ToInstanceIamBindingArrayOutput() InstanceIamBindingArrayOutput

func (InstanceIamBindingArrayOutput) ToInstanceIamBindingArrayOutputWithContext added in v6.45.0

func (o InstanceIamBindingArrayOutput) ToInstanceIamBindingArrayOutputWithContext(ctx context.Context) InstanceIamBindingArrayOutput

type InstanceIamBindingCondition added in v6.45.0

type InstanceIamBindingCondition struct {
	// An optional description of the instance.
	Description *string `pulumi:"description"`
	Expression  string  `pulumi:"expression"`
	Title       string  `pulumi:"title"`
}

type InstanceIamBindingConditionArgs added in v6.45.0

type InstanceIamBindingConditionArgs struct {
	// An optional description of the instance.
	Description pulumi.StringPtrInput `pulumi:"description"`
	Expression  pulumi.StringInput    `pulumi:"expression"`
	Title       pulumi.StringInput    `pulumi:"title"`
}

func (InstanceIamBindingConditionArgs) ElementType added in v6.45.0

func (InstanceIamBindingConditionArgs) ToInstanceIamBindingConditionOutput added in v6.45.0

func (i InstanceIamBindingConditionArgs) ToInstanceIamBindingConditionOutput() InstanceIamBindingConditionOutput

func (InstanceIamBindingConditionArgs) ToInstanceIamBindingConditionOutputWithContext added in v6.45.0

func (i InstanceIamBindingConditionArgs) ToInstanceIamBindingConditionOutputWithContext(ctx context.Context) InstanceIamBindingConditionOutput

func (InstanceIamBindingConditionArgs) ToInstanceIamBindingConditionPtrOutput added in v6.45.0

func (i InstanceIamBindingConditionArgs) ToInstanceIamBindingConditionPtrOutput() InstanceIamBindingConditionPtrOutput

func (InstanceIamBindingConditionArgs) ToInstanceIamBindingConditionPtrOutputWithContext added in v6.45.0

func (i InstanceIamBindingConditionArgs) ToInstanceIamBindingConditionPtrOutputWithContext(ctx context.Context) InstanceIamBindingConditionPtrOutput

type InstanceIamBindingConditionInput added in v6.45.0

type InstanceIamBindingConditionInput interface {
	pulumi.Input

	ToInstanceIamBindingConditionOutput() InstanceIamBindingConditionOutput
	ToInstanceIamBindingConditionOutputWithContext(context.Context) InstanceIamBindingConditionOutput
}

InstanceIamBindingConditionInput is an input type that accepts InstanceIamBindingConditionArgs and InstanceIamBindingConditionOutput values. You can construct a concrete instance of `InstanceIamBindingConditionInput` via:

InstanceIamBindingConditionArgs{...}

type InstanceIamBindingConditionOutput added in v6.45.0

type InstanceIamBindingConditionOutput struct{ *pulumi.OutputState }

func (InstanceIamBindingConditionOutput) Description added in v6.45.0

An optional description of the instance.

func (InstanceIamBindingConditionOutput) ElementType added in v6.45.0

func (InstanceIamBindingConditionOutput) Expression added in v6.45.0

func (InstanceIamBindingConditionOutput) Title added in v6.45.0

func (InstanceIamBindingConditionOutput) ToInstanceIamBindingConditionOutput added in v6.45.0

func (o InstanceIamBindingConditionOutput) ToInstanceIamBindingConditionOutput() InstanceIamBindingConditionOutput

func (InstanceIamBindingConditionOutput) ToInstanceIamBindingConditionOutputWithContext added in v6.45.0

func (o InstanceIamBindingConditionOutput) ToInstanceIamBindingConditionOutputWithContext(ctx context.Context) InstanceIamBindingConditionOutput

func (InstanceIamBindingConditionOutput) ToInstanceIamBindingConditionPtrOutput added in v6.45.0

func (o InstanceIamBindingConditionOutput) ToInstanceIamBindingConditionPtrOutput() InstanceIamBindingConditionPtrOutput

func (InstanceIamBindingConditionOutput) ToInstanceIamBindingConditionPtrOutputWithContext added in v6.45.0

func (o InstanceIamBindingConditionOutput) ToInstanceIamBindingConditionPtrOutputWithContext(ctx context.Context) InstanceIamBindingConditionPtrOutput

type InstanceIamBindingConditionPtrInput added in v6.45.0

type InstanceIamBindingConditionPtrInput interface {
	pulumi.Input

	ToInstanceIamBindingConditionPtrOutput() InstanceIamBindingConditionPtrOutput
	ToInstanceIamBindingConditionPtrOutputWithContext(context.Context) InstanceIamBindingConditionPtrOutput
}

InstanceIamBindingConditionPtrInput is an input type that accepts InstanceIamBindingConditionArgs, InstanceIamBindingConditionPtr and InstanceIamBindingConditionPtrOutput values. You can construct a concrete instance of `InstanceIamBindingConditionPtrInput` via:

        InstanceIamBindingConditionArgs{...}

or:

        nil

func InstanceIamBindingConditionPtr added in v6.45.0

type InstanceIamBindingConditionPtrOutput added in v6.45.0

type InstanceIamBindingConditionPtrOutput struct{ *pulumi.OutputState }

func (InstanceIamBindingConditionPtrOutput) Description added in v6.45.0

An optional description of the instance.

func (InstanceIamBindingConditionPtrOutput) Elem added in v6.45.0

func (InstanceIamBindingConditionPtrOutput) ElementType added in v6.45.0

func (InstanceIamBindingConditionPtrOutput) Expression added in v6.45.0

func (InstanceIamBindingConditionPtrOutput) Title added in v6.45.0

func (InstanceIamBindingConditionPtrOutput) ToInstanceIamBindingConditionPtrOutput added in v6.45.0

func (o InstanceIamBindingConditionPtrOutput) ToInstanceIamBindingConditionPtrOutput() InstanceIamBindingConditionPtrOutput

func (InstanceIamBindingConditionPtrOutput) ToInstanceIamBindingConditionPtrOutputWithContext added in v6.45.0

func (o InstanceIamBindingConditionPtrOutput) ToInstanceIamBindingConditionPtrOutputWithContext(ctx context.Context) InstanceIamBindingConditionPtrOutput

type InstanceIamBindingInput added in v6.45.0

type InstanceIamBindingInput interface {
	pulumi.Input

	ToInstanceIamBindingOutput() InstanceIamBindingOutput
	ToInstanceIamBindingOutputWithContext(ctx context.Context) InstanceIamBindingOutput
}

type InstanceIamBindingMap added in v6.45.0

type InstanceIamBindingMap map[string]InstanceIamBindingInput

func (InstanceIamBindingMap) ElementType added in v6.45.0

func (InstanceIamBindingMap) ElementType() reflect.Type

func (InstanceIamBindingMap) ToInstanceIamBindingMapOutput added in v6.45.0

func (i InstanceIamBindingMap) ToInstanceIamBindingMapOutput() InstanceIamBindingMapOutput

func (InstanceIamBindingMap) ToInstanceIamBindingMapOutputWithContext added in v6.45.0

func (i InstanceIamBindingMap) ToInstanceIamBindingMapOutputWithContext(ctx context.Context) InstanceIamBindingMapOutput

type InstanceIamBindingMapInput added in v6.45.0

type InstanceIamBindingMapInput interface {
	pulumi.Input

	ToInstanceIamBindingMapOutput() InstanceIamBindingMapOutput
	ToInstanceIamBindingMapOutputWithContext(context.Context) InstanceIamBindingMapOutput
}

InstanceIamBindingMapInput is an input type that accepts InstanceIamBindingMap and InstanceIamBindingMapOutput values. You can construct a concrete instance of `InstanceIamBindingMapInput` via:

InstanceIamBindingMap{ "key": InstanceIamBindingArgs{...} }

type InstanceIamBindingMapOutput added in v6.45.0

type InstanceIamBindingMapOutput struct{ *pulumi.OutputState }

func (InstanceIamBindingMapOutput) ElementType added in v6.45.0

func (InstanceIamBindingMapOutput) MapIndex added in v6.45.0

func (InstanceIamBindingMapOutput) ToInstanceIamBindingMapOutput added in v6.45.0

func (o InstanceIamBindingMapOutput) ToInstanceIamBindingMapOutput() InstanceIamBindingMapOutput

func (InstanceIamBindingMapOutput) ToInstanceIamBindingMapOutputWithContext added in v6.45.0

func (o InstanceIamBindingMapOutput) ToInstanceIamBindingMapOutputWithContext(ctx context.Context) InstanceIamBindingMapOutput

type InstanceIamBindingOutput added in v6.45.0

type InstanceIamBindingOutput struct{ *pulumi.OutputState }

func (InstanceIamBindingOutput) Condition added in v6.45.0

func (InstanceIamBindingOutput) ElementType added in v6.45.0

func (InstanceIamBindingOutput) ElementType() reflect.Type

func (InstanceIamBindingOutput) Etag added in v6.45.0

func (InstanceIamBindingOutput) Members added in v6.45.0

func (InstanceIamBindingOutput) Name added in v6.45.0

The ID of the instance or a fully qualified identifier for the instance.

func (InstanceIamBindingOutput) Project added in v6.45.0

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

func (InstanceIamBindingOutput) Region added in v6.45.0

The region of the Data Fusion instance.

func (InstanceIamBindingOutput) Role added in v6.45.0

func (InstanceIamBindingOutput) ToInstanceIamBindingOutput added in v6.45.0

func (o InstanceIamBindingOutput) ToInstanceIamBindingOutput() InstanceIamBindingOutput

func (InstanceIamBindingOutput) ToInstanceIamBindingOutputWithContext added in v6.45.0

func (o InstanceIamBindingOutput) ToInstanceIamBindingOutputWithContext(ctx context.Context) InstanceIamBindingOutput

type InstanceIamBindingState added in v6.45.0

type InstanceIamBindingState struct {
	Condition InstanceIamBindingConditionPtrInput
	Etag      pulumi.StringPtrInput
	Members   pulumi.StringArrayInput
	// The ID of the instance or a fully qualified identifier for the instance.
	Name pulumi.StringPtrInput
	// The ID of the project in which the resource belongs.
	// If it is not provided, the provider project is used.
	Project pulumi.StringPtrInput
	// The region of the Data Fusion instance.
	Region pulumi.StringPtrInput
	Role   pulumi.StringPtrInput
}

func (InstanceIamBindingState) ElementType added in v6.45.0

func (InstanceIamBindingState) ElementType() reflect.Type

type InstanceIamMember added in v6.45.0

type InstanceIamMember struct {
	pulumi.CustomResourceState

	Condition InstanceIamMemberConditionPtrOutput `pulumi:"condition"`
	Etag      pulumi.StringOutput                 `pulumi:"etag"`
	Member    pulumi.StringOutput                 `pulumi:"member"`
	// The ID of the instance or a fully qualified identifier for the instance.
	Name pulumi.StringOutput `pulumi:"name"`
	// The ID of the project in which the resource belongs.
	// If it is not provided, the provider project is used.
	Project pulumi.StringOutput `pulumi:"project"`
	// The region of the Data Fusion instance.
	Region pulumi.StringOutput `pulumi:"region"`
	Role   pulumi.StringOutput `pulumi:"role"`
}

Represents a Data Fusion instance.

To get more information about Instance, see:

* [API documentation](https://cloud.google.com/data-fusion/docs/reference/rest/v1beta1/projects.locations.instances) * How-to Guides

## Example Usage ### Data Fusion Instance Basic

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/datafusion"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := datafusion.NewInstance(ctx, "basicInstance", &datafusion.InstanceArgs{
			Region: pulumi.String("us-central1"),
			Type:   pulumi.String("BASIC"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Data Fusion Instance Full

```go package main

import (

"fmt"

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/appengine"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/compute"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/datafusion"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := appengine.GetDefaultServiceAccount(ctx, nil, nil)
		if err != nil {
			return err
		}
		network, err := compute.NewNetwork(ctx, "network", nil)
		if err != nil {
			return err
		}
		privateIpAlloc, err := compute.NewGlobalAddress(ctx, "privateIpAlloc", &compute.GlobalAddressArgs{
			AddressType:  pulumi.String("INTERNAL"),
			Purpose:      pulumi.String("VPC_PEERING"),
			PrefixLength: pulumi.Int(22),
			Network:      network.ID(),
		})
		if err != nil {
			return err
		}
		_, err = datafusion.NewInstance(ctx, "extendedInstance", &datafusion.InstanceArgs{
			Description:                 pulumi.String("My Data Fusion instance"),
			DisplayName:                 pulumi.String("My Data Fusion instance"),
			Region:                      pulumi.String("us-central1"),
			Type:                        pulumi.String("BASIC"),
			EnableStackdriverLogging:    pulumi.Bool(true),
			EnableStackdriverMonitoring: pulumi.Bool(true),
			PrivateInstance:             pulumi.Bool(true),
			DataprocServiceAccount:      *pulumi.String(_default.Email),
			Labels: pulumi.StringMap{
				"example_key": pulumi.String("example_value"),
			},
			NetworkConfig: &datafusion.InstanceNetworkConfigArgs{
				Network: pulumi.String("default"),
				IpAllocation: pulumi.All(privateIpAlloc.Address, privateIpAlloc.PrefixLength).ApplyT(func(_args []interface{}) (string, error) {
					address := _args[0].(string)
					prefixLength := _args[1].(*int)
					return fmt.Sprintf("%v/%v", address, prefixLength), nil
				}).(pulumi.StringOutput),
			},
			Accelerators: datafusion.InstanceAcceleratorArray{
				&datafusion.InstanceAcceleratorArgs{
					AcceleratorType: pulumi.String("CDC"),
					State:           pulumi.String("ENABLED"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Data Fusion Instance Cmek

```go package main

import (

"fmt"

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/datafusion"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/kms"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/organizations"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		keyRing, err := kms.NewKeyRing(ctx, "keyRing", &kms.KeyRingArgs{
			Location: pulumi.String("us-central1"),
		})
		if err != nil {
			return err
		}
		cryptoKey, err := kms.NewCryptoKey(ctx, "cryptoKey", &kms.CryptoKeyArgs{
			KeyRing: keyRing.ID(),
		})
		if err != nil {
			return err
		}
		project, err := organizations.LookupProject(ctx, nil, nil)
		if err != nil {
			return err
		}
		cryptoKeyBinding, err := kms.NewCryptoKeyIAMBinding(ctx, "cryptoKeyBinding", &kms.CryptoKeyIAMBindingArgs{
			CryptoKeyId: cryptoKey.ID(),
			Role:        pulumi.String("roles/cloudkms.cryptoKeyEncrypterDecrypter"),
			Members: pulumi.StringArray{
				pulumi.String(fmt.Sprintf("serviceAccount:service-%v@gcp-sa-datafusion.iam.gserviceaccount.com", project.Number)),
			},
		})
		if err != nil {
			return err
		}
		_, err = datafusion.NewInstance(ctx, "cmek", &datafusion.InstanceArgs{
			Region: pulumi.String("us-central1"),
			Type:   pulumi.String("BASIC"),
			CryptoKeyConfig: &datafusion.InstanceCryptoKeyConfigArgs{
				KeyReference: cryptoKey.ID(),
			},
		}, pulumi.DependsOn([]pulumi.Resource{
			cryptoKeyBinding,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Data Fusion Instance Enterprise

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/datafusion"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := datafusion.NewInstance(ctx, "enterpriseInstance", &datafusion.InstanceArgs{
			EnableRbac: pulumi.Bool(true),
			Region:     pulumi.String("us-central1"),
			Type:       pulumi.String("ENTERPRISE"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Data Fusion Instance Event

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/datafusion"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/pubsub"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		eventTopic, err := pubsub.NewTopic(ctx, "eventTopic", nil)
		if err != nil {
			return err
		}
		_, err = datafusion.NewInstance(ctx, "eventInstance", &datafusion.InstanceArgs{
			Region: pulumi.String("us-central1"),
			Type:   pulumi.String("BASIC"),
			EventPublishConfig: &datafusion.InstanceEventPublishConfigArgs{
				Enabled: pulumi.Bool(true),
				Topic:   eventTopic.ID(),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Data Fusion Instance Zone

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/datafusion"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := datafusion.NewInstance(ctx, "zone", &datafusion.InstanceArgs{
			Region: pulumi.String("us-central1"),
			Type:   pulumi.String("DEVELOPER"),
			Zone:   pulumi.String("us-central1-a"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Instance can be imported using any of these accepted formats

```sh

$ pulumi import gcp:securitycenter/instanceIamMember:InstanceIamMember default projects/{{project}}/locations/{{region}}/instances/{{name}}

```

```sh

$ pulumi import gcp:securitycenter/instanceIamMember:InstanceIamMember default {{project}}/{{region}}/{{name}}

```

```sh

$ pulumi import gcp:securitycenter/instanceIamMember:InstanceIamMember default {{region}}/{{name}}

```

```sh

$ pulumi import gcp:securitycenter/instanceIamMember:InstanceIamMember default {{name}}

```

func GetInstanceIamMember added in v6.45.0

func GetInstanceIamMember(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *InstanceIamMemberState, opts ...pulumi.ResourceOption) (*InstanceIamMember, error)

GetInstanceIamMember gets an existing InstanceIamMember 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 NewInstanceIamMember added in v6.45.0

func NewInstanceIamMember(ctx *pulumi.Context,
	name string, args *InstanceIamMemberArgs, opts ...pulumi.ResourceOption) (*InstanceIamMember, error)

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

func (*InstanceIamMember) ElementType added in v6.45.0

func (*InstanceIamMember) ElementType() reflect.Type

func (*InstanceIamMember) ToInstanceIamMemberOutput added in v6.45.0

func (i *InstanceIamMember) ToInstanceIamMemberOutput() InstanceIamMemberOutput

func (*InstanceIamMember) ToInstanceIamMemberOutputWithContext added in v6.45.0

func (i *InstanceIamMember) ToInstanceIamMemberOutputWithContext(ctx context.Context) InstanceIamMemberOutput

type InstanceIamMemberArgs added in v6.45.0

type InstanceIamMemberArgs struct {
	Condition InstanceIamMemberConditionPtrInput
	Member    pulumi.StringInput
	// The ID of the instance or a fully qualified identifier for the instance.
	Name pulumi.StringPtrInput
	// The ID of the project in which the resource belongs.
	// If it is not provided, the provider project is used.
	Project pulumi.StringPtrInput
	// The region of the Data Fusion instance.
	Region pulumi.StringPtrInput
	Role   pulumi.StringInput
}

The set of arguments for constructing a InstanceIamMember resource.

func (InstanceIamMemberArgs) ElementType added in v6.45.0

func (InstanceIamMemberArgs) ElementType() reflect.Type

type InstanceIamMemberArray added in v6.45.0

type InstanceIamMemberArray []InstanceIamMemberInput

func (InstanceIamMemberArray) ElementType added in v6.45.0

func (InstanceIamMemberArray) ElementType() reflect.Type

func (InstanceIamMemberArray) ToInstanceIamMemberArrayOutput added in v6.45.0

func (i InstanceIamMemberArray) ToInstanceIamMemberArrayOutput() InstanceIamMemberArrayOutput

func (InstanceIamMemberArray) ToInstanceIamMemberArrayOutputWithContext added in v6.45.0

func (i InstanceIamMemberArray) ToInstanceIamMemberArrayOutputWithContext(ctx context.Context) InstanceIamMemberArrayOutput

type InstanceIamMemberArrayInput added in v6.45.0

type InstanceIamMemberArrayInput interface {
	pulumi.Input

	ToInstanceIamMemberArrayOutput() InstanceIamMemberArrayOutput
	ToInstanceIamMemberArrayOutputWithContext(context.Context) InstanceIamMemberArrayOutput
}

InstanceIamMemberArrayInput is an input type that accepts InstanceIamMemberArray and InstanceIamMemberArrayOutput values. You can construct a concrete instance of `InstanceIamMemberArrayInput` via:

InstanceIamMemberArray{ InstanceIamMemberArgs{...} }

type InstanceIamMemberArrayOutput added in v6.45.0

type InstanceIamMemberArrayOutput struct{ *pulumi.OutputState }

func (InstanceIamMemberArrayOutput) ElementType added in v6.45.0

func (InstanceIamMemberArrayOutput) Index added in v6.45.0

func (InstanceIamMemberArrayOutput) ToInstanceIamMemberArrayOutput added in v6.45.0

func (o InstanceIamMemberArrayOutput) ToInstanceIamMemberArrayOutput() InstanceIamMemberArrayOutput

func (InstanceIamMemberArrayOutput) ToInstanceIamMemberArrayOutputWithContext added in v6.45.0

func (o InstanceIamMemberArrayOutput) ToInstanceIamMemberArrayOutputWithContext(ctx context.Context) InstanceIamMemberArrayOutput

type InstanceIamMemberCondition added in v6.45.0

type InstanceIamMemberCondition struct {
	// An optional description of the instance.
	Description *string `pulumi:"description"`
	Expression  string  `pulumi:"expression"`
	Title       string  `pulumi:"title"`
}

type InstanceIamMemberConditionArgs added in v6.45.0

type InstanceIamMemberConditionArgs struct {
	// An optional description of the instance.
	Description pulumi.StringPtrInput `pulumi:"description"`
	Expression  pulumi.StringInput    `pulumi:"expression"`
	Title       pulumi.StringInput    `pulumi:"title"`
}

func (InstanceIamMemberConditionArgs) ElementType added in v6.45.0

func (InstanceIamMemberConditionArgs) ToInstanceIamMemberConditionOutput added in v6.45.0

func (i InstanceIamMemberConditionArgs) ToInstanceIamMemberConditionOutput() InstanceIamMemberConditionOutput

func (InstanceIamMemberConditionArgs) ToInstanceIamMemberConditionOutputWithContext added in v6.45.0

func (i InstanceIamMemberConditionArgs) ToInstanceIamMemberConditionOutputWithContext(ctx context.Context) InstanceIamMemberConditionOutput

func (InstanceIamMemberConditionArgs) ToInstanceIamMemberConditionPtrOutput added in v6.45.0

func (i InstanceIamMemberConditionArgs) ToInstanceIamMemberConditionPtrOutput() InstanceIamMemberConditionPtrOutput

func (InstanceIamMemberConditionArgs) ToInstanceIamMemberConditionPtrOutputWithContext added in v6.45.0

func (i InstanceIamMemberConditionArgs) ToInstanceIamMemberConditionPtrOutputWithContext(ctx context.Context) InstanceIamMemberConditionPtrOutput

type InstanceIamMemberConditionInput added in v6.45.0

type InstanceIamMemberConditionInput interface {
	pulumi.Input

	ToInstanceIamMemberConditionOutput() InstanceIamMemberConditionOutput
	ToInstanceIamMemberConditionOutputWithContext(context.Context) InstanceIamMemberConditionOutput
}

InstanceIamMemberConditionInput is an input type that accepts InstanceIamMemberConditionArgs and InstanceIamMemberConditionOutput values. You can construct a concrete instance of `InstanceIamMemberConditionInput` via:

InstanceIamMemberConditionArgs{...}

type InstanceIamMemberConditionOutput added in v6.45.0

type InstanceIamMemberConditionOutput struct{ *pulumi.OutputState }

func (InstanceIamMemberConditionOutput) Description added in v6.45.0

An optional description of the instance.

func (InstanceIamMemberConditionOutput) ElementType added in v6.45.0

func (InstanceIamMemberConditionOutput) Expression added in v6.45.0

func (InstanceIamMemberConditionOutput) Title added in v6.45.0

func (InstanceIamMemberConditionOutput) ToInstanceIamMemberConditionOutput added in v6.45.0

func (o InstanceIamMemberConditionOutput) ToInstanceIamMemberConditionOutput() InstanceIamMemberConditionOutput

func (InstanceIamMemberConditionOutput) ToInstanceIamMemberConditionOutputWithContext added in v6.45.0

func (o InstanceIamMemberConditionOutput) ToInstanceIamMemberConditionOutputWithContext(ctx context.Context) InstanceIamMemberConditionOutput

func (InstanceIamMemberConditionOutput) ToInstanceIamMemberConditionPtrOutput added in v6.45.0

func (o InstanceIamMemberConditionOutput) ToInstanceIamMemberConditionPtrOutput() InstanceIamMemberConditionPtrOutput

func (InstanceIamMemberConditionOutput) ToInstanceIamMemberConditionPtrOutputWithContext added in v6.45.0

func (o InstanceIamMemberConditionOutput) ToInstanceIamMemberConditionPtrOutputWithContext(ctx context.Context) InstanceIamMemberConditionPtrOutput

type InstanceIamMemberConditionPtrInput added in v6.45.0

type InstanceIamMemberConditionPtrInput interface {
	pulumi.Input

	ToInstanceIamMemberConditionPtrOutput() InstanceIamMemberConditionPtrOutput
	ToInstanceIamMemberConditionPtrOutputWithContext(context.Context) InstanceIamMemberConditionPtrOutput
}

InstanceIamMemberConditionPtrInput is an input type that accepts InstanceIamMemberConditionArgs, InstanceIamMemberConditionPtr and InstanceIamMemberConditionPtrOutput values. You can construct a concrete instance of `InstanceIamMemberConditionPtrInput` via:

        InstanceIamMemberConditionArgs{...}

or:

        nil

func InstanceIamMemberConditionPtr added in v6.45.0

type InstanceIamMemberConditionPtrOutput added in v6.45.0

type InstanceIamMemberConditionPtrOutput struct{ *pulumi.OutputState }

func (InstanceIamMemberConditionPtrOutput) Description added in v6.45.0

An optional description of the instance.

func (InstanceIamMemberConditionPtrOutput) Elem added in v6.45.0

func (InstanceIamMemberConditionPtrOutput) ElementType added in v6.45.0

func (InstanceIamMemberConditionPtrOutput) Expression added in v6.45.0

func (InstanceIamMemberConditionPtrOutput) Title added in v6.45.0

func (InstanceIamMemberConditionPtrOutput) ToInstanceIamMemberConditionPtrOutput added in v6.45.0

func (o InstanceIamMemberConditionPtrOutput) ToInstanceIamMemberConditionPtrOutput() InstanceIamMemberConditionPtrOutput

func (InstanceIamMemberConditionPtrOutput) ToInstanceIamMemberConditionPtrOutputWithContext added in v6.45.0

func (o InstanceIamMemberConditionPtrOutput) ToInstanceIamMemberConditionPtrOutputWithContext(ctx context.Context) InstanceIamMemberConditionPtrOutput

type InstanceIamMemberInput added in v6.45.0

type InstanceIamMemberInput interface {
	pulumi.Input

	ToInstanceIamMemberOutput() InstanceIamMemberOutput
	ToInstanceIamMemberOutputWithContext(ctx context.Context) InstanceIamMemberOutput
}

type InstanceIamMemberMap added in v6.45.0

type InstanceIamMemberMap map[string]InstanceIamMemberInput

func (InstanceIamMemberMap) ElementType added in v6.45.0

func (InstanceIamMemberMap) ElementType() reflect.Type

func (InstanceIamMemberMap) ToInstanceIamMemberMapOutput added in v6.45.0

func (i InstanceIamMemberMap) ToInstanceIamMemberMapOutput() InstanceIamMemberMapOutput

func (InstanceIamMemberMap) ToInstanceIamMemberMapOutputWithContext added in v6.45.0

func (i InstanceIamMemberMap) ToInstanceIamMemberMapOutputWithContext(ctx context.Context) InstanceIamMemberMapOutput

type InstanceIamMemberMapInput added in v6.45.0

type InstanceIamMemberMapInput interface {
	pulumi.Input

	ToInstanceIamMemberMapOutput() InstanceIamMemberMapOutput
	ToInstanceIamMemberMapOutputWithContext(context.Context) InstanceIamMemberMapOutput
}

InstanceIamMemberMapInput is an input type that accepts InstanceIamMemberMap and InstanceIamMemberMapOutput values. You can construct a concrete instance of `InstanceIamMemberMapInput` via:

InstanceIamMemberMap{ "key": InstanceIamMemberArgs{...} }

type InstanceIamMemberMapOutput added in v6.45.0

type InstanceIamMemberMapOutput struct{ *pulumi.OutputState }

func (InstanceIamMemberMapOutput) ElementType added in v6.45.0

func (InstanceIamMemberMapOutput) ElementType() reflect.Type

func (InstanceIamMemberMapOutput) MapIndex added in v6.45.0

func (InstanceIamMemberMapOutput) ToInstanceIamMemberMapOutput added in v6.45.0

func (o InstanceIamMemberMapOutput) ToInstanceIamMemberMapOutput() InstanceIamMemberMapOutput

func (InstanceIamMemberMapOutput) ToInstanceIamMemberMapOutputWithContext added in v6.45.0

func (o InstanceIamMemberMapOutput) ToInstanceIamMemberMapOutputWithContext(ctx context.Context) InstanceIamMemberMapOutput

type InstanceIamMemberOutput added in v6.45.0

type InstanceIamMemberOutput struct{ *pulumi.OutputState }

func (InstanceIamMemberOutput) Condition added in v6.45.0

func (InstanceIamMemberOutput) ElementType added in v6.45.0

func (InstanceIamMemberOutput) ElementType() reflect.Type

func (InstanceIamMemberOutput) Etag added in v6.45.0

func (InstanceIamMemberOutput) Member added in v6.45.0

func (InstanceIamMemberOutput) Name added in v6.45.0

The ID of the instance or a fully qualified identifier for the instance.

func (InstanceIamMemberOutput) Project added in v6.45.0

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

func (InstanceIamMemberOutput) Region added in v6.45.0

The region of the Data Fusion instance.

func (InstanceIamMemberOutput) Role added in v6.45.0

func (InstanceIamMemberOutput) ToInstanceIamMemberOutput added in v6.45.0

func (o InstanceIamMemberOutput) ToInstanceIamMemberOutput() InstanceIamMemberOutput

func (InstanceIamMemberOutput) ToInstanceIamMemberOutputWithContext added in v6.45.0

func (o InstanceIamMemberOutput) ToInstanceIamMemberOutputWithContext(ctx context.Context) InstanceIamMemberOutput

type InstanceIamMemberState added in v6.45.0

type InstanceIamMemberState struct {
	Condition InstanceIamMemberConditionPtrInput
	Etag      pulumi.StringPtrInput
	Member    pulumi.StringPtrInput
	// The ID of the instance or a fully qualified identifier for the instance.
	Name pulumi.StringPtrInput
	// The ID of the project in which the resource belongs.
	// If it is not provided, the provider project is used.
	Project pulumi.StringPtrInput
	// The region of the Data Fusion instance.
	Region pulumi.StringPtrInput
	Role   pulumi.StringPtrInput
}

func (InstanceIamMemberState) ElementType added in v6.45.0

func (InstanceIamMemberState) ElementType() reflect.Type

type InstanceIamPolicy added in v6.45.0

type InstanceIamPolicy struct {
	pulumi.CustomResourceState

	Etag pulumi.StringOutput `pulumi:"etag"`
	// The ID of the instance or a fully qualified identifier for the instance.
	Name       pulumi.StringOutput `pulumi:"name"`
	PolicyData pulumi.StringOutput `pulumi:"policyData"`
	// The ID of the project in which the resource belongs.
	// If it is not provided, the provider project is used.
	Project pulumi.StringOutput `pulumi:"project"`
	// The region of the Data Fusion instance.
	Region pulumi.StringOutput `pulumi:"region"`
}

Represents a Data Fusion instance.

To get more information about Instance, see:

* [API documentation](https://cloud.google.com/data-fusion/docs/reference/rest/v1beta1/projects.locations.instances) * How-to Guides

## Example Usage ### Data Fusion Instance Basic

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/datafusion"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := datafusion.NewInstance(ctx, "basicInstance", &datafusion.InstanceArgs{
			Region: pulumi.String("us-central1"),
			Type:   pulumi.String("BASIC"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Data Fusion Instance Full

```go package main

import (

"fmt"

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/appengine"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/compute"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/datafusion"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := appengine.GetDefaultServiceAccount(ctx, nil, nil)
		if err != nil {
			return err
		}
		network, err := compute.NewNetwork(ctx, "network", nil)
		if err != nil {
			return err
		}
		privateIpAlloc, err := compute.NewGlobalAddress(ctx, "privateIpAlloc", &compute.GlobalAddressArgs{
			AddressType:  pulumi.String("INTERNAL"),
			Purpose:      pulumi.String("VPC_PEERING"),
			PrefixLength: pulumi.Int(22),
			Network:      network.ID(),
		})
		if err != nil {
			return err
		}
		_, err = datafusion.NewInstance(ctx, "extendedInstance", &datafusion.InstanceArgs{
			Description:                 pulumi.String("My Data Fusion instance"),
			DisplayName:                 pulumi.String("My Data Fusion instance"),
			Region:                      pulumi.String("us-central1"),
			Type:                        pulumi.String("BASIC"),
			EnableStackdriverLogging:    pulumi.Bool(true),
			EnableStackdriverMonitoring: pulumi.Bool(true),
			PrivateInstance:             pulumi.Bool(true),
			DataprocServiceAccount:      *pulumi.String(_default.Email),
			Labels: pulumi.StringMap{
				"example_key": pulumi.String("example_value"),
			},
			NetworkConfig: &datafusion.InstanceNetworkConfigArgs{
				Network: pulumi.String("default"),
				IpAllocation: pulumi.All(privateIpAlloc.Address, privateIpAlloc.PrefixLength).ApplyT(func(_args []interface{}) (string, error) {
					address := _args[0].(string)
					prefixLength := _args[1].(*int)
					return fmt.Sprintf("%v/%v", address, prefixLength), nil
				}).(pulumi.StringOutput),
			},
			Accelerators: datafusion.InstanceAcceleratorArray{
				&datafusion.InstanceAcceleratorArgs{
					AcceleratorType: pulumi.String("CDC"),
					State:           pulumi.String("ENABLED"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Data Fusion Instance Cmek

```go package main

import (

"fmt"

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/datafusion"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/kms"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/organizations"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		keyRing, err := kms.NewKeyRing(ctx, "keyRing", &kms.KeyRingArgs{
			Location: pulumi.String("us-central1"),
		})
		if err != nil {
			return err
		}
		cryptoKey, err := kms.NewCryptoKey(ctx, "cryptoKey", &kms.CryptoKeyArgs{
			KeyRing: keyRing.ID(),
		})
		if err != nil {
			return err
		}
		project, err := organizations.LookupProject(ctx, nil, nil)
		if err != nil {
			return err
		}
		cryptoKeyBinding, err := kms.NewCryptoKeyIAMBinding(ctx, "cryptoKeyBinding", &kms.CryptoKeyIAMBindingArgs{
			CryptoKeyId: cryptoKey.ID(),
			Role:        pulumi.String("roles/cloudkms.cryptoKeyEncrypterDecrypter"),
			Members: pulumi.StringArray{
				pulumi.String(fmt.Sprintf("serviceAccount:service-%v@gcp-sa-datafusion.iam.gserviceaccount.com", project.Number)),
			},
		})
		if err != nil {
			return err
		}
		_, err = datafusion.NewInstance(ctx, "cmek", &datafusion.InstanceArgs{
			Region: pulumi.String("us-central1"),
			Type:   pulumi.String("BASIC"),
			CryptoKeyConfig: &datafusion.InstanceCryptoKeyConfigArgs{
				KeyReference: cryptoKey.ID(),
			},
		}, pulumi.DependsOn([]pulumi.Resource{
			cryptoKeyBinding,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Data Fusion Instance Enterprise

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/datafusion"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := datafusion.NewInstance(ctx, "enterpriseInstance", &datafusion.InstanceArgs{
			EnableRbac: pulumi.Bool(true),
			Region:     pulumi.String("us-central1"),
			Type:       pulumi.String("ENTERPRISE"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Data Fusion Instance Event

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/datafusion"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/pubsub"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		eventTopic, err := pubsub.NewTopic(ctx, "eventTopic", nil)
		if err != nil {
			return err
		}
		_, err = datafusion.NewInstance(ctx, "eventInstance", &datafusion.InstanceArgs{
			Region: pulumi.String("us-central1"),
			Type:   pulumi.String("BASIC"),
			EventPublishConfig: &datafusion.InstanceEventPublishConfigArgs{
				Enabled: pulumi.Bool(true),
				Topic:   eventTopic.ID(),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Data Fusion Instance Zone

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/datafusion"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := datafusion.NewInstance(ctx, "zone", &datafusion.InstanceArgs{
			Region: pulumi.String("us-central1"),
			Type:   pulumi.String("DEVELOPER"),
			Zone:   pulumi.String("us-central1-a"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Instance can be imported using any of these accepted formats

```sh

$ pulumi import gcp:securitycenter/instanceIamPolicy:InstanceIamPolicy default projects/{{project}}/locations/{{region}}/instances/{{name}}

```

```sh

$ pulumi import gcp:securitycenter/instanceIamPolicy:InstanceIamPolicy default {{project}}/{{region}}/{{name}}

```

```sh

$ pulumi import gcp:securitycenter/instanceIamPolicy:InstanceIamPolicy default {{region}}/{{name}}

```

```sh

$ pulumi import gcp:securitycenter/instanceIamPolicy:InstanceIamPolicy default {{name}}

```

func GetInstanceIamPolicy added in v6.45.0

func GetInstanceIamPolicy(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *InstanceIamPolicyState, opts ...pulumi.ResourceOption) (*InstanceIamPolicy, error)

GetInstanceIamPolicy gets an existing InstanceIamPolicy 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 NewInstanceIamPolicy added in v6.45.0

func NewInstanceIamPolicy(ctx *pulumi.Context,
	name string, args *InstanceIamPolicyArgs, opts ...pulumi.ResourceOption) (*InstanceIamPolicy, error)

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

func (*InstanceIamPolicy) ElementType added in v6.45.0

func (*InstanceIamPolicy) ElementType() reflect.Type

func (*InstanceIamPolicy) ToInstanceIamPolicyOutput added in v6.45.0

func (i *InstanceIamPolicy) ToInstanceIamPolicyOutput() InstanceIamPolicyOutput

func (*InstanceIamPolicy) ToInstanceIamPolicyOutputWithContext added in v6.45.0

func (i *InstanceIamPolicy) ToInstanceIamPolicyOutputWithContext(ctx context.Context) InstanceIamPolicyOutput

type InstanceIamPolicyArgs added in v6.45.0

type InstanceIamPolicyArgs struct {
	// The ID of the instance or a fully qualified identifier for the instance.
	Name       pulumi.StringPtrInput
	PolicyData pulumi.StringInput
	// The ID of the project in which the resource belongs.
	// If it is not provided, the provider project is used.
	Project pulumi.StringPtrInput
	// The region of the Data Fusion instance.
	Region pulumi.StringPtrInput
}

The set of arguments for constructing a InstanceIamPolicy resource.

func (InstanceIamPolicyArgs) ElementType added in v6.45.0

func (InstanceIamPolicyArgs) ElementType() reflect.Type

type InstanceIamPolicyArray added in v6.45.0

type InstanceIamPolicyArray []InstanceIamPolicyInput

func (InstanceIamPolicyArray) ElementType added in v6.45.0

func (InstanceIamPolicyArray) ElementType() reflect.Type

func (InstanceIamPolicyArray) ToInstanceIamPolicyArrayOutput added in v6.45.0

func (i InstanceIamPolicyArray) ToInstanceIamPolicyArrayOutput() InstanceIamPolicyArrayOutput

func (InstanceIamPolicyArray) ToInstanceIamPolicyArrayOutputWithContext added in v6.45.0

func (i InstanceIamPolicyArray) ToInstanceIamPolicyArrayOutputWithContext(ctx context.Context) InstanceIamPolicyArrayOutput

type InstanceIamPolicyArrayInput added in v6.45.0

type InstanceIamPolicyArrayInput interface {
	pulumi.Input

	ToInstanceIamPolicyArrayOutput() InstanceIamPolicyArrayOutput
	ToInstanceIamPolicyArrayOutputWithContext(context.Context) InstanceIamPolicyArrayOutput
}

InstanceIamPolicyArrayInput is an input type that accepts InstanceIamPolicyArray and InstanceIamPolicyArrayOutput values. You can construct a concrete instance of `InstanceIamPolicyArrayInput` via:

InstanceIamPolicyArray{ InstanceIamPolicyArgs{...} }

type InstanceIamPolicyArrayOutput added in v6.45.0

type InstanceIamPolicyArrayOutput struct{ *pulumi.OutputState }

func (InstanceIamPolicyArrayOutput) ElementType added in v6.45.0

func (InstanceIamPolicyArrayOutput) Index added in v6.45.0

func (InstanceIamPolicyArrayOutput) ToInstanceIamPolicyArrayOutput added in v6.45.0

func (o InstanceIamPolicyArrayOutput) ToInstanceIamPolicyArrayOutput() InstanceIamPolicyArrayOutput

func (InstanceIamPolicyArrayOutput) ToInstanceIamPolicyArrayOutputWithContext added in v6.45.0

func (o InstanceIamPolicyArrayOutput) ToInstanceIamPolicyArrayOutputWithContext(ctx context.Context) InstanceIamPolicyArrayOutput

type InstanceIamPolicyInput added in v6.45.0

type InstanceIamPolicyInput interface {
	pulumi.Input

	ToInstanceIamPolicyOutput() InstanceIamPolicyOutput
	ToInstanceIamPolicyOutputWithContext(ctx context.Context) InstanceIamPolicyOutput
}

type InstanceIamPolicyMap added in v6.45.0

type InstanceIamPolicyMap map[string]InstanceIamPolicyInput

func (InstanceIamPolicyMap) ElementType added in v6.45.0

func (InstanceIamPolicyMap) ElementType() reflect.Type

func (InstanceIamPolicyMap) ToInstanceIamPolicyMapOutput added in v6.45.0

func (i InstanceIamPolicyMap) ToInstanceIamPolicyMapOutput() InstanceIamPolicyMapOutput

func (InstanceIamPolicyMap) ToInstanceIamPolicyMapOutputWithContext added in v6.45.0

func (i InstanceIamPolicyMap) ToInstanceIamPolicyMapOutputWithContext(ctx context.Context) InstanceIamPolicyMapOutput

type InstanceIamPolicyMapInput added in v6.45.0

type InstanceIamPolicyMapInput interface {
	pulumi.Input

	ToInstanceIamPolicyMapOutput() InstanceIamPolicyMapOutput
	ToInstanceIamPolicyMapOutputWithContext(context.Context) InstanceIamPolicyMapOutput
}

InstanceIamPolicyMapInput is an input type that accepts InstanceIamPolicyMap and InstanceIamPolicyMapOutput values. You can construct a concrete instance of `InstanceIamPolicyMapInput` via:

InstanceIamPolicyMap{ "key": InstanceIamPolicyArgs{...} }

type InstanceIamPolicyMapOutput added in v6.45.0

type InstanceIamPolicyMapOutput struct{ *pulumi.OutputState }

func (InstanceIamPolicyMapOutput) ElementType added in v6.45.0

func (InstanceIamPolicyMapOutput) ElementType() reflect.Type

func (InstanceIamPolicyMapOutput) MapIndex added in v6.45.0

func (InstanceIamPolicyMapOutput) ToInstanceIamPolicyMapOutput added in v6.45.0

func (o InstanceIamPolicyMapOutput) ToInstanceIamPolicyMapOutput() InstanceIamPolicyMapOutput

func (InstanceIamPolicyMapOutput) ToInstanceIamPolicyMapOutputWithContext added in v6.45.0

func (o InstanceIamPolicyMapOutput) ToInstanceIamPolicyMapOutputWithContext(ctx context.Context) InstanceIamPolicyMapOutput

type InstanceIamPolicyOutput added in v6.45.0

type InstanceIamPolicyOutput struct{ *pulumi.OutputState }

func (InstanceIamPolicyOutput) ElementType added in v6.45.0

func (InstanceIamPolicyOutput) ElementType() reflect.Type

func (InstanceIamPolicyOutput) Etag added in v6.45.0

func (InstanceIamPolicyOutput) Name added in v6.45.0

The ID of the instance or a fully qualified identifier for the instance.

func (InstanceIamPolicyOutput) PolicyData added in v6.45.0

func (InstanceIamPolicyOutput) Project added in v6.45.0

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

func (InstanceIamPolicyOutput) Region added in v6.45.0

The region of the Data Fusion instance.

func (InstanceIamPolicyOutput) ToInstanceIamPolicyOutput added in v6.45.0

func (o InstanceIamPolicyOutput) ToInstanceIamPolicyOutput() InstanceIamPolicyOutput

func (InstanceIamPolicyOutput) ToInstanceIamPolicyOutputWithContext added in v6.45.0

func (o InstanceIamPolicyOutput) ToInstanceIamPolicyOutputWithContext(ctx context.Context) InstanceIamPolicyOutput

type InstanceIamPolicyState added in v6.45.0

type InstanceIamPolicyState struct {
	Etag pulumi.StringPtrInput
	// The ID of the instance or a fully qualified identifier for the instance.
	Name       pulumi.StringPtrInput
	PolicyData pulumi.StringPtrInput
	// The ID of the project in which the resource belongs.
	// If it is not provided, the provider project is used.
	Project pulumi.StringPtrInput
	// The region of the Data Fusion instance.
	Region pulumi.StringPtrInput
}

func (InstanceIamPolicyState) ElementType added in v6.45.0

func (InstanceIamPolicyState) ElementType() reflect.Type

type MuteConfig added in v6.51.0

type MuteConfig struct {
	pulumi.CustomResourceState

	// 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.
	CreateTime pulumi.StringOutput `pulumi:"createTime"`
	// A description of the mute config.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// 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.
	Filter pulumi.StringOutput `pulumi:"filter"`
	// 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.
	MostRecentEditor pulumi.StringOutput `pulumi:"mostRecentEditor"`
	// Unique identifier provided by the client within the parent scope.
	MuteConfigId pulumi.StringOutput `pulumi:"muteConfigId"`
	// Name of the mute config. Its format is
	// organizations/{organization}/muteConfigs/{configId},
	// folders/{folder}/muteConfigs/{configId},
	// or projects/{project}/muteConfigs/{configId}
	Name pulumi.StringOutput `pulumi:"name"`
	// Resource name of the new mute configs's parent. Its format is
	// "organizations/[organizationId]", "folders/[folderId]", or
	// "projects/[projectId]".
	Parent pulumi.StringOutput `pulumi:"parent"`
	// 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.
	UpdateTime pulumi.StringOutput `pulumi:"updateTime"`
}

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 MuteConfig, see:

* [API documentation](https://cloud.google.com/security-command-center/docs/reference/rest/v1/organizations.muteConfigs)

## Example Usage ### Scc Mute Config

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/securitycenter"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := securitycenter.NewMuteConfig(ctx, "default", &securitycenter.MuteConfigArgs{
			Description:  pulumi.String("My Mute Config"),
			Filter:       pulumi.String("category: \"OS_VULNERABILITY\""),
			MuteConfigId: pulumi.String("my-config"),
			Parent:       pulumi.String("organizations/123456789"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

MuteConfig can be imported using any of these accepted formats

```sh

$ pulumi import gcp:securitycenter/muteConfig:MuteConfig default {{name}}

```

func GetMuteConfig added in v6.51.0

func GetMuteConfig(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *MuteConfigState, opts ...pulumi.ResourceOption) (*MuteConfig, error)

GetMuteConfig gets an existing MuteConfig 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 NewMuteConfig added in v6.51.0

func NewMuteConfig(ctx *pulumi.Context,
	name string, args *MuteConfigArgs, opts ...pulumi.ResourceOption) (*MuteConfig, error)

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

func (*MuteConfig) ElementType added in v6.51.0

func (*MuteConfig) ElementType() reflect.Type

func (*MuteConfig) ToMuteConfigOutput added in v6.51.0

func (i *MuteConfig) ToMuteConfigOutput() MuteConfigOutput

func (*MuteConfig) ToMuteConfigOutputWithContext added in v6.51.0

func (i *MuteConfig) ToMuteConfigOutputWithContext(ctx context.Context) MuteConfigOutput

type MuteConfigArgs added in v6.51.0

type MuteConfigArgs struct {
	// A description of the mute config.
	Description pulumi.StringPtrInput
	// 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.
	Filter pulumi.StringInput
	// Unique identifier provided by the client within the parent scope.
	MuteConfigId pulumi.StringInput
	// Resource name of the new mute configs's parent. Its format is
	// "organizations/[organizationId]", "folders/[folderId]", or
	// "projects/[projectId]".
	Parent pulumi.StringInput
}

The set of arguments for constructing a MuteConfig resource.

func (MuteConfigArgs) ElementType added in v6.51.0

func (MuteConfigArgs) ElementType() reflect.Type

type MuteConfigArray added in v6.51.0

type MuteConfigArray []MuteConfigInput

func (MuteConfigArray) ElementType added in v6.51.0

func (MuteConfigArray) ElementType() reflect.Type

func (MuteConfigArray) ToMuteConfigArrayOutput added in v6.51.0

func (i MuteConfigArray) ToMuteConfigArrayOutput() MuteConfigArrayOutput

func (MuteConfigArray) ToMuteConfigArrayOutputWithContext added in v6.51.0

func (i MuteConfigArray) ToMuteConfigArrayOutputWithContext(ctx context.Context) MuteConfigArrayOutput

type MuteConfigArrayInput added in v6.51.0

type MuteConfigArrayInput interface {
	pulumi.Input

	ToMuteConfigArrayOutput() MuteConfigArrayOutput
	ToMuteConfigArrayOutputWithContext(context.Context) MuteConfigArrayOutput
}

MuteConfigArrayInput is an input type that accepts MuteConfigArray and MuteConfigArrayOutput values. You can construct a concrete instance of `MuteConfigArrayInput` via:

MuteConfigArray{ MuteConfigArgs{...} }

type MuteConfigArrayOutput added in v6.51.0

type MuteConfigArrayOutput struct{ *pulumi.OutputState }

func (MuteConfigArrayOutput) ElementType added in v6.51.0

func (MuteConfigArrayOutput) ElementType() reflect.Type

func (MuteConfigArrayOutput) Index added in v6.51.0

func (MuteConfigArrayOutput) ToMuteConfigArrayOutput added in v6.51.0

func (o MuteConfigArrayOutput) ToMuteConfigArrayOutput() MuteConfigArrayOutput

func (MuteConfigArrayOutput) ToMuteConfigArrayOutputWithContext added in v6.51.0

func (o MuteConfigArrayOutput) ToMuteConfigArrayOutputWithContext(ctx context.Context) MuteConfigArrayOutput

type MuteConfigInput added in v6.51.0

type MuteConfigInput interface {
	pulumi.Input

	ToMuteConfigOutput() MuteConfigOutput
	ToMuteConfigOutputWithContext(ctx context.Context) MuteConfigOutput
}

type MuteConfigMap added in v6.51.0

type MuteConfigMap map[string]MuteConfigInput

func (MuteConfigMap) ElementType added in v6.51.0

func (MuteConfigMap) ElementType() reflect.Type

func (MuteConfigMap) ToMuteConfigMapOutput added in v6.51.0

func (i MuteConfigMap) ToMuteConfigMapOutput() MuteConfigMapOutput

func (MuteConfigMap) ToMuteConfigMapOutputWithContext added in v6.51.0

func (i MuteConfigMap) ToMuteConfigMapOutputWithContext(ctx context.Context) MuteConfigMapOutput

type MuteConfigMapInput added in v6.51.0

type MuteConfigMapInput interface {
	pulumi.Input

	ToMuteConfigMapOutput() MuteConfigMapOutput
	ToMuteConfigMapOutputWithContext(context.Context) MuteConfigMapOutput
}

MuteConfigMapInput is an input type that accepts MuteConfigMap and MuteConfigMapOutput values. You can construct a concrete instance of `MuteConfigMapInput` via:

MuteConfigMap{ "key": MuteConfigArgs{...} }

type MuteConfigMapOutput added in v6.51.0

type MuteConfigMapOutput struct{ *pulumi.OutputState }

func (MuteConfigMapOutput) ElementType added in v6.51.0

func (MuteConfigMapOutput) ElementType() reflect.Type

func (MuteConfigMapOutput) MapIndex added in v6.51.0

func (MuteConfigMapOutput) ToMuteConfigMapOutput added in v6.51.0

func (o MuteConfigMapOutput) ToMuteConfigMapOutput() MuteConfigMapOutput

func (MuteConfigMapOutput) ToMuteConfigMapOutputWithContext added in v6.51.0

func (o MuteConfigMapOutput) ToMuteConfigMapOutputWithContext(ctx context.Context) MuteConfigMapOutput

type MuteConfigOutput added in v6.51.0

type MuteConfigOutput struct{ *pulumi.OutputState }

func (MuteConfigOutput) CreateTime added in v6.51.0

func (o MuteConfigOutput) CreateTime() pulumi.StringOutput

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.

func (MuteConfigOutput) Description added in v6.51.0

func (o MuteConfigOutput) Description() pulumi.StringPtrOutput

A description of the mute config.

func (MuteConfigOutput) ElementType added in v6.51.0

func (MuteConfigOutput) ElementType() reflect.Type

func (MuteConfigOutput) Filter added in v6.51.0

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.

func (MuteConfigOutput) MostRecentEditor added in v6.51.0

func (o MuteConfigOutput) MostRecentEditor() pulumi.StringOutput

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.

func (MuteConfigOutput) MuteConfigId added in v6.51.0

func (o MuteConfigOutput) MuteConfigId() pulumi.StringOutput

Unique identifier provided by the client within the parent scope.

func (MuteConfigOutput) Name added in v6.51.0

Name of the mute config. Its format is organizations/{organization}/muteConfigs/{configId}, folders/{folder}/muteConfigs/{configId}, or projects/{project}/muteConfigs/{configId}

func (MuteConfigOutput) Parent added in v6.51.0

Resource name of the new mute configs's parent. Its format is "organizations/[organizationId]", "folders/[folderId]", or "projects/[projectId]".

func (MuteConfigOutput) ToMuteConfigOutput added in v6.51.0

func (o MuteConfigOutput) ToMuteConfigOutput() MuteConfigOutput

func (MuteConfigOutput) ToMuteConfigOutputWithContext added in v6.51.0

func (o MuteConfigOutput) ToMuteConfigOutputWithContext(ctx context.Context) MuteConfigOutput

func (MuteConfigOutput) UpdateTime added in v6.51.0

func (o MuteConfigOutput) UpdateTime() pulumi.StringOutput

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.

type MuteConfigState added in v6.51.0

type MuteConfigState struct {
	// 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.
	CreateTime pulumi.StringPtrInput
	// A description of the mute config.
	Description pulumi.StringPtrInput
	// 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.
	Filter pulumi.StringPtrInput
	// 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.
	MostRecentEditor pulumi.StringPtrInput
	// Unique identifier provided by the client within the parent scope.
	MuteConfigId pulumi.StringPtrInput
	// Name of the mute config. Its format is
	// organizations/{organization}/muteConfigs/{configId},
	// folders/{folder}/muteConfigs/{configId},
	// or projects/{project}/muteConfigs/{configId}
	Name pulumi.StringPtrInput
	// Resource name of the new mute configs's parent. Its format is
	// "organizations/[organizationId]", "folders/[folderId]", or
	// "projects/[projectId]".
	Parent pulumi.StringPtrInput
	// 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.
	UpdateTime pulumi.StringPtrInput
}

func (MuteConfigState) ElementType added in v6.51.0

func (MuteConfigState) ElementType() reflect.Type

type NotificationConfig

type NotificationConfig struct {
	pulumi.CustomResourceState

	// This must be unique within the organization.
	ConfigId pulumi.StringOutput `pulumi:"configId"`
	// The description of the notification config (max of 1024 characters).
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The resource name of this notification config, in the format
	// `organizations/{{organization}}/notificationConfigs/{{config_id}}`.
	Name pulumi.StringOutput `pulumi:"name"`
	// The organization whose Cloud Security Command Center the Notification
	// Config lives in.
	Organization pulumi.StringOutput `pulumi:"organization"`
	// The Pub/Sub topic to send notifications to. Its format is
	// "projects/[projectId]/topics/[topic]".
	PubsubTopic pulumi.StringOutput `pulumi:"pubsubTopic"`
	// The service account that needs "pubsub.topics.publish" permission to
	// publish to the Pub/Sub topic.
	ServiceAccount pulumi.StringOutput `pulumi:"serviceAccount"`
	// The config for triggering streaming-based notifications.
	// Structure is documented below.
	StreamingConfig NotificationConfigStreamingConfigOutput `pulumi:"streamingConfig"`
}

A Cloud Security Command Center (Cloud SCC) notification configs. A notification config is a Cloud SCC resource that contains the configuration to send notifications for create/update events of findings, assets and etc. > **Note:** In order to use Cloud SCC resources, your organization must be enrolled in [SCC Standard/Premium](https://cloud.google.com/security-command-center/docs/quickstart-security-command-center). Without doing so, you may run into errors during resource creation.

To get more information about NotificationConfig, see:

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

## Example Usage ### Scc Notification Config Basic

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/pubsub"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/securitycenter"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		sccNotification, err := pubsub.NewTopic(ctx, "sccNotification", nil)
		if err != nil {
			return err
		}
		_, err = securitycenter.NewNotificationConfig(ctx, "customNotificationConfig", &securitycenter.NotificationConfigArgs{
			ConfigId:     pulumi.String("my-config"),
			Organization: pulumi.String("123456789"),
			Description:  pulumi.String("My custom Cloud Security Command Center Finding Notification Configuration"),
			PubsubTopic:  sccNotification.ID(),
			StreamingConfig: &securitycenter.NotificationConfigStreamingConfigArgs{
				Filter: pulumi.String("category = \"OPEN_FIREWALL\" AND state = \"ACTIVE\""),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

NotificationConfig can be imported using any of these accepted formats

```sh

$ pulumi import gcp:securitycenter/notificationConfig:NotificationConfig default organizations/{{organization}}/notificationConfigs/{{name}}

```

```sh

$ pulumi import gcp:securitycenter/notificationConfig:NotificationConfig default {{organization}}/{{name}}

```

func GetNotificationConfig

func GetNotificationConfig(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *NotificationConfigState, opts ...pulumi.ResourceOption) (*NotificationConfig, error)

GetNotificationConfig gets an existing NotificationConfig 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 NewNotificationConfig

func NewNotificationConfig(ctx *pulumi.Context,
	name string, args *NotificationConfigArgs, opts ...pulumi.ResourceOption) (*NotificationConfig, error)

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

func (*NotificationConfig) ElementType

func (*NotificationConfig) ElementType() reflect.Type

func (*NotificationConfig) ToNotificationConfigOutput

func (i *NotificationConfig) ToNotificationConfigOutput() NotificationConfigOutput

func (*NotificationConfig) ToNotificationConfigOutputWithContext

func (i *NotificationConfig) ToNotificationConfigOutputWithContext(ctx context.Context) NotificationConfigOutput

type NotificationConfigArgs

type NotificationConfigArgs struct {
	// This must be unique within the organization.
	ConfigId pulumi.StringInput
	// The description of the notification config (max of 1024 characters).
	Description pulumi.StringPtrInput
	// The organization whose Cloud Security Command Center the Notification
	// Config lives in.
	Organization pulumi.StringInput
	// The Pub/Sub topic to send notifications to. Its format is
	// "projects/[projectId]/topics/[topic]".
	PubsubTopic pulumi.StringInput
	// The config for triggering streaming-based notifications.
	// Structure is documented below.
	StreamingConfig NotificationConfigStreamingConfigInput
}

The set of arguments for constructing a NotificationConfig resource.

func (NotificationConfigArgs) ElementType

func (NotificationConfigArgs) ElementType() reflect.Type

type NotificationConfigArray

type NotificationConfigArray []NotificationConfigInput

func (NotificationConfigArray) ElementType

func (NotificationConfigArray) ElementType() reflect.Type

func (NotificationConfigArray) ToNotificationConfigArrayOutput

func (i NotificationConfigArray) ToNotificationConfigArrayOutput() NotificationConfigArrayOutput

func (NotificationConfigArray) ToNotificationConfigArrayOutputWithContext

func (i NotificationConfigArray) ToNotificationConfigArrayOutputWithContext(ctx context.Context) NotificationConfigArrayOutput

type NotificationConfigArrayInput

type NotificationConfigArrayInput interface {
	pulumi.Input

	ToNotificationConfigArrayOutput() NotificationConfigArrayOutput
	ToNotificationConfigArrayOutputWithContext(context.Context) NotificationConfigArrayOutput
}

NotificationConfigArrayInput is an input type that accepts NotificationConfigArray and NotificationConfigArrayOutput values. You can construct a concrete instance of `NotificationConfigArrayInput` via:

NotificationConfigArray{ NotificationConfigArgs{...} }

type NotificationConfigArrayOutput

type NotificationConfigArrayOutput struct{ *pulumi.OutputState }

func (NotificationConfigArrayOutput) ElementType

func (NotificationConfigArrayOutput) Index

func (NotificationConfigArrayOutput) ToNotificationConfigArrayOutput

func (o NotificationConfigArrayOutput) ToNotificationConfigArrayOutput() NotificationConfigArrayOutput

func (NotificationConfigArrayOutput) ToNotificationConfigArrayOutputWithContext

func (o NotificationConfigArrayOutput) ToNotificationConfigArrayOutputWithContext(ctx context.Context) NotificationConfigArrayOutput

type NotificationConfigInput

type NotificationConfigInput interface {
	pulumi.Input

	ToNotificationConfigOutput() NotificationConfigOutput
	ToNotificationConfigOutputWithContext(ctx context.Context) NotificationConfigOutput
}

type NotificationConfigMap

type NotificationConfigMap map[string]NotificationConfigInput

func (NotificationConfigMap) ElementType

func (NotificationConfigMap) ElementType() reflect.Type

func (NotificationConfigMap) ToNotificationConfigMapOutput

func (i NotificationConfigMap) ToNotificationConfigMapOutput() NotificationConfigMapOutput

func (NotificationConfigMap) ToNotificationConfigMapOutputWithContext

func (i NotificationConfigMap) ToNotificationConfigMapOutputWithContext(ctx context.Context) NotificationConfigMapOutput

type NotificationConfigMapInput

type NotificationConfigMapInput interface {
	pulumi.Input

	ToNotificationConfigMapOutput() NotificationConfigMapOutput
	ToNotificationConfigMapOutputWithContext(context.Context) NotificationConfigMapOutput
}

NotificationConfigMapInput is an input type that accepts NotificationConfigMap and NotificationConfigMapOutput values. You can construct a concrete instance of `NotificationConfigMapInput` via:

NotificationConfigMap{ "key": NotificationConfigArgs{...} }

type NotificationConfigMapOutput

type NotificationConfigMapOutput struct{ *pulumi.OutputState }

func (NotificationConfigMapOutput) ElementType

func (NotificationConfigMapOutput) MapIndex

func (NotificationConfigMapOutput) ToNotificationConfigMapOutput

func (o NotificationConfigMapOutput) ToNotificationConfigMapOutput() NotificationConfigMapOutput

func (NotificationConfigMapOutput) ToNotificationConfigMapOutputWithContext

func (o NotificationConfigMapOutput) ToNotificationConfigMapOutputWithContext(ctx context.Context) NotificationConfigMapOutput

type NotificationConfigOutput

type NotificationConfigOutput struct{ *pulumi.OutputState }

func (NotificationConfigOutput) ConfigId added in v6.23.0

This must be unique within the organization.

func (NotificationConfigOutput) Description added in v6.23.0

The description of the notification config (max of 1024 characters).

func (NotificationConfigOutput) ElementType

func (NotificationConfigOutput) ElementType() reflect.Type

func (NotificationConfigOutput) Name added in v6.23.0

The resource name of this notification config, in the format `organizations/{{organization}}/notificationConfigs/{{config_id}}`.

func (NotificationConfigOutput) Organization added in v6.23.0

func (o NotificationConfigOutput) Organization() pulumi.StringOutput

The organization whose Cloud Security Command Center the Notification Config lives in.

func (NotificationConfigOutput) PubsubTopic added in v6.23.0

The Pub/Sub topic to send notifications to. Its format is "projects/[projectId]/topics/[topic]".

func (NotificationConfigOutput) ServiceAccount added in v6.23.0

func (o NotificationConfigOutput) ServiceAccount() pulumi.StringOutput

The service account that needs "pubsub.topics.publish" permission to publish to the Pub/Sub topic.

func (NotificationConfigOutput) StreamingConfig added in v6.23.0

The config for triggering streaming-based notifications. Structure is documented below.

func (NotificationConfigOutput) ToNotificationConfigOutput

func (o NotificationConfigOutput) ToNotificationConfigOutput() NotificationConfigOutput

func (NotificationConfigOutput) ToNotificationConfigOutputWithContext

func (o NotificationConfigOutput) ToNotificationConfigOutputWithContext(ctx context.Context) NotificationConfigOutput

type NotificationConfigState

type NotificationConfigState struct {
	// This must be unique within the organization.
	ConfigId pulumi.StringPtrInput
	// The description of the notification config (max of 1024 characters).
	Description pulumi.StringPtrInput
	// The resource name of this notification config, in the format
	// `organizations/{{organization}}/notificationConfigs/{{config_id}}`.
	Name pulumi.StringPtrInput
	// The organization whose Cloud Security Command Center the Notification
	// Config lives in.
	Organization pulumi.StringPtrInput
	// The Pub/Sub topic to send notifications to. Its format is
	// "projects/[projectId]/topics/[topic]".
	PubsubTopic pulumi.StringPtrInput
	// The service account that needs "pubsub.topics.publish" permission to
	// publish to the Pub/Sub topic.
	ServiceAccount pulumi.StringPtrInput
	// The config for triggering streaming-based notifications.
	// Structure is documented below.
	StreamingConfig NotificationConfigStreamingConfigPtrInput
}

func (NotificationConfigState) ElementType

func (NotificationConfigState) ElementType() reflect.Type

type NotificationConfigStreamingConfig

type NotificationConfigStreamingConfig struct {
	// Expression that defines the filter to apply across create/update
	// events of assets or findings as specified by the event type. The
	// expression is a list of zero or more restrictions combined via
	// logical operators AND and OR. Parentheses are supported, and OR
	// has higher precedence than AND.
	// Restrictions have the form <field> <operator> <value> and may have
	// a - character in front of them to indicate negation. The fields
	// map to those defined in the corresponding resource.
	// The supported operators are:
	// * = for all value types.
	// * > , <, >=, <= for integer values.
	// * :, meaning substring matching, for strings.
	//   The supported value types are:
	// * string literals in quotes.
	// * integer literals without quotes.
	// * boolean literals true and false without quotes.
	//   See
	//   [Filtering notifications](https://cloud.google.com/security-command-center/docs/how-to-api-filter-notifications)
	//   for information on how to write a filter.
	Filter string `pulumi:"filter"`
}

type NotificationConfigStreamingConfigArgs

type NotificationConfigStreamingConfigArgs struct {
	// Expression that defines the filter to apply across create/update
	// events of assets or findings as specified by the event type. The
	// expression is a list of zero or more restrictions combined via
	// logical operators AND and OR. Parentheses are supported, and OR
	// has higher precedence than AND.
	// Restrictions have the form <field> <operator> <value> and may have
	// a - character in front of them to indicate negation. The fields
	// map to those defined in the corresponding resource.
	// The supported operators are:
	// * = for all value types.
	// * > , <, >=, <= for integer values.
	// * :, meaning substring matching, for strings.
	//   The supported value types are:
	// * string literals in quotes.
	// * integer literals without quotes.
	// * boolean literals true and false without quotes.
	//   See
	//   [Filtering notifications](https://cloud.google.com/security-command-center/docs/how-to-api-filter-notifications)
	//   for information on how to write a filter.
	Filter pulumi.StringInput `pulumi:"filter"`
}

func (NotificationConfigStreamingConfigArgs) ElementType

func (NotificationConfigStreamingConfigArgs) ToNotificationConfigStreamingConfigOutput

func (i NotificationConfigStreamingConfigArgs) ToNotificationConfigStreamingConfigOutput() NotificationConfigStreamingConfigOutput

func (NotificationConfigStreamingConfigArgs) ToNotificationConfigStreamingConfigOutputWithContext

func (i NotificationConfigStreamingConfigArgs) ToNotificationConfigStreamingConfigOutputWithContext(ctx context.Context) NotificationConfigStreamingConfigOutput

func (NotificationConfigStreamingConfigArgs) ToNotificationConfigStreamingConfigPtrOutput

func (i NotificationConfigStreamingConfigArgs) ToNotificationConfigStreamingConfigPtrOutput() NotificationConfigStreamingConfigPtrOutput

func (NotificationConfigStreamingConfigArgs) ToNotificationConfigStreamingConfigPtrOutputWithContext

func (i NotificationConfigStreamingConfigArgs) ToNotificationConfigStreamingConfigPtrOutputWithContext(ctx context.Context) NotificationConfigStreamingConfigPtrOutput

type NotificationConfigStreamingConfigInput

type NotificationConfigStreamingConfigInput interface {
	pulumi.Input

	ToNotificationConfigStreamingConfigOutput() NotificationConfigStreamingConfigOutput
	ToNotificationConfigStreamingConfigOutputWithContext(context.Context) NotificationConfigStreamingConfigOutput
}

NotificationConfigStreamingConfigInput is an input type that accepts NotificationConfigStreamingConfigArgs and NotificationConfigStreamingConfigOutput values. You can construct a concrete instance of `NotificationConfigStreamingConfigInput` via:

NotificationConfigStreamingConfigArgs{...}

type NotificationConfigStreamingConfigOutput

type NotificationConfigStreamingConfigOutput struct{ *pulumi.OutputState }

func (NotificationConfigStreamingConfigOutput) ElementType

func (NotificationConfigStreamingConfigOutput) Filter

Expression that defines the filter to apply across create/update events of assets or findings as specified by the event type. The expression is a list of zero or more restrictions combined via logical operators AND and OR. Parentheses are supported, and OR has higher precedence than AND. Restrictions have the form <field> <operator> <value> and may have a - character in front of them to indicate negation. The fields map to those defined in the corresponding resource. The supported operators are:

func (NotificationConfigStreamingConfigOutput) ToNotificationConfigStreamingConfigOutput

func (o NotificationConfigStreamingConfigOutput) ToNotificationConfigStreamingConfigOutput() NotificationConfigStreamingConfigOutput

func (NotificationConfigStreamingConfigOutput) ToNotificationConfigStreamingConfigOutputWithContext

func (o NotificationConfigStreamingConfigOutput) ToNotificationConfigStreamingConfigOutputWithContext(ctx context.Context) NotificationConfigStreamingConfigOutput

func (NotificationConfigStreamingConfigOutput) ToNotificationConfigStreamingConfigPtrOutput

func (o NotificationConfigStreamingConfigOutput) ToNotificationConfigStreamingConfigPtrOutput() NotificationConfigStreamingConfigPtrOutput

func (NotificationConfigStreamingConfigOutput) ToNotificationConfigStreamingConfigPtrOutputWithContext

func (o NotificationConfigStreamingConfigOutput) ToNotificationConfigStreamingConfigPtrOutputWithContext(ctx context.Context) NotificationConfigStreamingConfigPtrOutput

type NotificationConfigStreamingConfigPtrInput

type NotificationConfigStreamingConfigPtrInput interface {
	pulumi.Input

	ToNotificationConfigStreamingConfigPtrOutput() NotificationConfigStreamingConfigPtrOutput
	ToNotificationConfigStreamingConfigPtrOutputWithContext(context.Context) NotificationConfigStreamingConfigPtrOutput
}

NotificationConfigStreamingConfigPtrInput is an input type that accepts NotificationConfigStreamingConfigArgs, NotificationConfigStreamingConfigPtr and NotificationConfigStreamingConfigPtrOutput values. You can construct a concrete instance of `NotificationConfigStreamingConfigPtrInput` via:

        NotificationConfigStreamingConfigArgs{...}

or:

        nil

type NotificationConfigStreamingConfigPtrOutput

type NotificationConfigStreamingConfigPtrOutput struct{ *pulumi.OutputState }

func (NotificationConfigStreamingConfigPtrOutput) Elem

func (NotificationConfigStreamingConfigPtrOutput) ElementType

func (NotificationConfigStreamingConfigPtrOutput) Filter

Expression that defines the filter to apply across create/update events of assets or findings as specified by the event type. The expression is a list of zero or more restrictions combined via logical operators AND and OR. Parentheses are supported, and OR has higher precedence than AND. Restrictions have the form <field> <operator> <value> and may have a - character in front of them to indicate negation. The fields map to those defined in the corresponding resource. The supported operators are:

func (NotificationConfigStreamingConfigPtrOutput) ToNotificationConfigStreamingConfigPtrOutput

func (o NotificationConfigStreamingConfigPtrOutput) ToNotificationConfigStreamingConfigPtrOutput() NotificationConfigStreamingConfigPtrOutput

func (NotificationConfigStreamingConfigPtrOutput) ToNotificationConfigStreamingConfigPtrOutputWithContext

func (o NotificationConfigStreamingConfigPtrOutput) ToNotificationConfigStreamingConfigPtrOutputWithContext(ctx context.Context) NotificationConfigStreamingConfigPtrOutput

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/v1/organizations.sources) * How-to Guides

## Example Usage ### Scc Source Basic

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/securitycenter"
"github.com/pulumi/pulumi/sdk/v3/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

func (*Source) ElementType() reflect.Type

func (*Source) ToSourceOutput

func (i *Source) ToSourceOutput() SourceOutput

func (*Source) ToSourceOutputWithContext

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

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

type SourceArray []SourceInput

func (SourceArray) ElementType

func (SourceArray) ElementType() reflect.Type

func (SourceArray) ToSourceArrayOutput

func (i SourceArray) ToSourceArrayOutput() SourceArrayOutput

func (SourceArray) ToSourceArrayOutputWithContext

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

type SourceArrayInput

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

type SourceArrayOutput struct{ *pulumi.OutputState }

func (SourceArrayOutput) ElementType

func (SourceArrayOutput) ElementType() reflect.Type

func (SourceArrayOutput) Index

func (SourceArrayOutput) ToSourceArrayOutput

func (o SourceArrayOutput) ToSourceArrayOutput() SourceArrayOutput

func (SourceArrayOutput) ToSourceArrayOutputWithContext

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

type SourceIamBinding added in v6.42.0

type SourceIamBinding struct {
	pulumi.CustomResourceState

	Condition SourceIamBindingConditionPtrOutput `pulumi:"condition"`
	Etag      pulumi.StringOutput                `pulumi:"etag"`
	Members   pulumi.StringArrayOutput           `pulumi:"members"`
	// The organization whose Cloud Security Command Center the Source
	// lives in.
	Organization pulumi.StringOutput `pulumi:"organization"`
	Role         pulumi.StringOutput `pulumi:"role"`
	Source       pulumi.StringOutput `pulumi:"source"`
}

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/v1/organizations.sources) * How-to Guides

## Example Usage ### Scc Source Basic

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/securitycenter"
"github.com/pulumi/pulumi/sdk/v3/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/sourceIamBinding:SourceIamBinding default organizations/{{organization}}/sources/{{name}}

```

```sh

$ pulumi import gcp:securitycenter/sourceIamBinding:SourceIamBinding default {{organization}}/{{name}}

```

func GetSourceIamBinding added in v6.42.0

func GetSourceIamBinding(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *SourceIamBindingState, opts ...pulumi.ResourceOption) (*SourceIamBinding, error)

GetSourceIamBinding gets an existing SourceIamBinding 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 NewSourceIamBinding added in v6.42.0

func NewSourceIamBinding(ctx *pulumi.Context,
	name string, args *SourceIamBindingArgs, opts ...pulumi.ResourceOption) (*SourceIamBinding, error)

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

func (*SourceIamBinding) ElementType added in v6.42.0

func (*SourceIamBinding) ElementType() reflect.Type

func (*SourceIamBinding) ToSourceIamBindingOutput added in v6.42.0

func (i *SourceIamBinding) ToSourceIamBindingOutput() SourceIamBindingOutput

func (*SourceIamBinding) ToSourceIamBindingOutputWithContext added in v6.42.0

func (i *SourceIamBinding) ToSourceIamBindingOutputWithContext(ctx context.Context) SourceIamBindingOutput

type SourceIamBindingArgs added in v6.42.0

type SourceIamBindingArgs struct {
	Condition SourceIamBindingConditionPtrInput
	Members   pulumi.StringArrayInput
	// The organization whose Cloud Security Command Center the Source
	// lives in.
	Organization pulumi.StringInput
	Role         pulumi.StringInput
	Source       pulumi.StringInput
}

The set of arguments for constructing a SourceIamBinding resource.

func (SourceIamBindingArgs) ElementType added in v6.42.0

func (SourceIamBindingArgs) ElementType() reflect.Type

type SourceIamBindingArray added in v6.42.0

type SourceIamBindingArray []SourceIamBindingInput

func (SourceIamBindingArray) ElementType added in v6.42.0

func (SourceIamBindingArray) ElementType() reflect.Type

func (SourceIamBindingArray) ToSourceIamBindingArrayOutput added in v6.42.0

func (i SourceIamBindingArray) ToSourceIamBindingArrayOutput() SourceIamBindingArrayOutput

func (SourceIamBindingArray) ToSourceIamBindingArrayOutputWithContext added in v6.42.0

func (i SourceIamBindingArray) ToSourceIamBindingArrayOutputWithContext(ctx context.Context) SourceIamBindingArrayOutput

type SourceIamBindingArrayInput added in v6.42.0

type SourceIamBindingArrayInput interface {
	pulumi.Input

	ToSourceIamBindingArrayOutput() SourceIamBindingArrayOutput
	ToSourceIamBindingArrayOutputWithContext(context.Context) SourceIamBindingArrayOutput
}

SourceIamBindingArrayInput is an input type that accepts SourceIamBindingArray and SourceIamBindingArrayOutput values. You can construct a concrete instance of `SourceIamBindingArrayInput` via:

SourceIamBindingArray{ SourceIamBindingArgs{...} }

type SourceIamBindingArrayOutput added in v6.42.0

type SourceIamBindingArrayOutput struct{ *pulumi.OutputState }

func (SourceIamBindingArrayOutput) ElementType added in v6.42.0

func (SourceIamBindingArrayOutput) Index added in v6.42.0

func (SourceIamBindingArrayOutput) ToSourceIamBindingArrayOutput added in v6.42.0

func (o SourceIamBindingArrayOutput) ToSourceIamBindingArrayOutput() SourceIamBindingArrayOutput

func (SourceIamBindingArrayOutput) ToSourceIamBindingArrayOutputWithContext added in v6.42.0

func (o SourceIamBindingArrayOutput) ToSourceIamBindingArrayOutputWithContext(ctx context.Context) SourceIamBindingArrayOutput

type SourceIamBindingCondition added in v6.42.0

type SourceIamBindingCondition struct {
	// The description of the source (max of 1024 characters).
	Description *string `pulumi:"description"`
	Expression  string  `pulumi:"expression"`
	Title       string  `pulumi:"title"`
}

type SourceIamBindingConditionArgs added in v6.42.0

type SourceIamBindingConditionArgs struct {
	// The description of the source (max of 1024 characters).
	Description pulumi.StringPtrInput `pulumi:"description"`
	Expression  pulumi.StringInput    `pulumi:"expression"`
	Title       pulumi.StringInput    `pulumi:"title"`
}

func (SourceIamBindingConditionArgs) ElementType added in v6.42.0

func (SourceIamBindingConditionArgs) ToSourceIamBindingConditionOutput added in v6.42.0

func (i SourceIamBindingConditionArgs) ToSourceIamBindingConditionOutput() SourceIamBindingConditionOutput

func (SourceIamBindingConditionArgs) ToSourceIamBindingConditionOutputWithContext added in v6.42.0

func (i SourceIamBindingConditionArgs) ToSourceIamBindingConditionOutputWithContext(ctx context.Context) SourceIamBindingConditionOutput

func (SourceIamBindingConditionArgs) ToSourceIamBindingConditionPtrOutput added in v6.42.0

func (i SourceIamBindingConditionArgs) ToSourceIamBindingConditionPtrOutput() SourceIamBindingConditionPtrOutput

func (SourceIamBindingConditionArgs) ToSourceIamBindingConditionPtrOutputWithContext added in v6.42.0

func (i SourceIamBindingConditionArgs) ToSourceIamBindingConditionPtrOutputWithContext(ctx context.Context) SourceIamBindingConditionPtrOutput

type SourceIamBindingConditionInput added in v6.42.0

type SourceIamBindingConditionInput interface {
	pulumi.Input

	ToSourceIamBindingConditionOutput() SourceIamBindingConditionOutput
	ToSourceIamBindingConditionOutputWithContext(context.Context) SourceIamBindingConditionOutput
}

SourceIamBindingConditionInput is an input type that accepts SourceIamBindingConditionArgs and SourceIamBindingConditionOutput values. You can construct a concrete instance of `SourceIamBindingConditionInput` via:

SourceIamBindingConditionArgs{...}

type SourceIamBindingConditionOutput added in v6.42.0

type SourceIamBindingConditionOutput struct{ *pulumi.OutputState }

func (SourceIamBindingConditionOutput) Description added in v6.42.0

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

func (SourceIamBindingConditionOutput) ElementType added in v6.42.0

func (SourceIamBindingConditionOutput) Expression added in v6.42.0

func (SourceIamBindingConditionOutput) Title added in v6.42.0

func (SourceIamBindingConditionOutput) ToSourceIamBindingConditionOutput added in v6.42.0

func (o SourceIamBindingConditionOutput) ToSourceIamBindingConditionOutput() SourceIamBindingConditionOutput

func (SourceIamBindingConditionOutput) ToSourceIamBindingConditionOutputWithContext added in v6.42.0

func (o SourceIamBindingConditionOutput) ToSourceIamBindingConditionOutputWithContext(ctx context.Context) SourceIamBindingConditionOutput

func (SourceIamBindingConditionOutput) ToSourceIamBindingConditionPtrOutput added in v6.42.0

func (o SourceIamBindingConditionOutput) ToSourceIamBindingConditionPtrOutput() SourceIamBindingConditionPtrOutput

func (SourceIamBindingConditionOutput) ToSourceIamBindingConditionPtrOutputWithContext added in v6.42.0

func (o SourceIamBindingConditionOutput) ToSourceIamBindingConditionPtrOutputWithContext(ctx context.Context) SourceIamBindingConditionPtrOutput

type SourceIamBindingConditionPtrInput added in v6.42.0

type SourceIamBindingConditionPtrInput interface {
	pulumi.Input

	ToSourceIamBindingConditionPtrOutput() SourceIamBindingConditionPtrOutput
	ToSourceIamBindingConditionPtrOutputWithContext(context.Context) SourceIamBindingConditionPtrOutput
}

SourceIamBindingConditionPtrInput is an input type that accepts SourceIamBindingConditionArgs, SourceIamBindingConditionPtr and SourceIamBindingConditionPtrOutput values. You can construct a concrete instance of `SourceIamBindingConditionPtrInput` via:

        SourceIamBindingConditionArgs{...}

or:

        nil

func SourceIamBindingConditionPtr added in v6.42.0

type SourceIamBindingConditionPtrOutput added in v6.42.0

type SourceIamBindingConditionPtrOutput struct{ *pulumi.OutputState }

func (SourceIamBindingConditionPtrOutput) Description added in v6.42.0

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

func (SourceIamBindingConditionPtrOutput) Elem added in v6.42.0

func (SourceIamBindingConditionPtrOutput) ElementType added in v6.42.0

func (SourceIamBindingConditionPtrOutput) Expression added in v6.42.0

func (SourceIamBindingConditionPtrOutput) Title added in v6.42.0

func (SourceIamBindingConditionPtrOutput) ToSourceIamBindingConditionPtrOutput added in v6.42.0

func (o SourceIamBindingConditionPtrOutput) ToSourceIamBindingConditionPtrOutput() SourceIamBindingConditionPtrOutput

func (SourceIamBindingConditionPtrOutput) ToSourceIamBindingConditionPtrOutputWithContext added in v6.42.0

func (o SourceIamBindingConditionPtrOutput) ToSourceIamBindingConditionPtrOutputWithContext(ctx context.Context) SourceIamBindingConditionPtrOutput

type SourceIamBindingInput added in v6.42.0

type SourceIamBindingInput interface {
	pulumi.Input

	ToSourceIamBindingOutput() SourceIamBindingOutput
	ToSourceIamBindingOutputWithContext(ctx context.Context) SourceIamBindingOutput
}

type SourceIamBindingMap added in v6.42.0

type SourceIamBindingMap map[string]SourceIamBindingInput

func (SourceIamBindingMap) ElementType added in v6.42.0

func (SourceIamBindingMap) ElementType() reflect.Type

func (SourceIamBindingMap) ToSourceIamBindingMapOutput added in v6.42.0

func (i SourceIamBindingMap) ToSourceIamBindingMapOutput() SourceIamBindingMapOutput

func (SourceIamBindingMap) ToSourceIamBindingMapOutputWithContext added in v6.42.0

func (i SourceIamBindingMap) ToSourceIamBindingMapOutputWithContext(ctx context.Context) SourceIamBindingMapOutput

type SourceIamBindingMapInput added in v6.42.0

type SourceIamBindingMapInput interface {
	pulumi.Input

	ToSourceIamBindingMapOutput() SourceIamBindingMapOutput
	ToSourceIamBindingMapOutputWithContext(context.Context) SourceIamBindingMapOutput
}

SourceIamBindingMapInput is an input type that accepts SourceIamBindingMap and SourceIamBindingMapOutput values. You can construct a concrete instance of `SourceIamBindingMapInput` via:

SourceIamBindingMap{ "key": SourceIamBindingArgs{...} }

type SourceIamBindingMapOutput added in v6.42.0

type SourceIamBindingMapOutput struct{ *pulumi.OutputState }

func (SourceIamBindingMapOutput) ElementType added in v6.42.0

func (SourceIamBindingMapOutput) ElementType() reflect.Type

func (SourceIamBindingMapOutput) MapIndex added in v6.42.0

func (SourceIamBindingMapOutput) ToSourceIamBindingMapOutput added in v6.42.0

func (o SourceIamBindingMapOutput) ToSourceIamBindingMapOutput() SourceIamBindingMapOutput

func (SourceIamBindingMapOutput) ToSourceIamBindingMapOutputWithContext added in v6.42.0

func (o SourceIamBindingMapOutput) ToSourceIamBindingMapOutputWithContext(ctx context.Context) SourceIamBindingMapOutput

type SourceIamBindingOutput added in v6.42.0

type SourceIamBindingOutput struct{ *pulumi.OutputState }

func (SourceIamBindingOutput) Condition added in v6.42.0

func (SourceIamBindingOutput) ElementType added in v6.42.0

func (SourceIamBindingOutput) ElementType() reflect.Type

func (SourceIamBindingOutput) Etag added in v6.42.0

func (SourceIamBindingOutput) Members added in v6.42.0

func (SourceIamBindingOutput) Organization added in v6.42.0

func (o SourceIamBindingOutput) Organization() pulumi.StringOutput

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

func (SourceIamBindingOutput) Role added in v6.42.0

func (SourceIamBindingOutput) Source added in v6.42.0

func (SourceIamBindingOutput) ToSourceIamBindingOutput added in v6.42.0

func (o SourceIamBindingOutput) ToSourceIamBindingOutput() SourceIamBindingOutput

func (SourceIamBindingOutput) ToSourceIamBindingOutputWithContext added in v6.42.0

func (o SourceIamBindingOutput) ToSourceIamBindingOutputWithContext(ctx context.Context) SourceIamBindingOutput

type SourceIamBindingState added in v6.42.0

type SourceIamBindingState struct {
	Condition SourceIamBindingConditionPtrInput
	Etag      pulumi.StringPtrInput
	Members   pulumi.StringArrayInput
	// The organization whose Cloud Security Command Center the Source
	// lives in.
	Organization pulumi.StringPtrInput
	Role         pulumi.StringPtrInput
	Source       pulumi.StringPtrInput
}

func (SourceIamBindingState) ElementType added in v6.42.0

func (SourceIamBindingState) ElementType() reflect.Type

type SourceIamMember added in v6.42.0

type SourceIamMember struct {
	pulumi.CustomResourceState

	Condition SourceIamMemberConditionPtrOutput `pulumi:"condition"`
	Etag      pulumi.StringOutput               `pulumi:"etag"`
	Member    pulumi.StringOutput               `pulumi:"member"`
	// The organization whose Cloud Security Command Center the Source
	// lives in.
	Organization pulumi.StringOutput `pulumi:"organization"`
	Role         pulumi.StringOutput `pulumi:"role"`
	Source       pulumi.StringOutput `pulumi:"source"`
}

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/v1/organizations.sources) * How-to Guides

## Example Usage ### Scc Source Basic

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/securitycenter"
"github.com/pulumi/pulumi/sdk/v3/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/sourceIamMember:SourceIamMember default organizations/{{organization}}/sources/{{name}}

```

```sh

$ pulumi import gcp:securitycenter/sourceIamMember:SourceIamMember default {{organization}}/{{name}}

```

func GetSourceIamMember added in v6.42.0

func GetSourceIamMember(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *SourceIamMemberState, opts ...pulumi.ResourceOption) (*SourceIamMember, error)

GetSourceIamMember gets an existing SourceIamMember 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 NewSourceIamMember added in v6.42.0

func NewSourceIamMember(ctx *pulumi.Context,
	name string, args *SourceIamMemberArgs, opts ...pulumi.ResourceOption) (*SourceIamMember, error)

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

func (*SourceIamMember) ElementType added in v6.42.0

func (*SourceIamMember) ElementType() reflect.Type

func (*SourceIamMember) ToSourceIamMemberOutput added in v6.42.0

func (i *SourceIamMember) ToSourceIamMemberOutput() SourceIamMemberOutput

func (*SourceIamMember) ToSourceIamMemberOutputWithContext added in v6.42.0

func (i *SourceIamMember) ToSourceIamMemberOutputWithContext(ctx context.Context) SourceIamMemberOutput

type SourceIamMemberArgs added in v6.42.0

type SourceIamMemberArgs struct {
	Condition SourceIamMemberConditionPtrInput
	Member    pulumi.StringInput
	// The organization whose Cloud Security Command Center the Source
	// lives in.
	Organization pulumi.StringInput
	Role         pulumi.StringInput
	Source       pulumi.StringInput
}

The set of arguments for constructing a SourceIamMember resource.

func (SourceIamMemberArgs) ElementType added in v6.42.0

func (SourceIamMemberArgs) ElementType() reflect.Type

type SourceIamMemberArray added in v6.42.0

type SourceIamMemberArray []SourceIamMemberInput

func (SourceIamMemberArray) ElementType added in v6.42.0

func (SourceIamMemberArray) ElementType() reflect.Type

func (SourceIamMemberArray) ToSourceIamMemberArrayOutput added in v6.42.0

func (i SourceIamMemberArray) ToSourceIamMemberArrayOutput() SourceIamMemberArrayOutput

func (SourceIamMemberArray) ToSourceIamMemberArrayOutputWithContext added in v6.42.0

func (i SourceIamMemberArray) ToSourceIamMemberArrayOutputWithContext(ctx context.Context) SourceIamMemberArrayOutput

type SourceIamMemberArrayInput added in v6.42.0

type SourceIamMemberArrayInput interface {
	pulumi.Input

	ToSourceIamMemberArrayOutput() SourceIamMemberArrayOutput
	ToSourceIamMemberArrayOutputWithContext(context.Context) SourceIamMemberArrayOutput
}

SourceIamMemberArrayInput is an input type that accepts SourceIamMemberArray and SourceIamMemberArrayOutput values. You can construct a concrete instance of `SourceIamMemberArrayInput` via:

SourceIamMemberArray{ SourceIamMemberArgs{...} }

type SourceIamMemberArrayOutput added in v6.42.0

type SourceIamMemberArrayOutput struct{ *pulumi.OutputState }

func (SourceIamMemberArrayOutput) ElementType added in v6.42.0

func (SourceIamMemberArrayOutput) ElementType() reflect.Type

func (SourceIamMemberArrayOutput) Index added in v6.42.0

func (SourceIamMemberArrayOutput) ToSourceIamMemberArrayOutput added in v6.42.0

func (o SourceIamMemberArrayOutput) ToSourceIamMemberArrayOutput() SourceIamMemberArrayOutput

func (SourceIamMemberArrayOutput) ToSourceIamMemberArrayOutputWithContext added in v6.42.0

func (o SourceIamMemberArrayOutput) ToSourceIamMemberArrayOutputWithContext(ctx context.Context) SourceIamMemberArrayOutput

type SourceIamMemberCondition added in v6.42.0

type SourceIamMemberCondition struct {
	// The description of the source (max of 1024 characters).
	Description *string `pulumi:"description"`
	Expression  string  `pulumi:"expression"`
	Title       string  `pulumi:"title"`
}

type SourceIamMemberConditionArgs added in v6.42.0

type SourceIamMemberConditionArgs struct {
	// The description of the source (max of 1024 characters).
	Description pulumi.StringPtrInput `pulumi:"description"`
	Expression  pulumi.StringInput    `pulumi:"expression"`
	Title       pulumi.StringInput    `pulumi:"title"`
}

func (SourceIamMemberConditionArgs) ElementType added in v6.42.0

func (SourceIamMemberConditionArgs) ToSourceIamMemberConditionOutput added in v6.42.0

func (i SourceIamMemberConditionArgs) ToSourceIamMemberConditionOutput() SourceIamMemberConditionOutput

func (SourceIamMemberConditionArgs) ToSourceIamMemberConditionOutputWithContext added in v6.42.0

func (i SourceIamMemberConditionArgs) ToSourceIamMemberConditionOutputWithContext(ctx context.Context) SourceIamMemberConditionOutput

func (SourceIamMemberConditionArgs) ToSourceIamMemberConditionPtrOutput added in v6.42.0

func (i SourceIamMemberConditionArgs) ToSourceIamMemberConditionPtrOutput() SourceIamMemberConditionPtrOutput

func (SourceIamMemberConditionArgs) ToSourceIamMemberConditionPtrOutputWithContext added in v6.42.0

func (i SourceIamMemberConditionArgs) ToSourceIamMemberConditionPtrOutputWithContext(ctx context.Context) SourceIamMemberConditionPtrOutput

type SourceIamMemberConditionInput added in v6.42.0

type SourceIamMemberConditionInput interface {
	pulumi.Input

	ToSourceIamMemberConditionOutput() SourceIamMemberConditionOutput
	ToSourceIamMemberConditionOutputWithContext(context.Context) SourceIamMemberConditionOutput
}

SourceIamMemberConditionInput is an input type that accepts SourceIamMemberConditionArgs and SourceIamMemberConditionOutput values. You can construct a concrete instance of `SourceIamMemberConditionInput` via:

SourceIamMemberConditionArgs{...}

type SourceIamMemberConditionOutput added in v6.42.0

type SourceIamMemberConditionOutput struct{ *pulumi.OutputState }

func (SourceIamMemberConditionOutput) Description added in v6.42.0

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

func (SourceIamMemberConditionOutput) ElementType added in v6.42.0

func (SourceIamMemberConditionOutput) Expression added in v6.42.0

func (SourceIamMemberConditionOutput) Title added in v6.42.0

func (SourceIamMemberConditionOutput) ToSourceIamMemberConditionOutput added in v6.42.0

func (o SourceIamMemberConditionOutput) ToSourceIamMemberConditionOutput() SourceIamMemberConditionOutput

func (SourceIamMemberConditionOutput) ToSourceIamMemberConditionOutputWithContext added in v6.42.0

func (o SourceIamMemberConditionOutput) ToSourceIamMemberConditionOutputWithContext(ctx context.Context) SourceIamMemberConditionOutput

func (SourceIamMemberConditionOutput) ToSourceIamMemberConditionPtrOutput added in v6.42.0

func (o SourceIamMemberConditionOutput) ToSourceIamMemberConditionPtrOutput() SourceIamMemberConditionPtrOutput

func (SourceIamMemberConditionOutput) ToSourceIamMemberConditionPtrOutputWithContext added in v6.42.0

func (o SourceIamMemberConditionOutput) ToSourceIamMemberConditionPtrOutputWithContext(ctx context.Context) SourceIamMemberConditionPtrOutput

type SourceIamMemberConditionPtrInput added in v6.42.0

type SourceIamMemberConditionPtrInput interface {
	pulumi.Input

	ToSourceIamMemberConditionPtrOutput() SourceIamMemberConditionPtrOutput
	ToSourceIamMemberConditionPtrOutputWithContext(context.Context) SourceIamMemberConditionPtrOutput
}

SourceIamMemberConditionPtrInput is an input type that accepts SourceIamMemberConditionArgs, SourceIamMemberConditionPtr and SourceIamMemberConditionPtrOutput values. You can construct a concrete instance of `SourceIamMemberConditionPtrInput` via:

        SourceIamMemberConditionArgs{...}

or:

        nil

func SourceIamMemberConditionPtr added in v6.42.0

func SourceIamMemberConditionPtr(v *SourceIamMemberConditionArgs) SourceIamMemberConditionPtrInput

type SourceIamMemberConditionPtrOutput added in v6.42.0

type SourceIamMemberConditionPtrOutput struct{ *pulumi.OutputState }

func (SourceIamMemberConditionPtrOutput) Description added in v6.42.0

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

func (SourceIamMemberConditionPtrOutput) Elem added in v6.42.0

func (SourceIamMemberConditionPtrOutput) ElementType added in v6.42.0

func (SourceIamMemberConditionPtrOutput) Expression added in v6.42.0

func (SourceIamMemberConditionPtrOutput) Title added in v6.42.0

func (SourceIamMemberConditionPtrOutput) ToSourceIamMemberConditionPtrOutput added in v6.42.0

func (o SourceIamMemberConditionPtrOutput) ToSourceIamMemberConditionPtrOutput() SourceIamMemberConditionPtrOutput

func (SourceIamMemberConditionPtrOutput) ToSourceIamMemberConditionPtrOutputWithContext added in v6.42.0

func (o SourceIamMemberConditionPtrOutput) ToSourceIamMemberConditionPtrOutputWithContext(ctx context.Context) SourceIamMemberConditionPtrOutput

type SourceIamMemberInput added in v6.42.0

type SourceIamMemberInput interface {
	pulumi.Input

	ToSourceIamMemberOutput() SourceIamMemberOutput
	ToSourceIamMemberOutputWithContext(ctx context.Context) SourceIamMemberOutput
}

type SourceIamMemberMap added in v6.42.0

type SourceIamMemberMap map[string]SourceIamMemberInput

func (SourceIamMemberMap) ElementType added in v6.42.0

func (SourceIamMemberMap) ElementType() reflect.Type

func (SourceIamMemberMap) ToSourceIamMemberMapOutput added in v6.42.0

func (i SourceIamMemberMap) ToSourceIamMemberMapOutput() SourceIamMemberMapOutput

func (SourceIamMemberMap) ToSourceIamMemberMapOutputWithContext added in v6.42.0

func (i SourceIamMemberMap) ToSourceIamMemberMapOutputWithContext(ctx context.Context) SourceIamMemberMapOutput

type SourceIamMemberMapInput added in v6.42.0

type SourceIamMemberMapInput interface {
	pulumi.Input

	ToSourceIamMemberMapOutput() SourceIamMemberMapOutput
	ToSourceIamMemberMapOutputWithContext(context.Context) SourceIamMemberMapOutput
}

SourceIamMemberMapInput is an input type that accepts SourceIamMemberMap and SourceIamMemberMapOutput values. You can construct a concrete instance of `SourceIamMemberMapInput` via:

SourceIamMemberMap{ "key": SourceIamMemberArgs{...} }

type SourceIamMemberMapOutput added in v6.42.0

type SourceIamMemberMapOutput struct{ *pulumi.OutputState }

func (SourceIamMemberMapOutput) ElementType added in v6.42.0

func (SourceIamMemberMapOutput) ElementType() reflect.Type

func (SourceIamMemberMapOutput) MapIndex added in v6.42.0

func (SourceIamMemberMapOutput) ToSourceIamMemberMapOutput added in v6.42.0

func (o SourceIamMemberMapOutput) ToSourceIamMemberMapOutput() SourceIamMemberMapOutput

func (SourceIamMemberMapOutput) ToSourceIamMemberMapOutputWithContext added in v6.42.0

func (o SourceIamMemberMapOutput) ToSourceIamMemberMapOutputWithContext(ctx context.Context) SourceIamMemberMapOutput

type SourceIamMemberOutput added in v6.42.0

type SourceIamMemberOutput struct{ *pulumi.OutputState }

func (SourceIamMemberOutput) Condition added in v6.42.0

func (SourceIamMemberOutput) ElementType added in v6.42.0

func (SourceIamMemberOutput) ElementType() reflect.Type

func (SourceIamMemberOutput) Etag added in v6.42.0

func (SourceIamMemberOutput) Member added in v6.42.0

func (SourceIamMemberOutput) Organization added in v6.42.0

func (o SourceIamMemberOutput) Organization() pulumi.StringOutput

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

func (SourceIamMemberOutput) Role added in v6.42.0

func (SourceIamMemberOutput) Source added in v6.42.0

func (SourceIamMemberOutput) ToSourceIamMemberOutput added in v6.42.0

func (o SourceIamMemberOutput) ToSourceIamMemberOutput() SourceIamMemberOutput

func (SourceIamMemberOutput) ToSourceIamMemberOutputWithContext added in v6.42.0

func (o SourceIamMemberOutput) ToSourceIamMemberOutputWithContext(ctx context.Context) SourceIamMemberOutput

type SourceIamMemberState added in v6.42.0

type SourceIamMemberState struct {
	Condition SourceIamMemberConditionPtrInput
	Etag      pulumi.StringPtrInput
	Member    pulumi.StringPtrInput
	// The organization whose Cloud Security Command Center the Source
	// lives in.
	Organization pulumi.StringPtrInput
	Role         pulumi.StringPtrInput
	Source       pulumi.StringPtrInput
}

func (SourceIamMemberState) ElementType added in v6.42.0

func (SourceIamMemberState) ElementType() reflect.Type

type SourceIamPolicy added in v6.42.0

type SourceIamPolicy struct {
	pulumi.CustomResourceState

	Etag pulumi.StringOutput `pulumi:"etag"`
	// The organization whose Cloud Security Command Center the Source
	// lives in.
	Organization pulumi.StringOutput `pulumi:"organization"`
	PolicyData   pulumi.StringOutput `pulumi:"policyData"`
	Source       pulumi.StringOutput `pulumi:"source"`
}

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/v1/organizations.sources) * How-to Guides

## Example Usage ### Scc Source Basic

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/securitycenter"
"github.com/pulumi/pulumi/sdk/v3/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/sourceIamPolicy:SourceIamPolicy default organizations/{{organization}}/sources/{{name}}

```

```sh

$ pulumi import gcp:securitycenter/sourceIamPolicy:SourceIamPolicy default {{organization}}/{{name}}

```

func GetSourceIamPolicy added in v6.42.0

func GetSourceIamPolicy(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *SourceIamPolicyState, opts ...pulumi.ResourceOption) (*SourceIamPolicy, error)

GetSourceIamPolicy gets an existing SourceIamPolicy 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 NewSourceIamPolicy added in v6.42.0

func NewSourceIamPolicy(ctx *pulumi.Context,
	name string, args *SourceIamPolicyArgs, opts ...pulumi.ResourceOption) (*SourceIamPolicy, error)

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

func (*SourceIamPolicy) ElementType added in v6.42.0

func (*SourceIamPolicy) ElementType() reflect.Type

func (*SourceIamPolicy) ToSourceIamPolicyOutput added in v6.42.0

func (i *SourceIamPolicy) ToSourceIamPolicyOutput() SourceIamPolicyOutput

func (*SourceIamPolicy) ToSourceIamPolicyOutputWithContext added in v6.42.0

func (i *SourceIamPolicy) ToSourceIamPolicyOutputWithContext(ctx context.Context) SourceIamPolicyOutput

type SourceIamPolicyArgs added in v6.42.0

type SourceIamPolicyArgs struct {
	// The organization whose Cloud Security Command Center the Source
	// lives in.
	Organization pulumi.StringInput
	PolicyData   pulumi.StringInput
	Source       pulumi.StringInput
}

The set of arguments for constructing a SourceIamPolicy resource.

func (SourceIamPolicyArgs) ElementType added in v6.42.0

func (SourceIamPolicyArgs) ElementType() reflect.Type

type SourceIamPolicyArray added in v6.42.0

type SourceIamPolicyArray []SourceIamPolicyInput

func (SourceIamPolicyArray) ElementType added in v6.42.0

func (SourceIamPolicyArray) ElementType() reflect.Type

func (SourceIamPolicyArray) ToSourceIamPolicyArrayOutput added in v6.42.0

func (i SourceIamPolicyArray) ToSourceIamPolicyArrayOutput() SourceIamPolicyArrayOutput

func (SourceIamPolicyArray) ToSourceIamPolicyArrayOutputWithContext added in v6.42.0

func (i SourceIamPolicyArray) ToSourceIamPolicyArrayOutputWithContext(ctx context.Context) SourceIamPolicyArrayOutput

type SourceIamPolicyArrayInput added in v6.42.0

type SourceIamPolicyArrayInput interface {
	pulumi.Input

	ToSourceIamPolicyArrayOutput() SourceIamPolicyArrayOutput
	ToSourceIamPolicyArrayOutputWithContext(context.Context) SourceIamPolicyArrayOutput
}

SourceIamPolicyArrayInput is an input type that accepts SourceIamPolicyArray and SourceIamPolicyArrayOutput values. You can construct a concrete instance of `SourceIamPolicyArrayInput` via:

SourceIamPolicyArray{ SourceIamPolicyArgs{...} }

type SourceIamPolicyArrayOutput added in v6.42.0

type SourceIamPolicyArrayOutput struct{ *pulumi.OutputState }

func (SourceIamPolicyArrayOutput) ElementType added in v6.42.0

func (SourceIamPolicyArrayOutput) ElementType() reflect.Type

func (SourceIamPolicyArrayOutput) Index added in v6.42.0

func (SourceIamPolicyArrayOutput) ToSourceIamPolicyArrayOutput added in v6.42.0

func (o SourceIamPolicyArrayOutput) ToSourceIamPolicyArrayOutput() SourceIamPolicyArrayOutput

func (SourceIamPolicyArrayOutput) ToSourceIamPolicyArrayOutputWithContext added in v6.42.0

func (o SourceIamPolicyArrayOutput) ToSourceIamPolicyArrayOutputWithContext(ctx context.Context) SourceIamPolicyArrayOutput

type SourceIamPolicyInput added in v6.42.0

type SourceIamPolicyInput interface {
	pulumi.Input

	ToSourceIamPolicyOutput() SourceIamPolicyOutput
	ToSourceIamPolicyOutputWithContext(ctx context.Context) SourceIamPolicyOutput
}

type SourceIamPolicyMap added in v6.42.0

type SourceIamPolicyMap map[string]SourceIamPolicyInput

func (SourceIamPolicyMap) ElementType added in v6.42.0

func (SourceIamPolicyMap) ElementType() reflect.Type

func (SourceIamPolicyMap) ToSourceIamPolicyMapOutput added in v6.42.0

func (i SourceIamPolicyMap) ToSourceIamPolicyMapOutput() SourceIamPolicyMapOutput

func (SourceIamPolicyMap) ToSourceIamPolicyMapOutputWithContext added in v6.42.0

func (i SourceIamPolicyMap) ToSourceIamPolicyMapOutputWithContext(ctx context.Context) SourceIamPolicyMapOutput

type SourceIamPolicyMapInput added in v6.42.0

type SourceIamPolicyMapInput interface {
	pulumi.Input

	ToSourceIamPolicyMapOutput() SourceIamPolicyMapOutput
	ToSourceIamPolicyMapOutputWithContext(context.Context) SourceIamPolicyMapOutput
}

SourceIamPolicyMapInput is an input type that accepts SourceIamPolicyMap and SourceIamPolicyMapOutput values. You can construct a concrete instance of `SourceIamPolicyMapInput` via:

SourceIamPolicyMap{ "key": SourceIamPolicyArgs{...} }

type SourceIamPolicyMapOutput added in v6.42.0

type SourceIamPolicyMapOutput struct{ *pulumi.OutputState }

func (SourceIamPolicyMapOutput) ElementType added in v6.42.0

func (SourceIamPolicyMapOutput) ElementType() reflect.Type

func (SourceIamPolicyMapOutput) MapIndex added in v6.42.0

func (SourceIamPolicyMapOutput) ToSourceIamPolicyMapOutput added in v6.42.0

func (o SourceIamPolicyMapOutput) ToSourceIamPolicyMapOutput() SourceIamPolicyMapOutput

func (SourceIamPolicyMapOutput) ToSourceIamPolicyMapOutputWithContext added in v6.42.0

func (o SourceIamPolicyMapOutput) ToSourceIamPolicyMapOutputWithContext(ctx context.Context) SourceIamPolicyMapOutput

type SourceIamPolicyOutput added in v6.42.0

type SourceIamPolicyOutput struct{ *pulumi.OutputState }

func (SourceIamPolicyOutput) ElementType added in v6.42.0

func (SourceIamPolicyOutput) ElementType() reflect.Type

func (SourceIamPolicyOutput) Etag added in v6.42.0

func (SourceIamPolicyOutput) Organization added in v6.42.0

func (o SourceIamPolicyOutput) Organization() pulumi.StringOutput

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

func (SourceIamPolicyOutput) PolicyData added in v6.42.0

func (o SourceIamPolicyOutput) PolicyData() pulumi.StringOutput

func (SourceIamPolicyOutput) Source added in v6.42.0

func (SourceIamPolicyOutput) ToSourceIamPolicyOutput added in v6.42.0

func (o SourceIamPolicyOutput) ToSourceIamPolicyOutput() SourceIamPolicyOutput

func (SourceIamPolicyOutput) ToSourceIamPolicyOutputWithContext added in v6.42.0

func (o SourceIamPolicyOutput) ToSourceIamPolicyOutputWithContext(ctx context.Context) SourceIamPolicyOutput

type SourceIamPolicyState added in v6.42.0

type SourceIamPolicyState struct {
	Etag pulumi.StringPtrInput
	// The organization whose Cloud Security Command Center the Source
	// lives in.
	Organization pulumi.StringPtrInput
	PolicyData   pulumi.StringPtrInput
	Source       pulumi.StringPtrInput
}

func (SourceIamPolicyState) ElementType added in v6.42.0

func (SourceIamPolicyState) ElementType() reflect.Type

type SourceInput

type SourceInput interface {
	pulumi.Input

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

type SourceMap

type SourceMap map[string]SourceInput

func (SourceMap) ElementType

func (SourceMap) ElementType() reflect.Type

func (SourceMap) ToSourceMapOutput

func (i SourceMap) ToSourceMapOutput() SourceMapOutput

func (SourceMap) ToSourceMapOutputWithContext

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

type SourceMapInput

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

type SourceMapOutput struct{ *pulumi.OutputState }

func (SourceMapOutput) ElementType

func (SourceMapOutput) ElementType() reflect.Type

func (SourceMapOutput) MapIndex

func (SourceMapOutput) ToSourceMapOutput

func (o SourceMapOutput) ToSourceMapOutput() SourceMapOutput

func (SourceMapOutput) ToSourceMapOutputWithContext

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

type SourceOutput

type SourceOutput struct{ *pulumi.OutputState }

func (SourceOutput) Description added in v6.23.0

func (o SourceOutput) Description() pulumi.StringPtrOutput

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

func (SourceOutput) DisplayName added in v6.23.0

func (o SourceOutput) DisplayName() pulumi.StringOutput

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.

func (SourceOutput) ElementType

func (SourceOutput) ElementType() reflect.Type

func (SourceOutput) Name added in v6.23.0

func (o SourceOutput) Name() pulumi.StringOutput

The resource name of this source, in the format `organizations/{{organization}}/sources/{{source}}`.

func (SourceOutput) Organization added in v6.23.0

func (o SourceOutput) Organization() pulumi.StringOutput

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

func (SourceOutput) ToSourceOutput

func (o SourceOutput) ToSourceOutput() SourceOutput

func (SourceOutput) ToSourceOutputWithContext

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

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