@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
190 lines (189 loc) • 6.99 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Manages a DNS PTR record resource within HuaweiCloud.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as pulumi from "@huaweicloudos/pulumi";
*
* const config = new pulumi.Config();
* const ptrrecordName = config.requireObject("ptrrecordName");
* const eipId = config.requireObject("eipId");
* const description = config.requireObject("description");
* const test = new huaweicloud.dns.Ptrrecord("test", {
* floatingipId: eipId,
* description: description,
* ttl: 3000,
* tags: {
* foo: "bar",
* },
* });
* ```
*
* ## Import
*
* The PTR record resource can be imported using `id` (consists of the region and the EIP ID (`floatingip_id`)), e.g. bash
*
* ```sh
* $ pulumi import huaweicloud:Dns/ptrrecord:Ptrrecord test <id>
* ```
*
* You can also use `region` and `floatingip_id` instead of `id`, separated by a colon (:), e.g. bash
*
* ```sh
* $ pulumi import huaweicloud:Dns/ptrrecord:Ptrrecord test <region>:<floatingip_id>
* ```
*/
export declare class Ptrrecord extends pulumi.CustomResource {
/**
* Get an existing Ptrrecord 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?: PtrrecordState, opts?: pulumi.CustomResourceOptions): Ptrrecord;
/**
* Returns true if the given object is an instance of Ptrrecord. 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 Ptrrecord;
/**
* The address of the FloatingIP/EIP.
*/
readonly address: pulumi.Output<string>;
/**
* Specifies the description of the PTR record.
*/
readonly description: pulumi.Output<string | undefined>;
/**
* Specifies the enterprise project ID of the PTR record.
* This parameter is only valid for enterprise users, if omitted, default enterprise project will be used.
* Changing this parameter will create a new resource.
*/
readonly enterpriseProjectId: pulumi.Output<string>;
/**
* Specifies the ID of the FloatingIP/EIP.
* Changing this parameter will create a new resource.
*/
readonly floatingipId: pulumi.Output<string>;
/**
* Specifies the domain name of the PTR record.
* A domain name is case-insensitive. Uppercase letters will also be converted into lowercase letters.
*/
readonly name: pulumi.Output<string>;
/**
* Specifies the region in which to create the PTR record. If omitted,
* the provider-level region will be used. Changing this parameter will create a new resource.
*/
readonly region: pulumi.Output<string>;
/**
* Specifies the key/value pairs to associate with the PTR record.
*/
readonly tags: pulumi.Output<{
[key: string]: string;
} | undefined>;
/**
* Specifies the time to live (TTL) of the record set (in seconds), defaults to `300`.
* The valid value is range from `1` to `2,147,483,647`.
*/
readonly ttl: pulumi.Output<number>;
/**
* Create a Ptrrecord 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: PtrrecordArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering Ptrrecord resources.
*/
export interface PtrrecordState {
/**
* The address of the FloatingIP/EIP.
*/
address?: pulumi.Input<string>;
/**
* Specifies the description of the PTR record.
*/
description?: pulumi.Input<string>;
/**
* Specifies the enterprise project ID of the PTR record.
* This parameter is only valid for enterprise users, if omitted, default enterprise project will be used.
* Changing this parameter will create a new resource.
*/
enterpriseProjectId?: pulumi.Input<string>;
/**
* Specifies the ID of the FloatingIP/EIP.
* Changing this parameter will create a new resource.
*/
floatingipId?: pulumi.Input<string>;
/**
* Specifies the domain name of the PTR record.
* A domain name is case-insensitive. Uppercase letters will also be converted into lowercase letters.
*/
name?: pulumi.Input<string>;
/**
* Specifies the region in which to create the PTR record. If omitted,
* the provider-level region will be used. Changing this parameter will create a new resource.
*/
region?: pulumi.Input<string>;
/**
* Specifies the key/value pairs to associate with the PTR record.
*/
tags?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
/**
* Specifies the time to live (TTL) of the record set (in seconds), defaults to `300`.
* The valid value is range from `1` to `2,147,483,647`.
*/
ttl?: pulumi.Input<number>;
}
/**
* The set of arguments for constructing a Ptrrecord resource.
*/
export interface PtrrecordArgs {
/**
* Specifies the description of the PTR record.
*/
description?: pulumi.Input<string>;
/**
* Specifies the enterprise project ID of the PTR record.
* This parameter is only valid for enterprise users, if omitted, default enterprise project will be used.
* Changing this parameter will create a new resource.
*/
enterpriseProjectId?: pulumi.Input<string>;
/**
* Specifies the ID of the FloatingIP/EIP.
* Changing this parameter will create a new resource.
*/
floatingipId: pulumi.Input<string>;
/**
* Specifies the domain name of the PTR record.
* A domain name is case-insensitive. Uppercase letters will also be converted into lowercase letters.
*/
name?: pulumi.Input<string>;
/**
* Specifies the region in which to create the PTR record. If omitted,
* the provider-level region will be used. Changing this parameter will create a new resource.
*/
region?: pulumi.Input<string>;
/**
* Specifies the key/value pairs to associate with the PTR record.
*/
tags?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
/**
* Specifies the time to live (TTL) of the record set (in seconds), defaults to `300`.
* The valid value is range from `1` to `2,147,483,647`.
*/
ttl?: pulumi.Input<number>;
}