@pulumi/linode
Version:
A Pulumi package for creating and managing linode cloud resources.
93 lines (92 loc) • 3.44 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "./types/input";
import * as outputs from "./types/output";
/**
* Manages the assignment of multiple IPv4 addresses and/or IPv6 ranges to multiple Linodes in a specified region.
*
* For more information, see the corresponding [API documentation](https://techdocs.akamai.com/linode-api/reference/post-assign-ips).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as linode from "@pulumi/linode";
*
* const foobar = new linode.NetworkingIpAssignment("foobar", {
* region: "us-mia",
* assignments: [
* {
* address: reservedIp1.address,
* linodeId: terraform_web1.id,
* },
* {
* address: reservedIp2.address,
* linodeId: terraform_web2.id,
* },
* ],
* });
* ```
*
* ## Import
*
* Network IP assignments cannot be imported.
*/
export declare class NetworkingIpAssignment extends pulumi.CustomResource {
/**
* Get an existing NetworkingIpAssignment 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?: NetworkingIpAssignmentState, opts?: pulumi.CustomResourceOptions): NetworkingIpAssignment;
/**
* Returns true if the given object is an instance of NetworkingIpAssignment. 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 NetworkingIpAssignment;
/**
* A list of IP/Linode assignments to apply.
*/
readonly assignments: pulumi.Output<outputs.NetworkingIpAssignmentAssignment[] | undefined>;
/**
* The region where the IP addresses will be assigned.
*/
readonly region: pulumi.Output<string>;
/**
* Create a NetworkingIpAssignment 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: NetworkingIpAssignmentArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering NetworkingIpAssignment resources.
*/
export interface NetworkingIpAssignmentState {
/**
* A list of IP/Linode assignments to apply.
*/
assignments?: pulumi.Input<pulumi.Input<inputs.NetworkingIpAssignmentAssignment>[]>;
/**
* The region where the IP addresses will be assigned.
*/
region?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a NetworkingIpAssignment resource.
*/
export interface NetworkingIpAssignmentArgs {
/**
* A list of IP/Linode assignments to apply.
*/
assignments?: pulumi.Input<pulumi.Input<inputs.NetworkingIpAssignmentAssignment>[]>;
/**
* The region where the IP addresses will be assigned.
*/
region: pulumi.Input<string>;
}