Skip to content

Latest commit

 

History

History
158 lines (127 loc) · 2.95 KB

aws_neptune_cluster_parameter_group.md

File metadata and controls

158 lines (127 loc) · 2.95 KB

aws_neptune_cluster_parameter_group

back

Index

Terraform

terraform {
  required_providers {
    aws = ">= 3.35.0"
  }
}

top

Example Usage

module "aws_neptune_cluster_parameter_group" {
  source = "./modules/aws/r/aws_neptune_cluster_parameter_group"

  # description - (optional) is a type of string
  description = null
  # family - (required) is a type of string
  family = null
  # name - (optional) is a type of string
  name = null
  # name_prefix - (optional) is a type of string
  name_prefix = null
  # tags - (optional) is a type of map of string
  tags = {}

  parameter = [{
    apply_method = null
    name         = null
    value        = null
  }]
}

top

Variables

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

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

variable "name" {
  description = "(optional)"
  type        = string
  default     = null
}

variable "name_prefix" {
  description = "(optional)"
  type        = string
  default     = null
}

variable "tags" {
  description = "(optional)"
  type        = map(string)
  default     = null
}

variable "parameter" {
  description = "nested block: NestingSet, min items: 0, max items: 0"
  type = set(object(
    {
      apply_method = string
      name         = string
      value        = string
    }
  ))
  default = []
}

top

Resource

resource "aws_neptune_cluster_parameter_group" "this" {
  # description - (optional) is a type of string
  description = var.description
  # family - (required) is a type of string
  family = var.family
  # name - (optional) is a type of string
  name = var.name
  # name_prefix - (optional) is a type of string
  name_prefix = var.name_prefix
  # tags - (optional) is a type of map of string
  tags = var.tags

  dynamic "parameter" {
    for_each = var.parameter
    content {
      # apply_method - (optional) is a type of string
      apply_method = parameter.value["apply_method"]
      # name - (required) is a type of string
      name = parameter.value["name"]
      # value - (required) is a type of string
      value = parameter.value["value"]
    }
  }

}

top

Outputs

output "arn" {
  description = "returns a string"
  value       = aws_neptune_cluster_parameter_group.this.arn
}

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

output "name" {
  description = "returns a string"
  value       = aws_neptune_cluster_parameter_group.this.name
}

output "name_prefix" {
  description = "returns a string"
  value       = aws_neptune_cluster_parameter_group.this.name_prefix
}

output "this" {
  value = aws_neptune_cluster_parameter_group.this
}

top