google::topic

Add a topic.

Example

google::topic topic-example
    name: "topic-example"

    labels: {
        name: "topic-example"
    }
end

Attributes

Attribute Description
kms-key The Cloud KMS CryptoKey to be used to protect access to messages published on this topic.
labels map The set of labels for the topic.
message-storage-policy subresource

The message storage policy configuration.

allowed-persistence-regions list
The list of IDs of GCP regions where messages that are published to the topic may be persisted in storage. (Required)
name The name of the topic. (Required)

Outputs

Attribute Description
reference-name The full name of the topic along with project path.