@lbrlabs/pulumi-scaleway
Version:
A Pulumi package for creating and managing scaleway cloud resources.
100 lines • 3.62 kB
JavaScript
;
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getVpcPublicPatRuleOutput = exports.getVpcPublicPatRule = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Gets information about a public gateway PAT rule. For further information please check the
* API [documentation](https://developers.scaleway.com/en/products/vpc-gw/api/v1/#get-8faeea)
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@lbrlabs/pulumi-scaleway";
* import * as scaleway from "@pulumi/scaleway";
*
* const pg01 = new scaleway.VpcPublicGateway("pg01", {type: "VPC-GW-S"});
* const dhcp01 = new scaleway.VpcPublicGatewayDhcp("dhcp01", {subnet: "192.168.1.0/24"});
* const pn01 = new scaleway.VpcPrivateNetwork("pn01", {});
* const gn01 = new scaleway.VpcGatewayNetwork("gn01", {
* gatewayId: pg01.id,
* privateNetworkId: pn01.id,
* dhcpId: dhcp01.id,
* cleanupDhcp: true,
* enableMasquerade: true,
* }, {
* dependsOn: [pn01],
* });
* const mainVpcPublicGatewayPatRule = new scaleway.VpcPublicGatewayPatRule("mainVpcPublicGatewayPatRule", {
* gatewayId: pg01.id,
* privateIp: dhcp01.address,
* privatePort: 42,
* publicPort: 42,
* protocol: "both",
* }, {
* dependsOn: [
* gn01,
* pn01,
* ],
* });
* const mainVpcPublicPatRule = scaleway.getVpcPublicPatRuleOutput({
* patRuleId: mainVpcPublicGatewayPatRule.id,
* });
* ```
*/
function getVpcPublicPatRule(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("scaleway:index/getVpcPublicPatRule:getVpcPublicPatRule", {
"patRuleId": args.patRuleId,
"zone": args.zone,
}, opts);
}
exports.getVpcPublicPatRule = getVpcPublicPatRule;
/**
* Gets information about a public gateway PAT rule. For further information please check the
* API [documentation](https://developers.scaleway.com/en/products/vpc-gw/api/v1/#get-8faeea)
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@lbrlabs/pulumi-scaleway";
* import * as scaleway from "@pulumi/scaleway";
*
* const pg01 = new scaleway.VpcPublicGateway("pg01", {type: "VPC-GW-S"});
* const dhcp01 = new scaleway.VpcPublicGatewayDhcp("dhcp01", {subnet: "192.168.1.0/24"});
* const pn01 = new scaleway.VpcPrivateNetwork("pn01", {});
* const gn01 = new scaleway.VpcGatewayNetwork("gn01", {
* gatewayId: pg01.id,
* privateNetworkId: pn01.id,
* dhcpId: dhcp01.id,
* cleanupDhcp: true,
* enableMasquerade: true,
* }, {
* dependsOn: [pn01],
* });
* const mainVpcPublicGatewayPatRule = new scaleway.VpcPublicGatewayPatRule("mainVpcPublicGatewayPatRule", {
* gatewayId: pg01.id,
* privateIp: dhcp01.address,
* privatePort: 42,
* publicPort: 42,
* protocol: "both",
* }, {
* dependsOn: [
* gn01,
* pn01,
* ],
* });
* const mainVpcPublicPatRule = scaleway.getVpcPublicPatRuleOutput({
* patRuleId: mainVpcPublicGatewayPatRule.id,
* });
* ```
*/
function getVpcPublicPatRuleOutput(args, opts) {
return pulumi.output(args).apply((a) => getVpcPublicPatRule(a, opts));
}
exports.getVpcPublicPatRuleOutput = getVpcPublicPatRuleOutput;
//# sourceMappingURL=getVpcPublicPatRule.js.map