Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.securitycenter/v1.OrganizationNotificationConfig
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Creates a notification config.
Create OrganizationNotificationConfig Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new OrganizationNotificationConfig(name: string, args: OrganizationNotificationConfigArgs, opts?: CustomResourceOptions);
@overload
def OrganizationNotificationConfig(resource_name: str,
args: OrganizationNotificationConfigArgs,
opts: Optional[ResourceOptions] = None)
@overload
def OrganizationNotificationConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
config_id: Optional[str] = None,
organization_id: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
pubsub_topic: Optional[str] = None,
streaming_config: Optional[StreamingConfigArgs] = None)
func NewOrganizationNotificationConfig(ctx *Context, name string, args OrganizationNotificationConfigArgs, opts ...ResourceOption) (*OrganizationNotificationConfig, error)
public OrganizationNotificationConfig(string name, OrganizationNotificationConfigArgs args, CustomResourceOptions? opts = null)
public OrganizationNotificationConfig(String name, OrganizationNotificationConfigArgs args)
public OrganizationNotificationConfig(String name, OrganizationNotificationConfigArgs args, CustomResourceOptions options)
type: google-native:securitycenter/v1:OrganizationNotificationConfig
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args OrganizationNotificationConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args OrganizationNotificationConfigArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args OrganizationNotificationConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OrganizationNotificationConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OrganizationNotificationConfigArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var organizationNotificationConfigResource = new GoogleNative.Securitycenter.V1.OrganizationNotificationConfig("organizationNotificationConfigResource", new()
{
ConfigId = "string",
OrganizationId = "string",
Description = "string",
Name = "string",
PubsubTopic = "string",
StreamingConfig = new GoogleNative.Securitycenter.V1.Inputs.StreamingConfigArgs
{
Filter = "string",
},
});
example, err := securitycenter.NewOrganizationNotificationConfig(ctx, "organizationNotificationConfigResource", &securitycenter.OrganizationNotificationConfigArgs{
ConfigId: pulumi.String("string"),
OrganizationId: pulumi.String("string"),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
PubsubTopic: pulumi.String("string"),
StreamingConfig: &securitycenter.StreamingConfigArgs{
Filter: pulumi.String("string"),
},
})
var organizationNotificationConfigResource = new OrganizationNotificationConfig("organizationNotificationConfigResource", OrganizationNotificationConfigArgs.builder()
.configId("string")
.organizationId("string")
.description("string")
.name("string")
.pubsubTopic("string")
.streamingConfig(StreamingConfigArgs.builder()
.filter("string")
.build())
.build());
organization_notification_config_resource = google_native.securitycenter.v1.OrganizationNotificationConfig("organizationNotificationConfigResource",
config_id="string",
organization_id="string",
description="string",
name="string",
pubsub_topic="string",
streaming_config=google_native.securitycenter.v1.StreamingConfigArgs(
filter="string",
))
const organizationNotificationConfigResource = new google_native.securitycenter.v1.OrganizationNotificationConfig("organizationNotificationConfigResource", {
configId: "string",
organizationId: "string",
description: "string",
name: "string",
pubsubTopic: "string",
streamingConfig: {
filter: "string",
},
});
type: google-native:securitycenter/v1:OrganizationNotificationConfig
properties:
configId: string
description: string
name: string
organizationId: string
pubsubTopic: string
streamingConfig:
filter: string
OrganizationNotificationConfig Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The OrganizationNotificationConfig resource accepts the following input properties:
- Config
Id string - Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters and contain alphanumeric characters, underscores, or hyphens only.
- Organization
Id string - Description string
- The description of the notification config (max of 1024 characters).
- Name string
- The relative resource name of this notification config. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: "organizations/{organization_id}/notificationConfigs/notify_public_bucket", "folders/{folder_id}/notificationConfigs/notify_public_bucket", or "projects/{project_id}/notificationConfigs/notify_public_bucket".
- Pubsub
Topic string - The Pub/Sub topic to send notifications to. Its format is "projects/[project_id]/topics/[topic]".
- Streaming
Config Pulumi.Google Native. Securitycenter. V1. Inputs. Streaming Config - The config for triggering streaming-based notifications.
- Config
Id string - Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters and contain alphanumeric characters, underscores, or hyphens only.
- Organization
Id string - Description string
- The description of the notification config (max of 1024 characters).
- Name string
- The relative resource name of this notification config. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: "organizations/{organization_id}/notificationConfigs/notify_public_bucket", "folders/{folder_id}/notificationConfigs/notify_public_bucket", or "projects/{project_id}/notificationConfigs/notify_public_bucket".
- Pubsub
Topic string - The Pub/Sub topic to send notifications to. Its format is "projects/[project_id]/topics/[topic]".
- Streaming
Config StreamingConfig Args - The config for triggering streaming-based notifications.
- config
Id String - Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters and contain alphanumeric characters, underscores, or hyphens only.
- organization
Id String - description String
- The description of the notification config (max of 1024 characters).
- name String
- The relative resource name of this notification config. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: "organizations/{organization_id}/notificationConfigs/notify_public_bucket", "folders/{folder_id}/notificationConfigs/notify_public_bucket", or "projects/{project_id}/notificationConfigs/notify_public_bucket".
- pubsub
Topic String - The Pub/Sub topic to send notifications to. Its format is "projects/[project_id]/topics/[topic]".
- streaming
Config StreamingConfig - The config for triggering streaming-based notifications.
- config
Id string - Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters and contain alphanumeric characters, underscores, or hyphens only.
- organization
Id string - description string
- The description of the notification config (max of 1024 characters).
- name string
- The relative resource name of this notification config. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: "organizations/{organization_id}/notificationConfigs/notify_public_bucket", "folders/{folder_id}/notificationConfigs/notify_public_bucket", or "projects/{project_id}/notificationConfigs/notify_public_bucket".
- pubsub
Topic string - The Pub/Sub topic to send notifications to. Its format is "projects/[project_id]/topics/[topic]".
- streaming
Config StreamingConfig - The config for triggering streaming-based notifications.
- config_
id str - Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters and contain alphanumeric characters, underscores, or hyphens only.
- organization_
id str - description str
- The description of the notification config (max of 1024 characters).
- name str
- The relative resource name of this notification config. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: "organizations/{organization_id}/notificationConfigs/notify_public_bucket", "folders/{folder_id}/notificationConfigs/notify_public_bucket", or "projects/{project_id}/notificationConfigs/notify_public_bucket".
- pubsub_
topic str - The Pub/Sub topic to send notifications to. Its format is "projects/[project_id]/topics/[topic]".
- streaming_
config StreamingConfig Args - The config for triggering streaming-based notifications.
- config
Id String - Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters and contain alphanumeric characters, underscores, or hyphens only.
- organization
Id String - description String
- The description of the notification config (max of 1024 characters).
- name String
- The relative resource name of this notification config. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: "organizations/{organization_id}/notificationConfigs/notify_public_bucket", "folders/{folder_id}/notificationConfigs/notify_public_bucket", or "projects/{project_id}/notificationConfigs/notify_public_bucket".
- pubsub
Topic String - The Pub/Sub topic to send notifications to. Its format is "projects/[project_id]/topics/[topic]".
- streaming
Config Property Map - The config for triggering streaming-based notifications.
Outputs
All input properties are implicitly available as output properties. Additionally, the OrganizationNotificationConfig resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Service
Account string - The service account that needs "pubsub.topics.publish" permission to publish to the Pub/Sub topic.
- Id string
- The provider-assigned unique ID for this managed resource.
- Service
Account string - The service account that needs "pubsub.topics.publish" permission to publish to the Pub/Sub topic.
- id String
- The provider-assigned unique ID for this managed resource.
- service
Account String - The service account that needs "pubsub.topics.publish" permission to publish to the Pub/Sub topic.
- id string
- The provider-assigned unique ID for this managed resource.
- service
Account string - The service account that needs "pubsub.topics.publish" permission to publish to the Pub/Sub topic.
- id str
- The provider-assigned unique ID for this managed resource.
- service_
account str - The service account that needs "pubsub.topics.publish" permission to publish to the Pub/Sub topic.
- id String
- The provider-assigned unique ID for this managed resource.
- service
Account String - The service account that needs "pubsub.topics.publish" permission to publish to the Pub/Sub topic.
Supporting Types
StreamingConfig, StreamingConfigArgs
- Filter string
- 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
andOR
. Parentheses are supported, andOR
has higher precedence thanAND
. Restrictions have the formand 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 literalstrue
andfalse
without quotes.
- Filter string
- 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
andOR
. Parentheses are supported, andOR
has higher precedence thanAND
. Restrictions have the formand 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 literalstrue
andfalse
without quotes.
- filter String
- 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
andOR
. Parentheses are supported, andOR
has higher precedence thanAND
. Restrictions have the formand 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 literalstrue
andfalse
without quotes.
- filter string
- 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
andOR
. Parentheses are supported, andOR
has higher precedence thanAND
. Restrictions have the formand 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 literalstrue
andfalse
without quotes.
- filter str
- 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
andOR
. Parentheses are supported, andOR
has higher precedence thanAND
. Restrictions have the formand 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 literalstrue
andfalse
without quotes.
- filter String
- 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
andOR
. Parentheses are supported, andOR
has higher precedence thanAND
. Restrictions have the formand 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 literalstrue
andfalse
without quotes.
StreamingConfigResponse, StreamingConfigResponseArgs
- Filter string
- 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
andOR
. Parentheses are supported, andOR
has higher precedence thanAND
. Restrictions have the formand 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 literalstrue
andfalse
without quotes.
- Filter string
- 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
andOR
. Parentheses are supported, andOR
has higher precedence thanAND
. Restrictions have the formand 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 literalstrue
andfalse
without quotes.
- filter String
- 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
andOR
. Parentheses are supported, andOR
has higher precedence thanAND
. Restrictions have the formand 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 literalstrue
andfalse
without quotes.
- filter string
- 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
andOR
. Parentheses are supported, andOR
has higher precedence thanAND
. Restrictions have the formand 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 literalstrue
andfalse
without quotes.
- filter str
- 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
andOR
. Parentheses are supported, andOR
has higher precedence thanAND
. Restrictions have the formand 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 literalstrue
andfalse
without quotes.
- filter String
- 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
andOR
. Parentheses are supported, andOR
has higher precedence thanAND
. Restrictions have the formand 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 literalstrue
andfalse
without quotes.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.