Topic constructor
Creates a new Topic.
name The Pulumi resource name.
args Arguments used to configure this Topic. The set of arguments for Topic.
options Resource options controlling this resource's behavior.
Implementation
Topic(
String name, {
TopicArgs? args,
pulumi.CustomResourceOptions? options,
}) : super(
'google-native:pubsub/v1:Topic',
name,
pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
options ?? pulumi.CustomResourceOptions(),
) {
kmsKeyName = registerOutput<String>('kmsKeyName');
labels = registerOutput<Map<String, String>>('labels');
messageRetentionDuration = registerOutput<String>('messageRetentionDuration');
messageStoragePolicy = registerOutput<MessageStoragePolicyResponse>('messageStoragePolicy', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return MessageStoragePolicyResponse.fromMap((guardedValue as Map).cast<String, dynamic>()); });
this.name = registerOutput<String>('name');
project = registerOutput<String>('project');
satisfiesPzs = registerOutput<bool>('satisfiesPzs');
schemaSettings = registerOutput<SchemaSettingsResponse>('schemaSettings', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return SchemaSettingsResponse.fromMap((guardedValue as Map).cast<String, dynamic>()); });
topicId = registerOutput<String>('topicId');
}