Skip to content

Latest commit

 

History

History
111 lines (86 loc) · 2.07 KB

mongodbatlas_cloud_provider_snapshots.md

File metadata and controls

111 lines (86 loc) · 2.07 KB

mongodbatlas_cloud_provider_snapshots

back

Index

Terraform

terraform {
  required_providers {
    mongodbatlas = ">= 0.8.2"
  }
}

top

Example Usage

module "mongodbatlas_cloud_provider_snapshots" {
  source = "./modules/mongodbatlas/d/mongodbatlas_cloud_provider_snapshots"

  # cluster_name - (required) is a type of string
  cluster_name = null
  # items_per_page - (optional) is a type of number
  items_per_page = null
  # page_num - (optional) is a type of number
  page_num = null
  # project_id - (required) is a type of string
  project_id = null
}

top

Variables

variable "cluster_name" {
  description = "(required)"
  type        = string
}

variable "items_per_page" {
  description = "(optional)"
  type        = number
  default     = null
}

variable "page_num" {
  description = "(optional)"
  type        = number
  default     = null
}

variable "project_id" {
  description = "(required)"
  type        = string
}

top

Datasource

data "mongodbatlas_cloud_provider_snapshots" "this" {
  # cluster_name - (required) is a type of string
  cluster_name = var.cluster_name
  # items_per_page - (optional) is a type of number
  items_per_page = var.items_per_page
  # page_num - (optional) is a type of number
  page_num = var.page_num
  # project_id - (required) is a type of string
  project_id = var.project_id
}

top

Outputs

output "id" {
  description = "returns a string"
  value       = data.mongodbatlas_cloud_provider_snapshots.this.id
}

output "results" {
  description = "returns a list of object"
  value       = data.mongodbatlas_cloud_provider_snapshots.this.results
}

output "total_count" {
  description = "returns a number"
  value       = data.mongodbatlas_cloud_provider_snapshots.this.total_count
}

output "this" {
  value = mongodbatlas_cloud_provider_snapshots.this
}

top