getSnapshot function
Gets the configuration details of a snapshot. Snapshots are used in Seek operations, which allow you to manage message acknowledgments in bulk. That is, you can set the acknowledgment state of messages in an existing subscription to the state captured by a snapshot.
args Arguments passed to this invoke. Arguments for getSnapshot.
options Invoke options controlling this call.
Implementation
Future<GetSnapshotResult> getSnapshot(
GetSnapshotArgs args, {
pulumi.InvokeOptions? options,
}) async {
final deployment = pulumi.Deployment.instance;
final result = await deployment.invoke<Map<String, dynamic>>(
'google-native:pubsub/v1:getSnapshot',
args.toMap(),
options: pulumi.toDeploymentInvokeOptions(options),
);
return GetSnapshotResult.fromMap(result);
}