Skip to content

Latest commit

 

History

History
138 lines (110 loc) · 2.5 KB

alicloud_ram_users.md

File metadata and controls

138 lines (110 loc) · 2.5 KB

alicloud_ram_users

back

Index

Terraform

terraform {
  required_providers {
    alicloud = ">= 1.120.0"
  }
}

top

Example Usage

module "alicloud_ram_users" {
  source = "./modules/alicloud/d/alicloud_ram_users"

  # group_name - (optional) is a type of string
  group_name = null
  # ids - (optional) is a type of list of string
  ids = []
  # name_regex - (optional) is a type of string
  name_regex = null
  # output_file - (optional) is a type of string
  output_file = null
  # policy_name - (optional) is a type of string
  policy_name = null
  # policy_type - (optional) is a type of string
  policy_type = null
}

top

Variables

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

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

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

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

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

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

top

Datasource

data "alicloud_ram_users" "this" {
  # group_name - (optional) is a type of string
  group_name = var.group_name
  # ids - (optional) is a type of list of string
  ids = var.ids
  # name_regex - (optional) is a type of string
  name_regex = var.name_regex
  # output_file - (optional) is a type of string
  output_file = var.output_file
  # policy_name - (optional) is a type of string
  policy_name = var.policy_name
  # policy_type - (optional) is a type of string
  policy_type = var.policy_type
}

top

Outputs

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

output "ids" {
  description = "returns a list of string"
  value       = data.alicloud_ram_users.this.ids
}

output "names" {
  description = "returns a list of string"
  value       = data.alicloud_ram_users.this.names
}

output "users" {
  description = "returns a list of object"
  value       = data.alicloud_ram_users.this.users
}

output "this" {
  value = alicloud_ram_users.this
}

top