@pulumi/dnsimple
Version:
A Pulumi package for creating and managing dnsimple cloud resources.
96 lines (95 loc) • 2.99 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as dnsimple from "@pulumi/dnsimple";
*
* // Create a domain delegation
* const foobar = new dnsimple.DomainDelegation("foobar", {
* domain: dnsimple.domain,
* nameServers: [
* "ns1.example.org",
* "ns2.example.com",
* ],
* });
* ```
*
* ## Import
*
* DNSimple domain delegations can be imported using the domain name.
*
* **Importing domain delegation for example.com**
*
* bash
*
* ```sh
* $ pulumi import dnsimple:index/domainDelegation:DomainDelegation resource_name example.com
* ```
*/
export declare class DomainDelegation extends pulumi.CustomResource {
/**
* Get an existing DomainDelegation 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?: DomainDelegationState, opts?: pulumi.CustomResourceOptions): DomainDelegation;
/**
* Returns true if the given object is an instance of DomainDelegation. 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 DomainDelegation;
/**
* The domain name.
*/
readonly domain: pulumi.Output<string>;
/**
* The list of name servers to delegate to.
*
* # Attributes Reference
*/
readonly nameServers: pulumi.Output<string[]>;
/**
* Create a DomainDelegation 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: DomainDelegationArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering DomainDelegation resources.
*/
export interface DomainDelegationState {
/**
* The domain name.
*/
domain?: pulumi.Input<string>;
/**
* The list of name servers to delegate to.
*
* # Attributes Reference
*/
nameServers?: pulumi.Input<pulumi.Input<string>[]>;
}
/**
* The set of arguments for constructing a DomainDelegation resource.
*/
export interface DomainDelegationArgs {
/**
* The domain name.
*/
domain: pulumi.Input<string>;
/**
* The list of name servers to delegate to.
*
* # Attributes Reference
*/
nameServers: pulumi.Input<pulumi.Input<string>[]>;
}