@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
101 lines (100 loc) • 3.73 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Manages RDS MySQL binlog resource within HuaweiCloud.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as pulumi from "@huaweicloudos/pulumi";
*
* const config = new pulumi.Config();
* const instanceId = config.requireObject("instanceId");
* const test = new huaweicloud.rds.MysqlBinlog("test", {
* instanceId: instanceId,
* binlogRetentionHours: 6,
* });
* ```
*
* ## Import
*
* RDS MySQL binlog can be imported using the `instance id`, e.g. bash
*
* ```sh
* $ pulumi import huaweicloud:Rds/mysqlBinlog:MysqlBinlog test <instance_id>
* ```
*/
export declare class MysqlBinlog extends pulumi.CustomResource {
/**
* Get an existing MysqlBinlog 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?: MysqlBinlogState, opts?: pulumi.CustomResourceOptions): MysqlBinlog;
/**
* Returns true if the given object is an instance of MysqlBinlog. 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 MysqlBinlog;
/**
* Specifies the binlog retention period. Value range: `1` to `168` (7x24).
*/
readonly binlogRetentionHours: pulumi.Output<number>;
/**
* Specifies the RDS MySQL instance ID. Changing this will create a new resource.
*/
readonly instanceId: pulumi.Output<string>;
/**
* The region in which to create the RDS binlog resource. If omitted, the
* provider-level region will be used. Changing this creates a new resource.
*/
readonly region: pulumi.Output<string>;
/**
* Create a MysqlBinlog 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: MysqlBinlogArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering MysqlBinlog resources.
*/
export interface MysqlBinlogState {
/**
* Specifies the binlog retention period. Value range: `1` to `168` (7x24).
*/
binlogRetentionHours?: pulumi.Input<number>;
/**
* Specifies the RDS MySQL instance ID. Changing this will create a new resource.
*/
instanceId?: pulumi.Input<string>;
/**
* The region in which to create the RDS binlog resource. If omitted, the
* provider-level region will be used. Changing this creates a new resource.
*/
region?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a MysqlBinlog resource.
*/
export interface MysqlBinlogArgs {
/**
* Specifies the binlog retention period. Value range: `1` to `168` (7x24).
*/
binlogRetentionHours: pulumi.Input<number>;
/**
* Specifies the RDS MySQL instance ID. Changing this will create a new resource.
*/
instanceId: pulumi.Input<string>;
/**
* The region in which to create the RDS binlog resource. If omitted, the
* provider-level region will be used. Changing this creates a new resource.
*/
region?: pulumi.Input<string>;
}