@pulumi/hcloud
Version:
A Pulumi package for creating and managing hcloud cloud resources.
110 lines • 3.54 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Provides a Hetzner Cloud Zone Record resource.
*
* This can be used to create, modify, and delete Zone Records.
*
* Managing the TTL, labels and protection level for the Zone Record Set that the Record belongs to is not possible.
*
* Importing this resource is only supported using an identity.
*
* See the [Zone RRSets API documentation](https://docs.hetzner.cloud/reference/cloud#zone-rrsets) for more details.
*
* > This resource must only be used, when records cannot be managed with a `hcloud.ZoneRrset` resource.
*/
export declare class ZoneRecord extends pulumi.CustomResource {
/**
* Get an existing ZoneRecord 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?: ZoneRecordState, opts?: pulumi.CustomResourceOptions): ZoneRecord;
/**
* Returns true if the given object is an instance of ZoneRecord. 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 ZoneRecord;
/**
* Comment of the Zone Record.
*/
readonly comment: pulumi.Output<string>;
/**
* Name of the Zone Record.
*/
readonly name: pulumi.Output<string>;
/**
* Type of the Zone Record.
*/
readonly type: pulumi.Output<string>;
/**
* Value of the Zone Record.
*/
readonly value: pulumi.Output<string>;
/**
* ID or Name of the parent Zone.
*/
readonly zone: pulumi.Output<string>;
/**
* Create a ZoneRecord 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: ZoneRecordArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering ZoneRecord resources.
*/
export interface ZoneRecordState {
/**
* Comment of the Zone Record.
*/
comment?: pulumi.Input<string | undefined>;
/**
* Name of the Zone Record.
*/
name?: pulumi.Input<string | undefined>;
/**
* Type of the Zone Record.
*/
type?: pulumi.Input<string | undefined>;
/**
* Value of the Zone Record.
*/
value?: pulumi.Input<string | undefined>;
/**
* ID or Name of the parent Zone.
*/
zone?: pulumi.Input<string | undefined>;
}
/**
* The set of arguments for constructing a ZoneRecord resource.
*/
export interface ZoneRecordArgs {
/**
* Comment of the Zone Record.
*/
comment?: pulumi.Input<string | undefined>;
/**
* Name of the Zone Record.
*/
name?: pulumi.Input<string | undefined>;
/**
* Type of the Zone Record.
*/
type: pulumi.Input<string>;
/**
* Value of the Zone Record.
*/
value: pulumi.Input<string>;
/**
* ID or Name of the parent Zone.
*/
zone: pulumi.Input<string>;
}
//# sourceMappingURL=zoneRecord.d.ts.map