github.com/myhau/pulumi/pkg/v3@v3.70.2-0.20221116134521-f2775972e587/codegen/testing/test/testdata/output-funcs/nodejs/getBastionShareableLink.ts (about) 1 // *** WARNING: this file was generated by test. *** 2 // *** Do not edit by hand unless you're certain you know what you are doing! *** 3 4 import * as pulumi from "@pulumi/pulumi"; 5 import * as inputs from "./types/input"; 6 import * as outputs from "./types/output"; 7 import * as utilities from "./utilities"; 8 9 /** 10 * Response for all the Bastion Shareable Link endpoints. 11 * API Version: 2020-11-01. 12 */ 13 export function getBastionShareableLink(args: GetBastionShareableLinkArgs, opts?: pulumi.InvokeOptions): Promise<GetBastionShareableLinkResult> { 14 15 opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); 16 return pulumi.runtime.invoke("mypkg::getBastionShareableLink", { 17 "bastionHostName": args.bastionHostName, 18 "resourceGroupName": args.resourceGroupName, 19 "vms": args.vms, 20 }, opts); 21 } 22 23 export interface GetBastionShareableLinkArgs { 24 /** 25 * The name of the Bastion Host. 26 */ 27 bastionHostName: string; 28 /** 29 * The name of the resource group. 30 */ 31 resourceGroupName: string; 32 /** 33 * List of VM references. 34 */ 35 vms?: inputs.BastionShareableLink[]; 36 } 37 38 /** 39 * Response for all the Bastion Shareable Link endpoints. 40 */ 41 export interface GetBastionShareableLinkResult { 42 /** 43 * The URL to get the next set of results. 44 */ 45 readonly nextLink?: string; 46 } 47 48 export function getBastionShareableLinkOutput(args: GetBastionShareableLinkOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetBastionShareableLinkResult> { 49 return pulumi.output(args).apply(a => getBastionShareableLink(a, opts)) 50 } 51 52 export interface GetBastionShareableLinkOutputArgs { 53 /** 54 * The name of the Bastion Host. 55 */ 56 bastionHostName: pulumi.Input<string>; 57 /** 58 * The name of the resource group. 59 */ 60 resourceGroupName: pulumi.Input<string>; 61 /** 62 * List of VM references. 63 */ 64 vms?: pulumi.Input<pulumi.Input<inputs.BastionShareableLinkArgs>[]>; 65 }