getTopic function
Returns the topic configuration.
args Arguments passed to this invoke. Arguments for getTopic.
options Invoke options controlling this call.
Implementation
Future<GetTopicResult> getTopic(
GetTopicArgs args, {
pulumi.InvokeOptions? options,
}) async {
final deployment = pulumi.Deployment.instance;
final result = await deployment.invoke<Map<String, dynamic>>(
'google-native:pubsublite/v1:getTopic',
args.toMap(),
options: pulumi.toDeploymentInvokeOptions(options),
);
return GetTopicResult.fromMap(result);
}