UNPKG

awscdk-resources-mongodbatlas

Version:

MongoDB Atlas CDK Construct Library for AWS CloudFormation Resources

85 lines (84 loc) 3.14 kB
import * as cdk from "aws-cdk-lib"; import * as constructs from "constructs"; /** * The maintenanceWindow resource provides access to retrieve or update the current Atlas project maintenance window. * * @schema CfnMaintenanceWindowProps */ export interface CfnMaintenanceWindowProps { /** * The profile is defined in AWS Secret manager. See [Secret Manager Profile setup](../../../examples/profile-secret.yaml) * * @schema CfnMaintenanceWindowProps#Profile */ readonly profile?: string; /** * Flag that indicates whether MongoDB Cloud should defer all maintenance windows for one week after you enable them. * * @schema CfnMaintenanceWindowProps#AutoDeferOnceEnabled */ readonly autoDeferOnceEnabled?: boolean; /** * One-based integer that represents the day of the week that the maintenance window starts. * * | Value | Day of Week | * |---|---| * | `1` | Sunday | * | `2` | Monday | * | `3` | Tuesday | * | `4` | Wednesday | * | `5` | Thursday | * | `6` | Friday | * | `7` | Saturday | * * * @schema CfnMaintenanceWindowProps#DayOfWeek */ readonly dayOfWeek?: number; /** * Unique 24-hexadecimal digit string that identifies your project. * * @schema CfnMaintenanceWindowProps#ProjectId */ readonly projectId?: string; /** * Zero-based integer that represents the hour of the of the day that the maintenance window starts according to a 24-hour clock. Use `0` for midnight and `12` for noon. * * @schema CfnMaintenanceWindowProps#HourOfDay */ readonly hourOfDay: number; /** * Flag that indicates whether MongoDB Cloud starts the maintenance window immediately upon receiving this request. To start the maintenance window immediately for your project, MongoDB Cloud must have maintenance scheduled and you must set a maintenance window. This flag resets to `false` after MongoDB Cloud completes maintenance. * * @schema CfnMaintenanceWindowProps#StartASAP */ readonly startAsap?: boolean; } /** * Converts an object of type 'CfnMaintenanceWindowProps' to JSON representation. */ export declare function toJson_CfnMaintenanceWindowProps(obj: CfnMaintenanceWindowProps | undefined): Record<string, any> | undefined; /** * A CloudFormation `MongoDB::Atlas::MaintenanceWindow` * * @cloudformationResource MongoDB::Atlas::MaintenanceWindow * @stability external */ export declare class CfnMaintenanceWindow extends cdk.CfnResource { /** * The CloudFormation resource type name for this resource class. */ static readonly CFN_RESOURCE_TYPE_NAME = "MongoDB::Atlas::MaintenanceWindow"; /** * Resource props. */ readonly props: CfnMaintenanceWindowProps; /** * Create a new `MongoDB::Atlas::MaintenanceWindow`. * * @param scope - scope in which this resource is defined * @param id - scoped id of the resource * @param props - resource properties */ constructor(scope: constructs.Construct, id: string, props: CfnMaintenanceWindowProps); }