pulumi/tests/testdata/codegen/simplified-invokes/nodejs/absReducedOutput.ts

39 lines
1.3 KiB
TypeScript

// *** WARNING: this file was generated by test. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import * as utilities from "./utilities";
/**
* Returns the absolute value of a given float.
* Example: abs(1) returns 1, and abs(-1) would also return 1, whereas abs(-3.14) would return 3.14.
*/
export function absReducedOutput(args: AbsReducedOutputArgs, opts?: pulumi.InvokeOptions): Promise<number> {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeSingle("std:index:AbsReducedOutput", {
"a": args.a,
"b": args.b,
}, opts);
}
export interface AbsReducedOutputArgs {
a: number;
b?: number;
}
/**
* Returns the absolute value of a given float.
* Example: abs(1) returns 1, and abs(-1) would also return 1, whereas abs(-3.14) would return 3.14.
*/
export function absReducedOutputOutput(args: AbsReducedOutputOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<number> {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeSingleOutput("std:index:AbsReducedOutput", {
"a": args.a,
"b": args.b,
}, opts);
}
export interface AbsReducedOutputOutputArgs {
a: pulumi.Input<number>;
b?: pulumi.Input<number>;
}