Update
This commit is contained in:
48
sdk/nodejs/networkForward.ts
generated
48
sdk/nodejs/networkForward.ts
generated
@@ -1,4 +1,4 @@
|
||||
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
||||
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
import * as pulumi from "@pulumi/pulumi";
|
||||
@@ -38,34 +38,34 @@ export class NetworkForward extends pulumi.CustomResource {
|
||||
* *Optional* - Map of key/value pairs of
|
||||
* network forward config settings.
|
||||
*/
|
||||
public readonly config!: pulumi.Output<{[key: string]: string}>;
|
||||
declare public readonly config: pulumi.Output<{[key: string]: string}>;
|
||||
/**
|
||||
* *Optional* - Description of port(s)
|
||||
*/
|
||||
public readonly description!: pulumi.Output<string>;
|
||||
declare public readonly description: pulumi.Output<string>;
|
||||
/**
|
||||
* **Required** - IP address to listen on.
|
||||
*/
|
||||
public readonly listenAddress!: pulumi.Output<string>;
|
||||
declare public readonly listenAddress: pulumi.Output<string>;
|
||||
/**
|
||||
* **Required** - Name of the network.
|
||||
*/
|
||||
public readonly network!: pulumi.Output<string>;
|
||||
declare public readonly network: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - List of port specifications. See reference below.
|
||||
*
|
||||
* The network forward port supports:
|
||||
*/
|
||||
public readonly ports!: pulumi.Output<outputs.NetworkForwardPort[]>;
|
||||
declare public readonly ports: pulumi.Output<outputs.NetworkForwardPort[]>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network forward will be created.
|
||||
*/
|
||||
public readonly project!: pulumi.Output<string | undefined>;
|
||||
declare public readonly project: pulumi.Output<string | undefined>;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource will be created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
public readonly remote!: pulumi.Output<string | undefined>;
|
||||
declare public readonly remote: pulumi.Output<string | undefined>;
|
||||
|
||||
/**
|
||||
* Create a NetworkForward resource with the given unique name, arguments, and options.
|
||||
@@ -80,28 +80,28 @@ export class NetworkForward extends pulumi.CustomResource {
|
||||
opts = opts || {};
|
||||
if (opts.id) {
|
||||
const state = argsOrState as NetworkForwardState | undefined;
|
||||
resourceInputs["config"] = state ? state.config : undefined;
|
||||
resourceInputs["description"] = state ? state.description : undefined;
|
||||
resourceInputs["listenAddress"] = state ? state.listenAddress : undefined;
|
||||
resourceInputs["network"] = state ? state.network : undefined;
|
||||
resourceInputs["ports"] = state ? state.ports : undefined;
|
||||
resourceInputs["project"] = state ? state.project : undefined;
|
||||
resourceInputs["remote"] = state ? state.remote : undefined;
|
||||
resourceInputs["config"] = state?.config;
|
||||
resourceInputs["description"] = state?.description;
|
||||
resourceInputs["listenAddress"] = state?.listenAddress;
|
||||
resourceInputs["network"] = state?.network;
|
||||
resourceInputs["ports"] = state?.ports;
|
||||
resourceInputs["project"] = state?.project;
|
||||
resourceInputs["remote"] = state?.remote;
|
||||
} else {
|
||||
const args = argsOrState as NetworkForwardArgs | undefined;
|
||||
if ((!args || args.listenAddress === undefined) && !opts.urn) {
|
||||
if (args?.listenAddress === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'listenAddress'");
|
||||
}
|
||||
if ((!args || args.network === undefined) && !opts.urn) {
|
||||
if (args?.network === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'network'");
|
||||
}
|
||||
resourceInputs["config"] = args ? args.config : undefined;
|
||||
resourceInputs["description"] = args ? args.description : undefined;
|
||||
resourceInputs["listenAddress"] = args ? args.listenAddress : undefined;
|
||||
resourceInputs["network"] = args ? args.network : undefined;
|
||||
resourceInputs["ports"] = args ? args.ports : undefined;
|
||||
resourceInputs["project"] = args ? args.project : undefined;
|
||||
resourceInputs["remote"] = args ? args.remote : undefined;
|
||||
resourceInputs["config"] = args?.config;
|
||||
resourceInputs["description"] = args?.description;
|
||||
resourceInputs["listenAddress"] = args?.listenAddress;
|
||||
resourceInputs["network"] = args?.network;
|
||||
resourceInputs["ports"] = args?.ports;
|
||||
resourceInputs["project"] = args?.project;
|
||||
resourceInputs["remote"] = args?.remote;
|
||||
}
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
||||
super(NetworkForward.__pulumiType, name, resourceInputs, opts);
|
||||
|
||||
Reference in New Issue
Block a user