@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
62 lines • 2.67 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.getPublicGatewayDhcpOutput = exports.getPublicGatewayDhcp = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* > **Important:** The data source `scaleway.network.PublicGatewayDhcp` has been deprecated and will no longer be supported.
* In 2023, DHCP functionality was moved from Public Gateways to Private Networks, DHCP resources are now no longer needed.
* For more information, please refer to the dedicated guide.
*
* Gets information about a Public Gateway DHCP configuration.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumi/scaleway";
* import * as scaleway from "@pulumiverse/scaleway";
*
* const main = new scaleway.network.PublicGatewayDhcp("main", {subnet: "192.168.0.0/24"});
* const dhcpById = scaleway.network.getPublicGatewayDhcpOutput({
* dhcpId: main.id,
* });
* ```
*/
function getPublicGatewayDhcp(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("scaleway:network/getPublicGatewayDhcp:getPublicGatewayDhcp", {
"dhcpId": args.dhcpId,
}, opts);
}
exports.getPublicGatewayDhcp = getPublicGatewayDhcp;
/**
* > **Important:** The data source `scaleway.network.PublicGatewayDhcp` has been deprecated and will no longer be supported.
* In 2023, DHCP functionality was moved from Public Gateways to Private Networks, DHCP resources are now no longer needed.
* For more information, please refer to the dedicated guide.
*
* Gets information about a Public Gateway DHCP configuration.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumi/scaleway";
* import * as scaleway from "@pulumiverse/scaleway";
*
* const main = new scaleway.network.PublicGatewayDhcp("main", {subnet: "192.168.0.0/24"});
* const dhcpById = scaleway.network.getPublicGatewayDhcpOutput({
* dhcpId: main.id,
* });
* ```
*/
function getPublicGatewayDhcpOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("scaleway:network/getPublicGatewayDhcp:getPublicGatewayDhcp", {
"dhcpId": args.dhcpId,
}, opts);
}
exports.getPublicGatewayDhcpOutput = getPublicGatewayDhcpOutput;
//# sourceMappingURL=getPublicGatewayDhcp.js.map