@pulumi/linode
Version:
A Pulumi package for creating and managing linode cloud resources.
133 lines (132 loc) • 4.38 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Manages a Linode Firewall Device.
* For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/post-firewall-device).
*
* **NOTICE:** Attaching a Linode Firewall Device to a `linode.Firewall` resource with user-defined `linodes` may cause device conflicts.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as linode from "@pulumi/linode";
*
* const myFirewall = new linode.Firewall("my_firewall", {
* label: "my_firewall",
* inbounds: [{
* label: "http",
* action: "ACCEPT",
* protocol: "TCP",
* ports: "80",
* ipv4s: ["0.0.0.0/0"],
* ipv6s: ["::/0"],
* }],
* inboundPolicy: "DROP",
* outboundPolicy: "ACCEPT",
* });
* const myInstance = new linode.Instance("my_instance", {
* label: "my_instance",
* region: "us-southeast",
* type: "g6-standard-1",
* });
* const myDevice = new linode.FirewallDevice("my_device", {
* firewallId: myFirewall.id,
* entityId: myInstance.id,
* });
* ```
*
* ## Import
*
* Firewall Device can be imported using the `firewall_id` followed by the Firewall Device `id` separated by a comma, e.g.
*
* ```sh
* $ pulumi import linode:index/firewallDevice:FirewallDevice my_device_duplicated 1234567,7654321
* ```
*/
export declare class FirewallDevice extends pulumi.CustomResource {
/**
* Get an existing FirewallDevice 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?: FirewallDeviceState, opts?: pulumi.CustomResourceOptions): FirewallDevice;
/**
* Returns true if the given object is an instance of FirewallDevice. 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 FirewallDevice;
/**
* When the Firewall Device was last created.
*/
readonly created: pulumi.Output<string>;
/**
* The unique ID of the entity to attach.
*/
readonly entityId: pulumi.Output<number>;
/**
* The type of the entity to attach. (default: `linode`)
*/
readonly entityType: pulumi.Output<string>;
/**
* The unique ID of the target Firewall.
*/
readonly firewallId: pulumi.Output<number>;
/**
* When the Firewall Device was last updated.
*/
readonly updated: pulumi.Output<string>;
/**
* Create a FirewallDevice 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: FirewallDeviceArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering FirewallDevice resources.
*/
export interface FirewallDeviceState {
/**
* When the Firewall Device was last created.
*/
created?: pulumi.Input<string>;
/**
* The unique ID of the entity to attach.
*/
entityId?: pulumi.Input<number>;
/**
* The type of the entity to attach. (default: `linode`)
*/
entityType?: pulumi.Input<string>;
/**
* The unique ID of the target Firewall.
*/
firewallId?: pulumi.Input<number>;
/**
* When the Firewall Device was last updated.
*/
updated?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a FirewallDevice resource.
*/
export interface FirewallDeviceArgs {
/**
* The unique ID of the entity to attach.
*/
entityId: pulumi.Input<number>;
/**
* The type of the entity to attach. (default: `linode`)
*/
entityType?: pulumi.Input<string>;
/**
* The unique ID of the target Firewall.
*/
firewallId: pulumi.Input<number>;
}