Update
This commit is contained in:
51
sdk/nodejs/networkAcl.ts
generated
51
sdk/nodejs/networkAcl.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 NetworkAcl extends pulumi.CustomResource {
|
||||
* *Optional* - Map of key/value pairs of
|
||||
* network ACL config settings.
|
||||
*/
|
||||
public readonly config!: pulumi.Output<{[key: string]: string}>;
|
||||
declare public readonly config: pulumi.Output<{[key: string]: string}>;
|
||||
/**
|
||||
* *Optional* - Description of the network ACL rule.
|
||||
*/
|
||||
public readonly description!: pulumi.Output<string>;
|
||||
declare public readonly description: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - List of network ACL rules for egress traffic. See reference below.
|
||||
*/
|
||||
public readonly egresses!: pulumi.Output<outputs.NetworkAclEgress[]>;
|
||||
declare public readonly egresses: pulumi.Output<outputs.NetworkAclEgress[]>;
|
||||
/**
|
||||
* *Optional* - List of network ACL rules for ingress traffic. See reference below.
|
||||
*
|
||||
* The network ACL rule supports:
|
||||
*/
|
||||
public readonly ingresses!: pulumi.Output<outputs.NetworkAclIngress[]>;
|
||||
declare public readonly ingresses: pulumi.Output<outputs.NetworkAclIngress[]>;
|
||||
/**
|
||||
* **Required** - Name of the network ACL.
|
||||
*/
|
||||
public readonly name!: pulumi.Output<string>;
|
||||
declare public readonly name: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network ACL will be created.
|
||||
*/
|
||||
public readonly project!: pulumi.Output<string>;
|
||||
declare public readonly project: pulumi.Output<string>;
|
||||
/**
|
||||
* *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 NetworkAcl resource with the given unique name, arguments, and options.
|
||||
@@ -74,28 +74,31 @@ export class NetworkAcl extends pulumi.CustomResource {
|
||||
* @param args The arguments to use to populate this resource's properties.
|
||||
* @param opts A bag of options that control this resource's behavior.
|
||||
*/
|
||||
constructor(name: string, args?: NetworkAclArgs, opts?: pulumi.CustomResourceOptions)
|
||||
constructor(name: string, args: NetworkAclArgs, opts?: pulumi.CustomResourceOptions)
|
||||
constructor(name: string, argsOrState?: NetworkAclArgs | NetworkAclState, opts?: pulumi.CustomResourceOptions) {
|
||||
let resourceInputs: pulumi.Inputs = {};
|
||||
opts = opts || {};
|
||||
if (opts.id) {
|
||||
const state = argsOrState as NetworkAclState | undefined;
|
||||
resourceInputs["config"] = state ? state.config : undefined;
|
||||
resourceInputs["description"] = state ? state.description : undefined;
|
||||
resourceInputs["egresses"] = state ? state.egresses : undefined;
|
||||
resourceInputs["ingresses"] = state ? state.ingresses : undefined;
|
||||
resourceInputs["name"] = state ? state.name : undefined;
|
||||
resourceInputs["project"] = state ? state.project : undefined;
|
||||
resourceInputs["remote"] = state ? state.remote : undefined;
|
||||
resourceInputs["config"] = state?.config;
|
||||
resourceInputs["description"] = state?.description;
|
||||
resourceInputs["egresses"] = state?.egresses;
|
||||
resourceInputs["ingresses"] = state?.ingresses;
|
||||
resourceInputs["name"] = state?.name;
|
||||
resourceInputs["project"] = state?.project;
|
||||
resourceInputs["remote"] = state?.remote;
|
||||
} else {
|
||||
const args = argsOrState as NetworkAclArgs | undefined;
|
||||
resourceInputs["config"] = args ? args.config : undefined;
|
||||
resourceInputs["description"] = args ? args.description : undefined;
|
||||
resourceInputs["egresses"] = args ? args.egresses : undefined;
|
||||
resourceInputs["ingresses"] = args ? args.ingresses : undefined;
|
||||
resourceInputs["name"] = args ? args.name : undefined;
|
||||
resourceInputs["project"] = (args ? args.project : undefined) ?? "default";
|
||||
resourceInputs["remote"] = args ? args.remote : undefined;
|
||||
if (args?.name === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'name'");
|
||||
}
|
||||
resourceInputs["config"] = args?.config;
|
||||
resourceInputs["description"] = args?.description;
|
||||
resourceInputs["egresses"] = args?.egresses;
|
||||
resourceInputs["ingresses"] = args?.ingresses;
|
||||
resourceInputs["name"] = args?.name;
|
||||
resourceInputs["project"] = (args?.project) ?? "default";
|
||||
resourceInputs["remote"] = args?.remote;
|
||||
}
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
||||
super(NetworkAcl.__pulumiType, name, resourceInputs, opts);
|
||||
@@ -166,7 +169,7 @@ export interface NetworkAclArgs {
|
||||
/**
|
||||
* **Required** - Name of the network ACL.
|
||||
*/
|
||||
name?: pulumi.Input<string>;
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the network ACL will be created.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user