import * as pulumi from "@pulumi/pulumi"; /** * Creates and manages Scaleway Public Gateway PAT (Port Address Translation). * For more information, see [the API documentation](https://www.scaleway.com/en/developers/api/public-gateway/#pat-rules-e75d10). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@ediri/scaleway"; * * const sg01 = new scaleway.InstanceSecurityGroup("sg01", { * inboundDefaultPolicy: "drop", * outboundDefaultPolicy: "accept", * inboundRules: [{ * action: "accept", * port: 22, * protocol: "TCP", * }], * }); * const srv01 = new scaleway.InstanceServer("srv01", { * type: "PLAY2-NANO", * image: "ubuntu_jammy", * securityGroupId: sg01.id, * }); * const pn01 = new scaleway.VpcPrivateNetwork("pn01", {}); * const pnic01 = new scaleway.InstancePrivateNic("pnic01", { * serverId: srv01.id, * privateNetworkId: pn01.id, * }); * const dhcp01 = new scaleway.VpcPublicGatewayDhcp("dhcp01", {subnet: "192.168.0.0/24"}); * const ip01 = new scaleway.VpcPublicGatewayIp("ip01", {}); * const pg01 = new scaleway.VpcPublicGateway("pg01", { * type: "VPC-GW-S", * ipId: ip01.id, * }); * const gn01 = new scaleway.VpcGatewayNetwork("gn01", { * gatewayId: pg01.id, * privateNetworkId: pn01.id, * dhcpId: dhcp01.id, * cleanupDhcp: true, * enableMasquerade: true, * }); * const rsv01 = new scaleway.VpcPublicGatewayDhcpReservation("rsv01", { * gatewayNetworkId: gn01.id, * macAddress: pnic01.macAddress, * ipAddress: "192.168.0.7", * }); * // PAT rule for SSH traffic * const pat01 = new scaleway.VpcPublicGatewayPatRule("pat01", { * gatewayId: pg01.id, * privateIp: rsv01.ipAddress, * privatePort: 22, * publicPort: 2202, * protocol: "tcp", * }); * ``` * * ## Import * * Public Gateway PAT rule configurations can be imported using `{zone}/{id}`, e.g. * * bash * * ```sh * $ pulumi import scaleway:index/vpcPublicGatewayPatRule:VpcPublicGatewayPatRule main fr-par-1/11111111-1111-1111-1111-111111111111 * ``` */ export declare class VpcPublicGatewayPatRule extends pulumi.CustomResource { /** * Get an existing VpcPublicGatewayPatRule 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, state?: VpcPublicGatewayPatRuleState, opts?: pulumi.CustomResourceOptions): VpcPublicGatewayPatRule; /** * Returns true if the given object is an instance of VpcPublicGatewayPatRule. 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 VpcPublicGatewayPatRule; /** * The date and time of the creation of the PAT rule configuration. */ readonly createdAt: pulumi.Output; /** * The ID of the Public Gateway. */ readonly gatewayId: pulumi.Output; /** * The Organization ID the PAT rule configuration is associated with. */ readonly organizationId: pulumi.Output; /** * The private IP address to forward data to. */ readonly privateIp: pulumi.Output; /** * The private port to translate to. */ readonly privatePort: pulumi.Output; /** * The protocol the rule should apply to. Possible values are `both`, `tcp` and `udp`. */ readonly protocol: pulumi.Output; /** * The public port to listen on. */ readonly publicPort: pulumi.Output; /** * The date and time of the last update of the PAT rule configuration. */ readonly updatedAt: pulumi.Output; /** * `zone`) The zone in which the Public Gateway DHCP configuration should be created. */ readonly zone: pulumi.Output; /** * Create a VpcPublicGatewayPatRule 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: VpcPublicGatewayPatRuleArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering VpcPublicGatewayPatRule resources. */ export interface VpcPublicGatewayPatRuleState { /** * The date and time of the creation of the PAT rule configuration. */ createdAt?: pulumi.Input; /** * The ID of the Public Gateway. */ gatewayId?: pulumi.Input; /** * The Organization ID the PAT rule configuration is associated with. */ organizationId?: pulumi.Input; /** * The private IP address to forward data to. */ privateIp?: pulumi.Input; /** * The private port to translate to. */ privatePort?: pulumi.Input; /** * The protocol the rule should apply to. Possible values are `both`, `tcp` and `udp`. */ protocol?: pulumi.Input; /** * The public port to listen on. */ publicPort?: pulumi.Input; /** * The date and time of the last update of the PAT rule configuration. */ updatedAt?: pulumi.Input; /** * `zone`) The zone in which the Public Gateway DHCP configuration should be created. */ zone?: pulumi.Input; } /** * The set of arguments for constructing a VpcPublicGatewayPatRule resource. */ export interface VpcPublicGatewayPatRuleArgs { /** * The ID of the Public Gateway. */ gatewayId: pulumi.Input; /** * The private IP address to forward data to. */ privateIp: pulumi.Input; /** * The private port to translate to. */ privatePort: pulumi.Input; /** * The protocol the rule should apply to. Possible values are `both`, `tcp` and `udp`. */ protocol?: pulumi.Input; /** * The public port to listen on. */ publicPort: pulumi.Input; /** * `zone`) The zone in which the Public Gateway DHCP configuration should be created. */ zone?: pulumi.Input; }