@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
196 lines (195 loc) • 7.24 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Provides a resource to manage private zone record
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
* import * as volcengine from "@volcengine/pulumi";
*
* const fooRecord = new volcengine.private_zone.Record("fooRecord", {
* zid: 2450000,
* host: "www",
* type: "A",
* value: "10.1.1.158",
* weight: 8,
* ttl: 700,
* remark: "tf-test",
* enable: true,
* });
* const fooRecordSets = volcengine.private_zone.getRecordSetsOutput({
* zid: fooRecord.zid,
* host: fooRecord.host,
* searchMode: "EXACT",
* });
* const fooRecordWeightEnabler = new volcengine.private_zone.RecordWeightEnabler("fooRecordWeightEnabler", {
* zid: fooRecord.zid,
* recordSetId: pulumi.all([fooRecordSets, fooRecord.type]).apply(([fooRecordSets, type]) => .filter(set => set.type == type).map(set => (set.recordSetId))[0]),
* weightEnabled: true,
* });
* ```
*
* ## Import
*
* PrivateZoneRecord can be imported using the id, e.g.
*
* ```sh
* $ pulumi import volcengine:private_zone/record:Record default resource_id
* ```
*/
export declare class Record extends pulumi.CustomResource {
/**
* Get an existing Record 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?: RecordState, opts?: pulumi.CustomResourceOptions): Record;
/**
* Returns true if the given object is an instance of Record. 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 Record;
/**
* Whether to enable the private zone record. This field is only effected when modify this resource.
*/
readonly enable: pulumi.Output<boolean>;
/**
* The host of the private zone record.
*/
readonly host: pulumi.Output<string>;
/**
* The subnet id of the private zone record. This field is only effected when the `intelligentMode` of the private zone is true. Default is `Default`.
*/
readonly line: pulumi.Output<string>;
/**
* The remark of the private zone record.
*/
readonly remark: pulumi.Output<string | undefined>;
/**
* The ttl of the private zone record. Unit: second. Default is 600.
*/
readonly ttl: pulumi.Output<number>;
/**
* The type of the private zone record. Valid values: `A`, `AAAA`, `CNAME`, `MX`, `PTR`.
*/
readonly type: pulumi.Output<string>;
/**
* The user account of the private zone record. This field is only effected when creating this resource.
*/
readonly userAccount: pulumi.Output<string | undefined>;
/**
* The value of the private zone record. Record values need to be set based on the value of the `type`.
*/
readonly value: pulumi.Output<string>;
/**
* The weight of the private zone record. This field is only effected when the `loadBalanceMode` of the private zone is true and the `weightEnabled` of the recordSet is true. Default is 1.
*/
readonly weight: pulumi.Output<number>;
/**
* The zid of the private zone record.
*/
readonly zid: pulumi.Output<number>;
/**
* Create a Record 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: RecordArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering Record resources.
*/
export interface RecordState {
/**
* Whether to enable the private zone record. This field is only effected when modify this resource.
*/
enable?: pulumi.Input<boolean>;
/**
* The host of the private zone record.
*/
host?: pulumi.Input<string>;
/**
* The subnet id of the private zone record. This field is only effected when the `intelligentMode` of the private zone is true. Default is `Default`.
*/
line?: pulumi.Input<string>;
/**
* The remark of the private zone record.
*/
remark?: pulumi.Input<string>;
/**
* The ttl of the private zone record. Unit: second. Default is 600.
*/
ttl?: pulumi.Input<number>;
/**
* The type of the private zone record. Valid values: `A`, `AAAA`, `CNAME`, `MX`, `PTR`.
*/
type?: pulumi.Input<string>;
/**
* The user account of the private zone record. This field is only effected when creating this resource.
*/
userAccount?: pulumi.Input<string>;
/**
* The value of the private zone record. Record values need to be set based on the value of the `type`.
*/
value?: pulumi.Input<string>;
/**
* The weight of the private zone record. This field is only effected when the `loadBalanceMode` of the private zone is true and the `weightEnabled` of the recordSet is true. Default is 1.
*/
weight?: pulumi.Input<number>;
/**
* The zid of the private zone record.
*/
zid?: pulumi.Input<number>;
}
/**
* The set of arguments for constructing a Record resource.
*/
export interface RecordArgs {
/**
* Whether to enable the private zone record. This field is only effected when modify this resource.
*/
enable?: pulumi.Input<boolean>;
/**
* The host of the private zone record.
*/
host: pulumi.Input<string>;
/**
* The subnet id of the private zone record. This field is only effected when the `intelligentMode` of the private zone is true. Default is `Default`.
*/
line?: pulumi.Input<string>;
/**
* The remark of the private zone record.
*/
remark?: pulumi.Input<string>;
/**
* The ttl of the private zone record. Unit: second. Default is 600.
*/
ttl?: pulumi.Input<number>;
/**
* The type of the private zone record. Valid values: `A`, `AAAA`, `CNAME`, `MX`, `PTR`.
*/
type: pulumi.Input<string>;
/**
* The user account of the private zone record. This field is only effected when creating this resource.
*/
userAccount?: pulumi.Input<string>;
/**
* The value of the private zone record. Record values need to be set based on the value of the `type`.
*/
value: pulumi.Input<string>;
/**
* The weight of the private zone record. This field is only effected when the `loadBalanceMode` of the private zone is true and the `weightEnabled` of the recordSet is true. Default is 1.
*/
weight?: pulumi.Input<number>;
/**
* The zid of the private zone record.
*/
zid: pulumi.Input<number>;
}