@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
84 lines (83 loc) • 2.52 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Use this data source to get the ID of an available DCS maintenance windows.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as huaweicloud from "@pulumi/huaweicloud";
*
* const maintainwindow1 = pulumi.output(huaweicloud.Dcs.getMaintainwindow({
* seq: 1,
* }));
* ```
*/
export declare function getMaintainwindow(args?: GetMaintainwindowArgs, opts?: pulumi.InvokeOptions): Promise<GetMaintainwindowResult>;
/**
* A collection of arguments for invoking getMaintainwindow.
*/
export interface GetMaintainwindowArgs {
/**
* Specifies the time at which a maintenance time window starts.
*/
begin?: string;
/**
* Specifies whether a maintenance time window is set to the default time segment.
*/
default?: boolean;
/**
* Specifies the time at which a maintenance time window ends.
*/
end?: string;
/**
* The region in which to obtain the dcs maintenance windows. If omitted, the provider-level
* region will be used.
*/
region?: string;
/**
* Specifies the sequential number of a maintenance time window.
*/
seq?: number;
}
/**
* A collection of values returned by getMaintainwindow.
*/
export interface GetMaintainwindowResult {
readonly begin: string;
readonly default: boolean;
readonly end: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly region: string;
readonly seq: number;
}
export declare function getMaintainwindowOutput(args?: GetMaintainwindowOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetMaintainwindowResult>;
/**
* A collection of arguments for invoking getMaintainwindow.
*/
export interface GetMaintainwindowOutputArgs {
/**
* Specifies the time at which a maintenance time window starts.
*/
begin?: pulumi.Input<string>;
/**
* Specifies whether a maintenance time window is set to the default time segment.
*/
default?: pulumi.Input<boolean>;
/**
* Specifies the time at which a maintenance time window ends.
*/
end?: pulumi.Input<string>;
/**
* The region in which to obtain the dcs maintenance windows. If omitted, the provider-level
* region will be used.
*/
region?: pulumi.Input<string>;
/**
* Specifies the sequential number of a maintenance time window.
*/
seq?: pulumi.Input<number>;
}