Type object
Schema URL https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--mongodb-atlas-onlinearchive.json
Parent schema serverless-framework-configuration
Type: object

Returns, adds, edits, or removes an online archive.. Source:- https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git

Properties

ClusterName string | Aws_CF_FunctionString required

Human-readable label that identifies the cluster that contains the collection from which you want to remove an online archive.

Criteria object required
5 nested properties
Type string | Aws_CF_FunctionString

Means by which MongoDB Cloud selects data to archive. Data can be chosen using the age of the data or a MongoDB query. DATE selects documents to archive based on a date. CUSTOM selects documents to archive based on a custom JSON query. MongoDB Cloud doesn't support CUSTOM when "collectionType": "TIMESERIES".

DateField string | Aws_CF_FunctionString

Indexed database parameter that stores the date that determines when data moves to the online archive. MongoDB Cloud archives the data when the current date exceeds the date in this database parameter plus the number of days specified through the expireAfterDays parameter. Set this parameter when you set "criteria.type" : "DATE".

DateFormat string | Aws_CF_FunctionString

Syntax used to write the date after which data moves to the online archive. Date can be expressed as ISO 8601 or Epoch timestamps. The Epoch timestamp can be expressed as nanoseconds, milliseconds, or seconds. Set this parameter when "criteria.type" : "DATE". You must set "criteria.type" : "DATE" if "collectionType": "TIMESERIES".

ExpireAfterDays integer

Number of days after the value in the criteria.dateField when MongoDB Cloud archives data in the specified cluster. Set this parameter when you set "criteria.type" : "DATE".

Query string | Aws_CF_FunctionString

MongoDB find query that selects documents to archive. The specified query follows the syntax of the db.collection.find(query) command. This query can't use the empty document ({}) to return all documents. Set this parameter when "criteria.type" : "CUSTOM".

Profile string | Aws_CF_FunctionString

The profile is defined in AWS Secret manager. See Secret Manager Profile setup.

CollName string | Aws_CF_FunctionString

Human-readable label that identifies the collection for which you created the online archive.

CollectionType string | Aws_CF_FunctionString

Classification of MongoDB database collection that you want to return.

If you set this parameter to TIMESERIES, set "criteria.type" : "date" and "criteria.dateFormat" : "ISODATE".

DbName string | Aws_CF_FunctionString

Human-readable label of the database that contains the collection that contains the online archive.

ProjectId string | Aws_CF_FunctionString

Unique 24-hexadecimal digit string that identifies your project.

IncludeCount boolean

Flag that indicates whether the response returns the total number of items (totalCount) in the response.

ItemsPerPage integer

Number of items that the response returns per page.

PageNum integer

Number of the page that displays the current set of the total objects that the response returns.

PartitionFields object[]

List that contains document parameters to use to logically divide data within a collection. Partitions provide a coarse level of filtering of the underlying collection data. To divide your data, specify up to two parameters that you frequently query. Any queries that don't use these parameters result in a full collection scan of all archived documents. This takes more time and increase your costs.

Schedule object
7 nested properties
Type string | Aws_CF_FunctionString
EndHour integer

Hour of the day when the scheduled window to run one online archive ends.

min=0max=23
EndMinute integer

Minute of the hour when the scheduled window to run one online archive ends.

min=0max=59
StartHour integer

Hour of the day when the when the scheduled window to run one online archive starts.

min=0max=23
StartMinute integer

Minute of the hour when the scheduled window to run one online archive starts.

min=0max=59
DayOfMonth integer

Day of the month when the scheduled archive starts.

min=1max=31
DayOfWeek integer

Day of the month when the scheduled archive starts.

min=1max=7

Definitions

ScheduleView object
Type string | Aws_CF_FunctionString
EndHour integer

Hour of the day when the scheduled window to run one online archive ends.

min=0max=23
EndMinute integer

Minute of the hour when the scheduled window to run one online archive ends.

min=0max=59
StartHour integer

Hour of the day when the when the scheduled window to run one online archive starts.

min=0max=23
StartMinute integer

Minute of the hour when the scheduled window to run one online archive starts.

min=0max=59
DayOfMonth integer

Day of the month when the scheduled archive starts.

min=1max=31
DayOfWeek integer

Day of the month when the scheduled archive starts.

min=1max=7
CriteriaView object
Type string | Aws_CF_FunctionString

Means by which MongoDB Cloud selects data to archive. Data can be chosen using the age of the data or a MongoDB query. DATE selects documents to archive based on a date. CUSTOM selects documents to archive based on a custom JSON query. MongoDB Cloud doesn't support CUSTOM when "collectionType": "TIMESERIES".

DateField string | Aws_CF_FunctionString

Indexed database parameter that stores the date that determines when data moves to the online archive. MongoDB Cloud archives the data when the current date exceeds the date in this database parameter plus the number of days specified through the expireAfterDays parameter. Set this parameter when you set "criteria.type" : "DATE".

DateFormat string | Aws_CF_FunctionString

Syntax used to write the date after which data moves to the online archive. Date can be expressed as ISO 8601 or Epoch timestamps. The Epoch timestamp can be expressed as nanoseconds, milliseconds, or seconds. Set this parameter when "criteria.type" : "DATE". You must set "criteria.type" : "DATE" if "collectionType": "TIMESERIES".

ExpireAfterDays integer

Number of days after the value in the criteria.dateField when MongoDB Cloud archives data in the specified cluster. Set this parameter when you set "criteria.type" : "DATE".

Query string | Aws_CF_FunctionString

MongoDB find query that selects documents to archive. The specified query follows the syntax of the db.collection.find(query) command. This query can't use the empty document ({}) to return all documents. Set this parameter when "criteria.type" : "CUSTOM".

PartitionFieldView object
FieldName string | Aws_CF_FunctionString

Human-readable label that identifies the parameter that MongoDB Cloud uses to partition data. To specify a nested parameter, use the dot notation.

FieldType string | Aws_CF_FunctionString

Data type of the parameter that that MongoDB Cloud uses to partition data. Partition parameters of type UUID must be of binary subtype 4. MongoDB Cloud skips partition parameters of type UUID with subtype 3.

Order integer

Sequence in which MongoDB Cloud slices the collection data to create partitions. The resource expresses this sequence starting with zero. The value of the criteria.dateField parameter defaults as the first item in the partition sequence.