Skip to content

Latest commit

 

History

History
178 lines (144 loc) · 3.96 KB

oci_identity_user_capabilities_management.md

File metadata and controls

178 lines (144 loc) · 3.96 KB

oci_identity_user_capabilities_management

back

Index

Terraform

terraform {
  required_providers {
    oci = ">= 4.21.0"
  }
}

top

Example Usage

module "oci_identity_user_capabilities_management" {
  source = "./modules/oci/r/oci_identity_user_capabilities_management"

  # can_use_api_keys - (optional) is a type of bool
  can_use_api_keys = null
  # can_use_auth_tokens - (optional) is a type of bool
  can_use_auth_tokens = null
  # can_use_console_password - (optional) is a type of bool
  can_use_console_password = null
  # can_use_customer_secret_keys - (optional) is a type of bool
  can_use_customer_secret_keys = null
  # can_use_smtp_credentials - (optional) is a type of bool
  can_use_smtp_credentials = null
  # user_id - (required) is a type of string
  user_id = null

  timeouts = [{
    create = null
    delete = null
    update = null
  }]
}

top

Variables

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

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

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

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

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

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

variable "timeouts" {
  description = "nested block: NestingSingle, min items: 0, max items: 0"
  type = set(object(
    {
      create = string
      delete = string
      update = string
    }
  ))
  default = []
}

top

Resource

resource "oci_identity_user_capabilities_management" "this" {
  # can_use_api_keys - (optional) is a type of bool
  can_use_api_keys = var.can_use_api_keys
  # can_use_auth_tokens - (optional) is a type of bool
  can_use_auth_tokens = var.can_use_auth_tokens
  # can_use_console_password - (optional) is a type of bool
  can_use_console_password = var.can_use_console_password
  # can_use_customer_secret_keys - (optional) is a type of bool
  can_use_customer_secret_keys = var.can_use_customer_secret_keys
  # can_use_smtp_credentials - (optional) is a type of bool
  can_use_smtp_credentials = var.can_use_smtp_credentials
  # user_id - (required) is a type of string
  user_id = var.user_id

  dynamic "timeouts" {
    for_each = var.timeouts
    content {
      # create - (optional) is a type of string
      create = timeouts.value["create"]
      # delete - (optional) is a type of string
      delete = timeouts.value["delete"]
      # update - (optional) is a type of string
      update = timeouts.value["update"]
    }
  }

}

top

Outputs

output "can_use_api_keys" {
  description = "returns a bool"
  value       = oci_identity_user_capabilities_management.this.can_use_api_keys
}

output "can_use_auth_tokens" {
  description = "returns a bool"
  value       = oci_identity_user_capabilities_management.this.can_use_auth_tokens
}

output "can_use_console_password" {
  description = "returns a bool"
  value       = oci_identity_user_capabilities_management.this.can_use_console_password
}

output "can_use_customer_secret_keys" {
  description = "returns a bool"
  value       = oci_identity_user_capabilities_management.this.can_use_customer_secret_keys
}

output "can_use_smtp_credentials" {
  description = "returns a bool"
  value       = oci_identity_user_capabilities_management.this.can_use_smtp_credentials
}

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

output "this" {
  value = oci_identity_user_capabilities_management.this
}

top