run function

Future<RunResult> run(
  1. RunArgs args, {
  2. InvokeOptions? options,
})

A local command to be executed unconditionally. This command will always be run on any preview or deployment. Use local.Command to conditionally execute commands as part of the resource lifecycle. args Arguments passed to this invoke. Arguments for run. options Invoke options controlling this call.

Implementation

Future<RunResult> run(
  RunArgs args, {
  pulumi.InvokeOptions? options,
}) async {
  final deployment = pulumi.Deployment.instance;
  final result = await deployment.invoke<Map<String, dynamic>>(
    'command:local:run',
    args.toMap(),
    options: pulumi.toDeploymentInvokeOptions(options),
  );
  return RunResult.fromMap(result);
}