Google Cloud Classic v8.9.3 published on Monday, Nov 18, 2024 by Pulumi
gcp.pubsub.getTopic
Explore with Pulumi AI
Get information about a Google Cloud Pub/Sub Topic. For more information see the official documentation and API.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const my-pubsub-topic = gcp.pubsub.getTopic({
name: "my-pubsub-topic",
});
import pulumi
import pulumi_gcp as gcp
my_pubsub_topic = gcp.pubsub.get_topic(name="my-pubsub-topic")
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/pubsub"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := pubsub.LookupTopic(ctx, &pubsub.LookupTopicArgs{
Name: "my-pubsub-topic",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var my_pubsub_topic = Gcp.PubSub.GetTopic.Invoke(new()
{
Name = "my-pubsub-topic",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.pubsub.PubsubFunctions;
import com.pulumi.gcp.pubsub.inputs.GetTopicArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var my-pubsub-topic = PubsubFunctions.getTopic(GetTopicArgs.builder()
.name("my-pubsub-topic")
.build());
}
}
variables:
my-pubsub-topic:
fn::invoke:
Function: gcp:pubsub:getTopic
Arguments:
name: my-pubsub-topic
Using getTopic
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getTopic(args: GetTopicArgs, opts?: InvokeOptions): Promise<GetTopicResult>
function getTopicOutput(args: GetTopicOutputArgs, opts?: InvokeOptions): Output<GetTopicResult>
def get_topic(name: Optional[str] = None,
project: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetTopicResult
def get_topic_output(name: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetTopicResult]
func LookupTopic(ctx *Context, args *LookupTopicArgs, opts ...InvokeOption) (*LookupTopicResult, error)
func LookupTopicOutput(ctx *Context, args *LookupTopicOutputArgs, opts ...InvokeOption) LookupTopicResultOutput
> Note: This function is named LookupTopic
in the Go SDK.
public static class GetTopic
{
public static Task<GetTopicResult> InvokeAsync(GetTopicArgs args, InvokeOptions? opts = null)
public static Output<GetTopicResult> Invoke(GetTopicInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetTopicResult> getTopic(GetTopicArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: gcp:pubsub/getTopic:getTopic
arguments:
# arguments dictionary
The following arguments are supported:
getTopic Result
The following output properties are available:
- Effective
Labels Dictionary<string, string> - Id string
- The provider-assigned unique ID for this managed resource.
- Ingestion
Data List<GetSource Settings Topic Ingestion Data Source Setting> - Kms
Key stringName - Labels Dictionary<string, string>
- Message
Retention stringDuration - Message
Storage List<GetPolicies Topic Message Storage Policy> - Name string
- Pulumi
Labels Dictionary<string, string> - Schema
Settings List<GetTopic Schema Setting> - Project string
- Effective
Labels map[string]string - Id string
- The provider-assigned unique ID for this managed resource.
- Ingestion
Data []GetSource Settings Topic Ingestion Data Source Setting - Kms
Key stringName - Labels map[string]string
- Message
Retention stringDuration - Message
Storage []GetPolicies Topic Message Storage Policy - Name string
- Pulumi
Labels map[string]string - Schema
Settings []GetTopic Schema Setting - Project string
- effective
Labels Map<String,String> - id String
- The provider-assigned unique ID for this managed resource.
- ingestion
Data List<GetSource Settings Topic Ingestion Data Source Setting> - kms
Key StringName - labels Map<String,String>
- message
Retention StringDuration - message
Storage List<GetPolicies Topic Message Storage Policy> - name String
- pulumi
Labels Map<String,String> - schema
Settings List<GetTopic Schema Setting> - project String
- effective
Labels {[key: string]: string} - id string
- The provider-assigned unique ID for this managed resource.
- ingestion
Data GetSource Settings Topic Ingestion Data Source Setting[] - kms
Key stringName - labels {[key: string]: string}
- message
Retention stringDuration - message
Storage GetPolicies Topic Message Storage Policy[] - name string
- pulumi
Labels {[key: string]: string} - schema
Settings GetTopic Schema Setting[] - project string
- effective_
labels Mapping[str, str] - id str
- The provider-assigned unique ID for this managed resource.
- ingestion_
data_ Sequence[Getsource_ settings Topic Ingestion Data Source Setting] - kms_
key_ strname - labels Mapping[str, str]
- message_
retention_ strduration - message_
storage_ Sequence[Getpolicies Topic Message Storage Policy] - name str
- pulumi_
labels Mapping[str, str] - schema_
settings Sequence[GetTopic Schema Setting] - project str
- effective
Labels Map<String> - id String
- The provider-assigned unique ID for this managed resource.
- ingestion
Data List<Property Map>Source Settings - kms
Key StringName - labels Map<String>
- message
Retention StringDuration - message
Storage List<Property Map>Policies - name String
- pulumi
Labels Map<String> - schema
Settings List<Property Map> - project String
Supporting Types
GetTopicIngestionDataSourceSetting
- Aws
Kineses List<GetTopic Ingestion Data Source Setting Aws Kinese> - Settings for ingestion from Amazon Kinesis Data Streams.
- Cloud
Storages List<GetTopic Ingestion Data Source Setting Cloud Storage> - Settings for ingestion from Cloud Storage.
- Platform
Logs List<GetSettings Topic Ingestion Data Source Setting Platform Logs Setting> - Settings for Platform Logs regarding ingestion to Pub/Sub. If unset, no Platform Logs will be generated.'
- Aws
Kineses []GetTopic Ingestion Data Source Setting Aws Kinese - Settings for ingestion from Amazon Kinesis Data Streams.
- Cloud
Storages []GetTopic Ingestion Data Source Setting Cloud Storage - Settings for ingestion from Cloud Storage.
- Platform
Logs []GetSettings Topic Ingestion Data Source Setting Platform Logs Setting - Settings for Platform Logs regarding ingestion to Pub/Sub. If unset, no Platform Logs will be generated.'
- aws
Kineses List<GetTopic Ingestion Data Source Setting Aws Kinese> - Settings for ingestion from Amazon Kinesis Data Streams.
- cloud
Storages List<GetTopic Ingestion Data Source Setting Cloud Storage> - Settings for ingestion from Cloud Storage.
- platform
Logs List<GetSettings Topic Ingestion Data Source Setting Platform Logs Setting> - Settings for Platform Logs regarding ingestion to Pub/Sub. If unset, no Platform Logs will be generated.'
- aws
Kineses GetTopic Ingestion Data Source Setting Aws Kinese[] - Settings for ingestion from Amazon Kinesis Data Streams.
- cloud
Storages GetTopic Ingestion Data Source Setting Cloud Storage[] - Settings for ingestion from Cloud Storage.
- platform
Logs GetSettings Topic Ingestion Data Source Setting Platform Logs Setting[] - Settings for Platform Logs regarding ingestion to Pub/Sub. If unset, no Platform Logs will be generated.'
- aws_
kineses Sequence[GetTopic Ingestion Data Source Setting Aws Kinese] - Settings for ingestion from Amazon Kinesis Data Streams.
- cloud_
storages Sequence[GetTopic Ingestion Data Source Setting Cloud Storage] - Settings for ingestion from Cloud Storage.
- platform_
logs_ Sequence[Getsettings Topic Ingestion Data Source Setting Platform Logs Setting] - Settings for Platform Logs regarding ingestion to Pub/Sub. If unset, no Platform Logs will be generated.'
- aws
Kineses List<Property Map> - Settings for ingestion from Amazon Kinesis Data Streams.
- cloud
Storages List<Property Map> - Settings for ingestion from Cloud Storage.
- platform
Logs List<Property Map>Settings - Settings for Platform Logs regarding ingestion to Pub/Sub. If unset, no Platform Logs will be generated.'
GetTopicIngestionDataSourceSettingAwsKinese
- Aws
Role stringArn - AWS role ARN to be used for Federated Identity authentication with Kinesis. Check the Pub/Sub docs for how to set up this role and the required permissions that need to be attached to it.
- Consumer
Arn string - The Kinesis consumer ARN to used for ingestion in Enhanced Fan-Out mode. The consumer must be already created and ready to be used.
- Gcp
Service stringAccount - The GCP service account to be used for Federated Identity authentication with Kinesis (via a 'AssumeRoleWithWebIdentity' call for the provided role). The 'awsRoleArn' must be set up with 'accounts.google.com:sub' equals to this service account number.
- Stream
Arn string - The Kinesis stream ARN to ingest data from.
- Aws
Role stringArn - AWS role ARN to be used for Federated Identity authentication with Kinesis. Check the Pub/Sub docs for how to set up this role and the required permissions that need to be attached to it.
- Consumer
Arn string - The Kinesis consumer ARN to used for ingestion in Enhanced Fan-Out mode. The consumer must be already created and ready to be used.
- Gcp
Service stringAccount - The GCP service account to be used for Federated Identity authentication with Kinesis (via a 'AssumeRoleWithWebIdentity' call for the provided role). The 'awsRoleArn' must be set up with 'accounts.google.com:sub' equals to this service account number.
- Stream
Arn string - The Kinesis stream ARN to ingest data from.
- aws
Role StringArn - AWS role ARN to be used for Federated Identity authentication with Kinesis. Check the Pub/Sub docs for how to set up this role and the required permissions that need to be attached to it.
- consumer
Arn String - The Kinesis consumer ARN to used for ingestion in Enhanced Fan-Out mode. The consumer must be already created and ready to be used.
- gcp
Service StringAccount - The GCP service account to be used for Federated Identity authentication with Kinesis (via a 'AssumeRoleWithWebIdentity' call for the provided role). The 'awsRoleArn' must be set up with 'accounts.google.com:sub' equals to this service account number.
- stream
Arn String - The Kinesis stream ARN to ingest data from.
- aws
Role stringArn - AWS role ARN to be used for Federated Identity authentication with Kinesis. Check the Pub/Sub docs for how to set up this role and the required permissions that need to be attached to it.
- consumer
Arn string - The Kinesis consumer ARN to used for ingestion in Enhanced Fan-Out mode. The consumer must be already created and ready to be used.
- gcp
Service stringAccount - The GCP service account to be used for Federated Identity authentication with Kinesis (via a 'AssumeRoleWithWebIdentity' call for the provided role). The 'awsRoleArn' must be set up with 'accounts.google.com:sub' equals to this service account number.
- stream
Arn string - The Kinesis stream ARN to ingest data from.
- aws_
role_ strarn - AWS role ARN to be used for Federated Identity authentication with Kinesis. Check the Pub/Sub docs for how to set up this role and the required permissions that need to be attached to it.
- consumer_
arn str - The Kinesis consumer ARN to used for ingestion in Enhanced Fan-Out mode. The consumer must be already created and ready to be used.
- gcp_
service_ straccount - The GCP service account to be used for Federated Identity authentication with Kinesis (via a 'AssumeRoleWithWebIdentity' call for the provided role). The 'awsRoleArn' must be set up with 'accounts.google.com:sub' equals to this service account number.
- stream_
arn str - The Kinesis stream ARN to ingest data from.
- aws
Role StringArn - AWS role ARN to be used for Federated Identity authentication with Kinesis. Check the Pub/Sub docs for how to set up this role and the required permissions that need to be attached to it.
- consumer
Arn String - The Kinesis consumer ARN to used for ingestion in Enhanced Fan-Out mode. The consumer must be already created and ready to be used.
- gcp
Service StringAccount - The GCP service account to be used for Federated Identity authentication with Kinesis (via a 'AssumeRoleWithWebIdentity' call for the provided role). The 'awsRoleArn' must be set up with 'accounts.google.com:sub' equals to this service account number.
- stream
Arn String - The Kinesis stream ARN to ingest data from.
GetTopicIngestionDataSourceSettingCloudStorage
- Avro
Formats List<GetTopic Ingestion Data Source Setting Cloud Storage Avro Format> - Configuration for reading Cloud Storage data in Avro binary format. The bytes of each object will be set to the 'data' field of a Pub/Sub message.
- Bucket string
- Cloud Storage bucket. The bucket name must be without any prefix like "gs://". See the bucket naming requirements: https://cloud.google.com/storage/docs/buckets#naming.
- Match
Glob string - Glob pattern used to match objects that will be ingested. If unset, all objects will be ingested. See the supported patterns: https://cloud.google.com/storage/docs/json_api/v1/objects/list#list-objects-and-prefixes-using-glob
- Minimum
Object stringCreate Time - The timestamp set in RFC3339 text format. If set, only objects with a larger or equal timestamp will be ingested. Unset by default, meaning all objects will be ingested.
- Pubsub
Avro List<GetFormats Topic Ingestion Data Source Setting Cloud Storage Pubsub Avro Format> - Configuration for reading Cloud Storage data written via Cloud Storage subscriptions(See https://cloud.google.com/pubsub/docs/cloudstorage). The data and attributes fields of the originally exported Pub/Sub message will be restored when publishing.
- Text
Formats List<GetTopic Ingestion Data Source Setting Cloud Storage Text Format> - Configuration for reading Cloud Storage data in text format. Each line of text as specified by the delimiter will be set to the 'data' field of a Pub/Sub message.
- Avro
Formats []GetTopic Ingestion Data Source Setting Cloud Storage Avro Format - Configuration for reading Cloud Storage data in Avro binary format. The bytes of each object will be set to the 'data' field of a Pub/Sub message.
- Bucket string
- Cloud Storage bucket. The bucket name must be without any prefix like "gs://". See the bucket naming requirements: https://cloud.google.com/storage/docs/buckets#naming.
- Match
Glob string - Glob pattern used to match objects that will be ingested. If unset, all objects will be ingested. See the supported patterns: https://cloud.google.com/storage/docs/json_api/v1/objects/list#list-objects-and-prefixes-using-glob
- Minimum
Object stringCreate Time - The timestamp set in RFC3339 text format. If set, only objects with a larger or equal timestamp will be ingested. Unset by default, meaning all objects will be ingested.
- Pubsub
Avro []GetFormats Topic Ingestion Data Source Setting Cloud Storage Pubsub Avro Format - Configuration for reading Cloud Storage data written via Cloud Storage subscriptions(See https://cloud.google.com/pubsub/docs/cloudstorage). The data and attributes fields of the originally exported Pub/Sub message will be restored when publishing.
- Text
Formats []GetTopic Ingestion Data Source Setting Cloud Storage Text Format - Configuration for reading Cloud Storage data in text format. Each line of text as specified by the delimiter will be set to the 'data' field of a Pub/Sub message.
- avro
Formats List<GetTopic Ingestion Data Source Setting Cloud Storage Avro Format> - Configuration for reading Cloud Storage data in Avro binary format. The bytes of each object will be set to the 'data' field of a Pub/Sub message.
- bucket String
- Cloud Storage bucket. The bucket name must be without any prefix like "gs://". See the bucket naming requirements: https://cloud.google.com/storage/docs/buckets#naming.
- match
Glob String - Glob pattern used to match objects that will be ingested. If unset, all objects will be ingested. See the supported patterns: https://cloud.google.com/storage/docs/json_api/v1/objects/list#list-objects-and-prefixes-using-glob
- minimum
Object StringCreate Time - The timestamp set in RFC3339 text format. If set, only objects with a larger or equal timestamp will be ingested. Unset by default, meaning all objects will be ingested.
- pubsub
Avro List<GetFormats Topic Ingestion Data Source Setting Cloud Storage Pubsub Avro Format> - Configuration for reading Cloud Storage data written via Cloud Storage subscriptions(See https://cloud.google.com/pubsub/docs/cloudstorage). The data and attributes fields of the originally exported Pub/Sub message will be restored when publishing.
- text
Formats List<GetTopic Ingestion Data Source Setting Cloud Storage Text Format> - Configuration for reading Cloud Storage data in text format. Each line of text as specified by the delimiter will be set to the 'data' field of a Pub/Sub message.
- avro
Formats GetTopic Ingestion Data Source Setting Cloud Storage Avro Format[] - Configuration for reading Cloud Storage data in Avro binary format. The bytes of each object will be set to the 'data' field of a Pub/Sub message.
- bucket string
- Cloud Storage bucket. The bucket name must be without any prefix like "gs://". See the bucket naming requirements: https://cloud.google.com/storage/docs/buckets#naming.
- match
Glob string - Glob pattern used to match objects that will be ingested. If unset, all objects will be ingested. See the supported patterns: https://cloud.google.com/storage/docs/json_api/v1/objects/list#list-objects-and-prefixes-using-glob
- minimum
Object stringCreate Time - The timestamp set in RFC3339 text format. If set, only objects with a larger or equal timestamp will be ingested. Unset by default, meaning all objects will be ingested.
- pubsub
Avro GetFormats Topic Ingestion Data Source Setting Cloud Storage Pubsub Avro Format[] - Configuration for reading Cloud Storage data written via Cloud Storage subscriptions(See https://cloud.google.com/pubsub/docs/cloudstorage). The data and attributes fields of the originally exported Pub/Sub message will be restored when publishing.
- text
Formats GetTopic Ingestion Data Source Setting Cloud Storage Text Format[] - Configuration for reading Cloud Storage data in text format. Each line of text as specified by the delimiter will be set to the 'data' field of a Pub/Sub message.
- avro_
formats Sequence[GetTopic Ingestion Data Source Setting Cloud Storage Avro Format] - Configuration for reading Cloud Storage data in Avro binary format. The bytes of each object will be set to the 'data' field of a Pub/Sub message.
- bucket str
- Cloud Storage bucket. The bucket name must be without any prefix like "gs://". See the bucket naming requirements: https://cloud.google.com/storage/docs/buckets#naming.
- match_
glob str - Glob pattern used to match objects that will be ingested. If unset, all objects will be ingested. See the supported patterns: https://cloud.google.com/storage/docs/json_api/v1/objects/list#list-objects-and-prefixes-using-glob
- minimum_
object_ strcreate_ time - The timestamp set in RFC3339 text format. If set, only objects with a larger or equal timestamp will be ingested. Unset by default, meaning all objects will be ingested.
- pubsub_
avro_ Sequence[Getformats Topic Ingestion Data Source Setting Cloud Storage Pubsub Avro Format] - Configuration for reading Cloud Storage data written via Cloud Storage subscriptions(See https://cloud.google.com/pubsub/docs/cloudstorage). The data and attributes fields of the originally exported Pub/Sub message will be restored when publishing.
- text_
formats Sequence[GetTopic Ingestion Data Source Setting Cloud Storage Text Format] - Configuration for reading Cloud Storage data in text format. Each line of text as specified by the delimiter will be set to the 'data' field of a Pub/Sub message.
- avro
Formats List<Property Map> - Configuration for reading Cloud Storage data in Avro binary format. The bytes of each object will be set to the 'data' field of a Pub/Sub message.
- bucket String
- Cloud Storage bucket. The bucket name must be without any prefix like "gs://". See the bucket naming requirements: https://cloud.google.com/storage/docs/buckets#naming.
- match
Glob String - Glob pattern used to match objects that will be ingested. If unset, all objects will be ingested. See the supported patterns: https://cloud.google.com/storage/docs/json_api/v1/objects/list#list-objects-and-prefixes-using-glob
- minimum
Object StringCreate Time - The timestamp set in RFC3339 text format. If set, only objects with a larger or equal timestamp will be ingested. Unset by default, meaning all objects will be ingested.
- pubsub
Avro List<Property Map>Formats - Configuration for reading Cloud Storage data written via Cloud Storage subscriptions(See https://cloud.google.com/pubsub/docs/cloudstorage). The data and attributes fields of the originally exported Pub/Sub message will be restored when publishing.
- text
Formats List<Property Map> - Configuration for reading Cloud Storage data in text format. Each line of text as specified by the delimiter will be set to the 'data' field of a Pub/Sub message.
GetTopicIngestionDataSourceSettingCloudStorageTextFormat
- Delimiter string
- The delimiter to use when using the 'text' format. Each line of text as specified by the delimiter will be set to the 'data' field of a Pub/Sub message. When unset, '\n' is used.
- Delimiter string
- The delimiter to use when using the 'text' format. Each line of text as specified by the delimiter will be set to the 'data' field of a Pub/Sub message. When unset, '\n' is used.
- delimiter String
- The delimiter to use when using the 'text' format. Each line of text as specified by the delimiter will be set to the 'data' field of a Pub/Sub message. When unset, '\n' is used.
- delimiter string
- The delimiter to use when using the 'text' format. Each line of text as specified by the delimiter will be set to the 'data' field of a Pub/Sub message. When unset, '\n' is used.
- delimiter str
- The delimiter to use when using the 'text' format. Each line of text as specified by the delimiter will be set to the 'data' field of a Pub/Sub message. When unset, '\n' is used.
- delimiter String
- The delimiter to use when using the 'text' format. Each line of text as specified by the delimiter will be set to the 'data' field of a Pub/Sub message. When unset, '\n' is used.
GetTopicIngestionDataSourceSettingPlatformLogsSetting
- Severity string
- The minimum severity level of Platform Logs that will be written. If unspecified, no Platform Logs will be written. Default value: "SEVERITY_UNSPECIFIED" Possible values: ["SEVERITY_UNSPECIFIED", "DISABLED", "DEBUG", "INFO", "WARNING", "ERROR"]
- Severity string
- The minimum severity level of Platform Logs that will be written. If unspecified, no Platform Logs will be written. Default value: "SEVERITY_UNSPECIFIED" Possible values: ["SEVERITY_UNSPECIFIED", "DISABLED", "DEBUG", "INFO", "WARNING", "ERROR"]
- severity String
- The minimum severity level of Platform Logs that will be written. If unspecified, no Platform Logs will be written. Default value: "SEVERITY_UNSPECIFIED" Possible values: ["SEVERITY_UNSPECIFIED", "DISABLED", "DEBUG", "INFO", "WARNING", "ERROR"]
- severity string
- The minimum severity level of Platform Logs that will be written. If unspecified, no Platform Logs will be written. Default value: "SEVERITY_UNSPECIFIED" Possible values: ["SEVERITY_UNSPECIFIED", "DISABLED", "DEBUG", "INFO", "WARNING", "ERROR"]
- severity str
- The minimum severity level of Platform Logs that will be written. If unspecified, no Platform Logs will be written. Default value: "SEVERITY_UNSPECIFIED" Possible values: ["SEVERITY_UNSPECIFIED", "DISABLED", "DEBUG", "INFO", "WARNING", "ERROR"]
- severity String
- The minimum severity level of Platform Logs that will be written. If unspecified, no Platform Logs will be written. Default value: "SEVERITY_UNSPECIFIED" Possible values: ["SEVERITY_UNSPECIFIED", "DISABLED", "DEBUG", "INFO", "WARNING", "ERROR"]
GetTopicMessageStoragePolicy
- Allowed
Persistence List<string>Regions - A list of IDs of GCP regions where messages that are published to the topic may be persisted in storage. Messages published by publishers running in non-allowed GCP regions (or running outside of GCP altogether) will be routed for storage in one of the allowed regions. An empty list means that no regions are allowed, and is not a valid configuration.
- Allowed
Persistence []stringRegions - A list of IDs of GCP regions where messages that are published to the topic may be persisted in storage. Messages published by publishers running in non-allowed GCP regions (or running outside of GCP altogether) will be routed for storage in one of the allowed regions. An empty list means that no regions are allowed, and is not a valid configuration.
- allowed
Persistence List<String>Regions - A list of IDs of GCP regions where messages that are published to the topic may be persisted in storage. Messages published by publishers running in non-allowed GCP regions (or running outside of GCP altogether) will be routed for storage in one of the allowed regions. An empty list means that no regions are allowed, and is not a valid configuration.
- allowed
Persistence string[]Regions - A list of IDs of GCP regions where messages that are published to the topic may be persisted in storage. Messages published by publishers running in non-allowed GCP regions (or running outside of GCP altogether) will be routed for storage in one of the allowed regions. An empty list means that no regions are allowed, and is not a valid configuration.
- allowed_
persistence_ Sequence[str]regions - A list of IDs of GCP regions where messages that are published to the topic may be persisted in storage. Messages published by publishers running in non-allowed GCP regions (or running outside of GCP altogether) will be routed for storage in one of the allowed regions. An empty list means that no regions are allowed, and is not a valid configuration.
- allowed
Persistence List<String>Regions - A list of IDs of GCP regions where messages that are published to the topic may be persisted in storage. Messages published by publishers running in non-allowed GCP regions (or running outside of GCP altogether) will be routed for storage in one of the allowed regions. An empty list means that no regions are allowed, and is not a valid configuration.
GetTopicSchemaSetting
- Encoding string
- The encoding of messages validated against schema. Default value: "ENCODING_UNSPECIFIED" Possible values: ["ENCODING_UNSPECIFIED", "JSON", "BINARY"]
- Schema string
- The name of the schema that messages published should be validated against. Format is projects/{project}/schemas/{schema}. The value of this field will be deleted-schema if the schema has been deleted.
- Encoding string
- The encoding of messages validated against schema. Default value: "ENCODING_UNSPECIFIED" Possible values: ["ENCODING_UNSPECIFIED", "JSON", "BINARY"]
- Schema string
- The name of the schema that messages published should be validated against. Format is projects/{project}/schemas/{schema}. The value of this field will be deleted-schema if the schema has been deleted.
- encoding String
- The encoding of messages validated against schema. Default value: "ENCODING_UNSPECIFIED" Possible values: ["ENCODING_UNSPECIFIED", "JSON", "BINARY"]
- schema String
- The name of the schema that messages published should be validated against. Format is projects/{project}/schemas/{schema}. The value of this field will be deleted-schema if the schema has been deleted.
- encoding string
- The encoding of messages validated against schema. Default value: "ENCODING_UNSPECIFIED" Possible values: ["ENCODING_UNSPECIFIED", "JSON", "BINARY"]
- schema string
- The name of the schema that messages published should be validated against. Format is projects/{project}/schemas/{schema}. The value of this field will be deleted-schema if the schema has been deleted.
- encoding str
- The encoding of messages validated against schema. Default value: "ENCODING_UNSPECIFIED" Possible values: ["ENCODING_UNSPECIFIED", "JSON", "BINARY"]
- schema str
- The name of the schema that messages published should be validated against. Format is projects/{project}/schemas/{schema}. The value of this field will be deleted-schema if the schema has been deleted.
- encoding String
- The encoding of messages validated against schema. Default value: "ENCODING_UNSPECIFIED" Possible values: ["ENCODING_UNSPECIFIED", "JSON", "BINARY"]
- schema String
- The name of the schema that messages published should be validated against. Format is projects/{project}/schemas/{schema}. The value of this field will be deleted-schema if the schema has been deleted.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-beta
Terraform Provider.