UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

278 lines 13.4 kB
import * as pulumi from "@pulumi/pulumi"; /** * > **Important:** The resource `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. * * Creates and manages Scaleway VPC Public Gateway DHCP configurations. * For more information, see the [API documentation](https://www.scaleway.com/en/developers/api/public-gateway/#dhcp-c05544). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumiverse/scaleway"; * * const main = new scaleway.network.PublicGatewayDhcp("main", {subnet: "192.168.1.0/24"}); * ``` * * ## Import * * Public Gateway DHCP configuration can be imported using `{zone}/{id}`, e.g. * * ```sh * $ pulumi import scaleway:network/publicGatewayDhcp:PublicGatewayDhcp main fr-par-1/11111111-1111-1111-1111-111111111111 * ``` */ export declare class PublicGatewayDhcp extends pulumi.CustomResource { /** * Get an existing PublicGatewayDhcp resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: PublicGatewayDhcpState, opts?: pulumi.CustomResourceOptions): PublicGatewayDhcp; /** * Returns true if the given object is an instance of PublicGatewayDhcp. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is PublicGatewayDhcp; /** * The IP address of the DHCP server. This will be the gateway's address in the Private Network. */ readonly address: pulumi.Output<string>; /** * The date and time of the creation of the Public Gateway DHCP configuration. */ readonly createdAt: pulumi.Output<string>; /** * TLD given to hostnames in the Private Network. Allowed characters are `a-z0-9-.`. Defaults to the slugified Private Network name if created along a GatewayNetwork, or else to `priv`. */ readonly dnsLocalName: pulumi.Output<string>; /** * Additional DNS search paths */ readonly dnsSearches: pulumi.Output<string[]>; /** * Override the DNS server list pushed to DHCP clients, instead of the gateway itself. */ readonly dnsServersOverrides: pulumi.Output<string[]>; /** * Whether to enable dynamic pooling of IPs. By turning the dynamic pool off, only pre-existing DHCP reservations will be handed out. Defaults to `true`. */ readonly enableDynamic: pulumi.Output<boolean>; /** * The Organization ID the Public Gateway DHCP config is associated with. */ readonly organizationId: pulumi.Output<string>; /** * High IP (excluded) of the dynamic address pool. Defaults to the last address of the subnet. */ readonly poolHigh: pulumi.Output<string>; /** * Low IP (included) of the dynamic address pool. Defaults to the second address of the subnet. */ readonly poolLow: pulumi.Output<string>; /** * `projectId`) The ID of the Project the Public Gateway DHCP configuration is associated with. */ readonly projectId: pulumi.Output<string>; /** * Whether the gateway should push a default route to DHCP clients or only hand out IPs. Defaults to `true`. * * > **Warning**: If you need to setup a default route, it's recommended to use the `scaleway.network.GatewayNetwork` resource instead. */ readonly pushDefaultRoute: pulumi.Output<boolean>; /** * Whether the gateway should push custom DNS servers to clients. This allows for instance hostname > IP resolution. Defaults to `true`. */ readonly pushDnsServer: pulumi.Output<boolean>; /** * After how long, in seconds, a DHCP client will query for a new lease if previous renews fail. Must be 30s lower than `validLifetime`. Defaults to 51m (3060s). */ readonly rebindTimer: pulumi.Output<number>; /** * After how long, in seconds, a renewal will be attempted. Must be 30s lower than `rebindTimer`. Defaults to 50m (3000s). */ readonly renewTimer: pulumi.Output<number>; /** * The subnet to associate with the Public Gateway DHCP configuration. * * @deprecated The 'dhcp' resource is deprecated and no longer functional. DHCP functionality was moved from Public Gateways to Private Networks, DHCP resources are now no longer needed. Please remove this resource from your configuration. For more information, please refer to the dedicated guide: https://github.com/scaleway/terraform-provider-scaleway/blob/master/docs/guides/migration_guide_vpcgw_v2.md */ readonly subnet: pulumi.Output<string>; /** * The date and time of the last update of the Public Gateway DHCP configuration. */ readonly updatedAt: pulumi.Output<string>; /** * How long, in seconds, DHCP entries will be valid. Defaults to 1h (3600s). */ readonly validLifetime: pulumi.Output<number>; /** * `zone`) The zone in which the Public Gateway DHCP configuration should be created. */ readonly zone: pulumi.Output<string | undefined>; /** * Create a PublicGatewayDhcp resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @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: PublicGatewayDhcpArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering PublicGatewayDhcp resources. */ export interface PublicGatewayDhcpState { /** * The IP address of the DHCP server. This will be the gateway's address in the Private Network. */ address?: pulumi.Input<string | undefined>; /** * The date and time of the creation of the Public Gateway DHCP configuration. */ createdAt?: pulumi.Input<string | undefined>; /** * TLD given to hostnames in the Private Network. Allowed characters are `a-z0-9-.`. Defaults to the slugified Private Network name if created along a GatewayNetwork, or else to `priv`. */ dnsLocalName?: pulumi.Input<string | undefined>; /** * Additional DNS search paths */ dnsSearches?: pulumi.Input<pulumi.Input<string>[] | undefined>; /** * Override the DNS server list pushed to DHCP clients, instead of the gateway itself. */ dnsServersOverrides?: pulumi.Input<pulumi.Input<string>[] | undefined>; /** * Whether to enable dynamic pooling of IPs. By turning the dynamic pool off, only pre-existing DHCP reservations will be handed out. Defaults to `true`. */ enableDynamic?: pulumi.Input<boolean | undefined>; /** * The Organization ID the Public Gateway DHCP config is associated with. */ organizationId?: pulumi.Input<string | undefined>; /** * High IP (excluded) of the dynamic address pool. Defaults to the last address of the subnet. */ poolHigh?: pulumi.Input<string | undefined>; /** * Low IP (included) of the dynamic address pool. Defaults to the second address of the subnet. */ poolLow?: pulumi.Input<string | undefined>; /** * `projectId`) The ID of the Project the Public Gateway DHCP configuration is associated with. */ projectId?: pulumi.Input<string | undefined>; /** * Whether the gateway should push a default route to DHCP clients or only hand out IPs. Defaults to `true`. * * > **Warning**: If you need to setup a default route, it's recommended to use the `scaleway.network.GatewayNetwork` resource instead. */ pushDefaultRoute?: pulumi.Input<boolean | undefined>; /** * Whether the gateway should push custom DNS servers to clients. This allows for instance hostname > IP resolution. Defaults to `true`. */ pushDnsServer?: pulumi.Input<boolean | undefined>; /** * After how long, in seconds, a DHCP client will query for a new lease if previous renews fail. Must be 30s lower than `validLifetime`. Defaults to 51m (3060s). */ rebindTimer?: pulumi.Input<number | undefined>; /** * After how long, in seconds, a renewal will be attempted. Must be 30s lower than `rebindTimer`. Defaults to 50m (3000s). */ renewTimer?: pulumi.Input<number | undefined>; /** * The subnet to associate with the Public Gateway DHCP configuration. * * @deprecated The 'dhcp' resource is deprecated and no longer functional. DHCP functionality was moved from Public Gateways to Private Networks, DHCP resources are now no longer needed. Please remove this resource from your configuration. For more information, please refer to the dedicated guide: https://github.com/scaleway/terraform-provider-scaleway/blob/master/docs/guides/migration_guide_vpcgw_v2.md */ subnet?: pulumi.Input<string | undefined>; /** * The date and time of the last update of the Public Gateway DHCP configuration. */ updatedAt?: pulumi.Input<string | undefined>; /** * How long, in seconds, DHCP entries will be valid. Defaults to 1h (3600s). */ validLifetime?: pulumi.Input<number | undefined>; /** * `zone`) The zone in which the Public Gateway DHCP configuration should be created. */ zone?: pulumi.Input<string | undefined>; } /** * The set of arguments for constructing a PublicGatewayDhcp resource. */ export interface PublicGatewayDhcpArgs { /** * The IP address of the DHCP server. This will be the gateway's address in the Private Network. */ address?: pulumi.Input<string | undefined>; /** * TLD given to hostnames in the Private Network. Allowed characters are `a-z0-9-.`. Defaults to the slugified Private Network name if created along a GatewayNetwork, or else to `priv`. */ dnsLocalName?: pulumi.Input<string | undefined>; /** * Additional DNS search paths */ dnsSearches?: pulumi.Input<pulumi.Input<string>[] | undefined>; /** * Override the DNS server list pushed to DHCP clients, instead of the gateway itself. */ dnsServersOverrides?: pulumi.Input<pulumi.Input<string>[] | undefined>; /** * Whether to enable dynamic pooling of IPs. By turning the dynamic pool off, only pre-existing DHCP reservations will be handed out. Defaults to `true`. */ enableDynamic?: pulumi.Input<boolean | undefined>; /** * High IP (excluded) of the dynamic address pool. Defaults to the last address of the subnet. */ poolHigh?: pulumi.Input<string | undefined>; /** * Low IP (included) of the dynamic address pool. Defaults to the second address of the subnet. */ poolLow?: pulumi.Input<string | undefined>; /** * `projectId`) The ID of the Project the Public Gateway DHCP configuration is associated with. */ projectId?: pulumi.Input<string | undefined>; /** * Whether the gateway should push a default route to DHCP clients or only hand out IPs. Defaults to `true`. * * > **Warning**: If you need to setup a default route, it's recommended to use the `scaleway.network.GatewayNetwork` resource instead. */ pushDefaultRoute?: pulumi.Input<boolean | undefined>; /** * Whether the gateway should push custom DNS servers to clients. This allows for instance hostname > IP resolution. Defaults to `true`. */ pushDnsServer?: pulumi.Input<boolean | undefined>; /** * After how long, in seconds, a DHCP client will query for a new lease if previous renews fail. Must be 30s lower than `validLifetime`. Defaults to 51m (3060s). */ rebindTimer?: pulumi.Input<number | undefined>; /** * After how long, in seconds, a renewal will be attempted. Must be 30s lower than `rebindTimer`. Defaults to 50m (3000s). */ renewTimer?: pulumi.Input<number | undefined>; /** * The subnet to associate with the Public Gateway DHCP configuration. * * @deprecated The 'dhcp' resource is deprecated and no longer functional. DHCP functionality was moved from Public Gateways to Private Networks, DHCP resources are now no longer needed. Please remove this resource from your configuration. For more information, please refer to the dedicated guide: https://github.com/scaleway/terraform-provider-scaleway/blob/master/docs/guides/migration_guide_vpcgw_v2.md */ subnet: pulumi.Input<string>; /** * How long, in seconds, DHCP entries will be valid. Defaults to 1h (3600s). */ validLifetime?: pulumi.Input<number | undefined>; /** * `zone`) The zone in which the Public Gateway DHCP configuration should be created. */ zone?: pulumi.Input<string | undefined>; } //# sourceMappingURL=publicGatewayDhcp.d.ts.map