Documentation ¶
Index ¶
- type NotificationConfig
- func (*NotificationConfig) ElementType() reflect.Type
- func (i *NotificationConfig) ToNotificationConfigOutput() NotificationConfigOutput
- func (i *NotificationConfig) ToNotificationConfigOutputWithContext(ctx context.Context) NotificationConfigOutput
- func (i *NotificationConfig) ToNotificationConfigPtrOutput() NotificationConfigPtrOutput
- func (i *NotificationConfig) ToNotificationConfigPtrOutputWithContext(ctx context.Context) NotificationConfigPtrOutput
- type NotificationConfigArgs
- type NotificationConfigArray
- type NotificationConfigArrayInput
- type NotificationConfigArrayOutput
- func (NotificationConfigArrayOutput) ElementType() reflect.Type
- func (o NotificationConfigArrayOutput) Index(i pulumi.IntInput) NotificationConfigOutput
- func (o NotificationConfigArrayOutput) ToNotificationConfigArrayOutput() NotificationConfigArrayOutput
- func (o NotificationConfigArrayOutput) ToNotificationConfigArrayOutputWithContext(ctx context.Context) NotificationConfigArrayOutput
- type NotificationConfigInput
- type NotificationConfigMap
- type NotificationConfigMapInput
- type NotificationConfigMapOutput
- func (NotificationConfigMapOutput) ElementType() reflect.Type
- func (o NotificationConfigMapOutput) MapIndex(k pulumi.StringInput) NotificationConfigOutput
- func (o NotificationConfigMapOutput) ToNotificationConfigMapOutput() NotificationConfigMapOutput
- func (o NotificationConfigMapOutput) ToNotificationConfigMapOutputWithContext(ctx context.Context) NotificationConfigMapOutput
- type NotificationConfigOutput
- func (NotificationConfigOutput) ElementType() reflect.Type
- func (o NotificationConfigOutput) ToNotificationConfigOutput() NotificationConfigOutput
- func (o NotificationConfigOutput) ToNotificationConfigOutputWithContext(ctx context.Context) NotificationConfigOutput
- func (o NotificationConfigOutput) ToNotificationConfigPtrOutput() NotificationConfigPtrOutput
- func (o NotificationConfigOutput) ToNotificationConfigPtrOutputWithContext(ctx context.Context) NotificationConfigPtrOutput
- type NotificationConfigPtrInput
- type NotificationConfigPtrOutput
- func (o NotificationConfigPtrOutput) Elem() NotificationConfigOutput
- func (NotificationConfigPtrOutput) ElementType() reflect.Type
- func (o NotificationConfigPtrOutput) ToNotificationConfigPtrOutput() NotificationConfigPtrOutput
- func (o NotificationConfigPtrOutput) ToNotificationConfigPtrOutputWithContext(ctx context.Context) NotificationConfigPtrOutput
- type NotificationConfigState
- type NotificationConfigStreamingConfig
- type NotificationConfigStreamingConfigArgs
- func (NotificationConfigStreamingConfigArgs) ElementType() reflect.Type
- func (i NotificationConfigStreamingConfigArgs) ToNotificationConfigStreamingConfigOutput() NotificationConfigStreamingConfigOutput
- func (i NotificationConfigStreamingConfigArgs) ToNotificationConfigStreamingConfigOutputWithContext(ctx context.Context) NotificationConfigStreamingConfigOutput
- func (i NotificationConfigStreamingConfigArgs) ToNotificationConfigStreamingConfigPtrOutput() NotificationConfigStreamingConfigPtrOutput
- func (i NotificationConfigStreamingConfigArgs) ToNotificationConfigStreamingConfigPtrOutputWithContext(ctx context.Context) NotificationConfigStreamingConfigPtrOutput
- type NotificationConfigStreamingConfigInput
- type NotificationConfigStreamingConfigOutput
- func (NotificationConfigStreamingConfigOutput) ElementType() reflect.Type
- func (o NotificationConfigStreamingConfigOutput) Filter() pulumi.StringOutput
- func (o NotificationConfigStreamingConfigOutput) ToNotificationConfigStreamingConfigOutput() NotificationConfigStreamingConfigOutput
- func (o NotificationConfigStreamingConfigOutput) ToNotificationConfigStreamingConfigOutputWithContext(ctx context.Context) NotificationConfigStreamingConfigOutput
- func (o NotificationConfigStreamingConfigOutput) ToNotificationConfigStreamingConfigPtrOutput() NotificationConfigStreamingConfigPtrOutput
- func (o NotificationConfigStreamingConfigOutput) ToNotificationConfigStreamingConfigPtrOutputWithContext(ctx context.Context) NotificationConfigStreamingConfigPtrOutput
- type NotificationConfigStreamingConfigPtrInput
- type NotificationConfigStreamingConfigPtrOutput
- func (o NotificationConfigStreamingConfigPtrOutput) Elem() NotificationConfigStreamingConfigOutput
- func (NotificationConfigStreamingConfigPtrOutput) ElementType() reflect.Type
- func (o NotificationConfigStreamingConfigPtrOutput) Filter() pulumi.StringPtrOutput
- func (o NotificationConfigStreamingConfigPtrOutput) ToNotificationConfigStreamingConfigPtrOutput() NotificationConfigStreamingConfigPtrOutput
- func (o NotificationConfigStreamingConfigPtrOutput) ToNotificationConfigStreamingConfigPtrOutputWithContext(ctx context.Context) NotificationConfigStreamingConfigPtrOutput
- type Source
- func (*Source) ElementType() reflect.Type
- func (i *Source) ToSourceOutput() SourceOutput
- func (i *Source) ToSourceOutputWithContext(ctx context.Context) SourceOutput
- func (i *Source) ToSourcePtrOutput() SourcePtrOutput
- func (i *Source) ToSourcePtrOutputWithContext(ctx context.Context) SourcePtrOutput
- type SourceArgs
- type SourceArray
- type SourceArrayInput
- type SourceArrayOutput
- type SourceInput
- type SourceMap
- type SourceMapInput
- type SourceMapOutput
- type SourceOutput
- func (SourceOutput) ElementType() reflect.Type
- func (o SourceOutput) ToSourceOutput() SourceOutput
- func (o SourceOutput) ToSourceOutputWithContext(ctx context.Context) SourceOutput
- func (o SourceOutput) ToSourcePtrOutput() SourcePtrOutput
- func (o SourceOutput) ToSourcePtrOutputWithContext(ctx context.Context) SourcePtrOutput
- type SourcePtrInput
- type SourcePtrOutput
- type SourceState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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
- [Official Documentation](https://cloud.google.com/security-command-center/docs)
## 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
func (*NotificationConfig) ToNotificationConfigPtrOutput ¶
func (i *NotificationConfig) ToNotificationConfigPtrOutput() NotificationConfigPtrOutput
func (*NotificationConfig) ToNotificationConfigPtrOutputWithContext ¶
func (i *NotificationConfig) ToNotificationConfigPtrOutputWithContext(ctx context.Context) NotificationConfigPtrOutput
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) ElementType() reflect.Type
func (NotificationConfigArrayOutput) Index ¶
func (o NotificationConfigArrayOutput) Index(i pulumi.IntInput) NotificationConfigOutput
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) ElementType() reflect.Type
func (NotificationConfigMapOutput) MapIndex ¶
func (o NotificationConfigMapOutput) MapIndex(k pulumi.StringInput) NotificationConfigOutput
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) ElementType ¶
func (NotificationConfigOutput) ElementType() reflect.Type
func (NotificationConfigOutput) ToNotificationConfigOutput ¶
func (o NotificationConfigOutput) ToNotificationConfigOutput() NotificationConfigOutput
func (NotificationConfigOutput) ToNotificationConfigOutputWithContext ¶
func (o NotificationConfigOutput) ToNotificationConfigOutputWithContext(ctx context.Context) NotificationConfigOutput
func (NotificationConfigOutput) ToNotificationConfigPtrOutput ¶
func (o NotificationConfigOutput) ToNotificationConfigPtrOutput() NotificationConfigPtrOutput
func (NotificationConfigOutput) ToNotificationConfigPtrOutputWithContext ¶
func (o NotificationConfigOutput) ToNotificationConfigPtrOutputWithContext(ctx context.Context) NotificationConfigPtrOutput
type NotificationConfigPtrInput ¶
type NotificationConfigPtrInput interface { pulumi.Input ToNotificationConfigPtrOutput() NotificationConfigPtrOutput ToNotificationConfigPtrOutputWithContext(ctx context.Context) NotificationConfigPtrOutput }
type NotificationConfigPtrOutput ¶
type NotificationConfigPtrOutput struct{ *pulumi.OutputState }
func (NotificationConfigPtrOutput) Elem ¶
func (o NotificationConfigPtrOutput) Elem() NotificationConfigOutput
func (NotificationConfigPtrOutput) ElementType ¶
func (NotificationConfigPtrOutput) ElementType() reflect.Type
func (NotificationConfigPtrOutput) ToNotificationConfigPtrOutput ¶
func (o NotificationConfigPtrOutput) ToNotificationConfigPtrOutput() NotificationConfigPtrOutput
func (NotificationConfigPtrOutput) ToNotificationConfigPtrOutputWithContext ¶
func (o NotificationConfigPtrOutput) ToNotificationConfigPtrOutputWithContext(ctx context.Context) NotificationConfigPtrOutput
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) ElementType() reflect.Type
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) ElementType() reflect.Type
func (NotificationConfigStreamingConfigOutput) Filter ¶
func (o NotificationConfigStreamingConfigOutput) Filter() pulumi.StringOutput
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.
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
func NotificationConfigStreamingConfigPtr ¶
func NotificationConfigStreamingConfigPtr(v *NotificationConfigStreamingConfigArgs) NotificationConfigStreamingConfigPtrInput
type NotificationConfigStreamingConfigPtrOutput ¶
type NotificationConfigStreamingConfigPtrOutput struct{ *pulumi.OutputState }
func (NotificationConfigStreamingConfigPtrOutput) ElementType ¶
func (NotificationConfigStreamingConfigPtrOutput) ElementType() reflect.Type
func (NotificationConfigStreamingConfigPtrOutput) Filter ¶
func (o NotificationConfigStreamingConfigPtrOutput) Filter() pulumi.StringPtrOutput
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.
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/v1beta1/organizations.sources) * How-to Guides
- [Official Documentation](https://cloud.google.com/security-command-center/docs)
## 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) ToSourceOutput ¶
func (i *Source) ToSourceOutput() SourceOutput
func (*Source) ToSourceOutputWithContext ¶
func (i *Source) ToSourceOutputWithContext(ctx context.Context) SourceOutput
func (*Source) ToSourcePtrOutput ¶
func (i *Source) ToSourcePtrOutput() SourcePtrOutput
func (*Source) ToSourcePtrOutputWithContext ¶
func (i *Source) ToSourcePtrOutputWithContext(ctx context.Context) SourcePtrOutput
type SourceArgs ¶
type SourceArgs struct { // The description of the source (max of 1024 characters). Description pulumi.StringPtrInput // The source’s display name. A source’s display name must be unique // amongst its siblings, for example, two sources with the same parent // can't share the same display name. The display name must start and end // with a letter or digit, may contain letters, digits, spaces, hyphens, // and underscores, and can be no longer than 32 characters. DisplayName pulumi.StringInput // The organization whose Cloud Security Command Center the Source // lives in. Organization pulumi.StringInput }
The set of arguments for constructing a Source resource.
func (SourceArgs) ElementType ¶
func (SourceArgs) ElementType() reflect.Type
type SourceArray ¶
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 (o SourceArrayOutput) Index(i pulumi.IntInput) SourceOutput
func (SourceArrayOutput) ToSourceArrayOutput ¶
func (o SourceArrayOutput) ToSourceArrayOutput() SourceArrayOutput
func (SourceArrayOutput) ToSourceArrayOutputWithContext ¶
func (o SourceArrayOutput) ToSourceArrayOutputWithContext(ctx context.Context) SourceArrayOutput
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) 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 (o SourceMapOutput) MapIndex(k pulumi.StringInput) SourceOutput
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) ElementType ¶
func (SourceOutput) ElementType() reflect.Type
func (SourceOutput) ToSourceOutput ¶
func (o SourceOutput) ToSourceOutput() SourceOutput
func (SourceOutput) ToSourceOutputWithContext ¶
func (o SourceOutput) ToSourceOutputWithContext(ctx context.Context) SourceOutput
func (SourceOutput) ToSourcePtrOutput ¶
func (o SourceOutput) ToSourcePtrOutput() SourcePtrOutput
func (SourceOutput) ToSourcePtrOutputWithContext ¶
func (o SourceOutput) ToSourcePtrOutputWithContext(ctx context.Context) SourcePtrOutput
type SourcePtrInput ¶
type SourcePtrInput interface { pulumi.Input ToSourcePtrOutput() SourcePtrOutput ToSourcePtrOutputWithContext(ctx context.Context) SourcePtrOutput }
type SourcePtrOutput ¶
type SourcePtrOutput struct{ *pulumi.OutputState }
func (SourcePtrOutput) Elem ¶
func (o SourcePtrOutput) Elem() SourceOutput
func (SourcePtrOutput) ElementType ¶
func (SourcePtrOutput) ElementType() reflect.Type
func (SourcePtrOutput) ToSourcePtrOutput ¶
func (o SourcePtrOutput) ToSourcePtrOutput() SourcePtrOutput
func (SourcePtrOutput) ToSourcePtrOutputWithContext ¶
func (o SourcePtrOutput) ToSourcePtrOutputWithContext(ctx context.Context) SourcePtrOutput
type SourceState ¶
type SourceState struct { // The description of the source (max of 1024 characters). Description pulumi.StringPtrInput // The source’s display name. A source’s display name must be unique // amongst its siblings, for example, two sources with the same parent // can't share the same display name. The display name must start and end // with a letter or digit, may contain letters, digits, spaces, hyphens, // and underscores, and can be no longer than 32 characters. DisplayName pulumi.StringPtrInput // The resource name of this source, in the format 'organizations/{{organization}}/sources/{{source}}'. Name pulumi.StringPtrInput // The organization whose Cloud Security Command Center the Source // lives in. Organization pulumi.StringPtrInput }
func (SourceState) ElementType ¶
func (SourceState) ElementType() reflect.Type