getSession function
Gets a session. Returns NOT_FOUND if the session does not exist. This is mainly useful for determining whether a session is still alive.
args Arguments passed to this invoke. Arguments for getSession.
options Invoke options controlling this call.
Implementation
Future<GetSessionResult> getSession(
GetSessionArgs args, {
pulumi.InvokeOptions? options,
}) async {
final deployment = pulumi.Deployment.instance;
final result = await deployment.invoke<Map<String, dynamic>>(
'google-native:spanner/v1:getSession',
args.toMap(),
options: pulumi.toDeploymentInvokeOptions(options),
);
return GetSessionResult.fromMap(result);
}