tfwriter

Terraform HCL code generator.

Download as .zip Download as .tar.gz View on GitHub

alicloud_oss_bucket_object

back

Index

Terraform

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

top

Example Usage

module "alicloud_oss_bucket_object" {
  source = null

  # acl - (optional) is a type of string
  acl = null
  # bucket - (required) is a type of string
  bucket = null
  # cache_control - (optional) is a type of string
  cache_control = null
  # content - (optional) is a type of string
  content = null
  # content_disposition - (optional) is a type of string
  content_disposition = null
  # content_encoding - (optional) is a type of string
  content_encoding = null
  # content_md5 - (optional) is a type of string
  content_md5 = null
  # content_type - (optional) is a type of string
  content_type = null
  # expires - (optional) is a type of string
  expires = null
  # key - (required) is a type of string
  key = null
  # kms_key_id - (optional) is a type of string
  kms_key_id = null
  # server_side_encryption - (optional) is a type of string
  server_side_encryption = null
  # source - (optional) is a type of string
}

top

Variables

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

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

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

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

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

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

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

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

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

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

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

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

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

top

Resource

resource "alicloud_oss_bucket_object" "this" {
  # acl - (optional) is a type of string
  acl = var.acl
  # bucket - (required) is a type of string
  bucket = var.bucket
  # cache_control - (optional) is a type of string
  cache_control = var.cache_control
  # content - (optional) is a type of string
  content = var.content
  # content_disposition - (optional) is a type of string
  content_disposition = var.content_disposition
  # content_encoding - (optional) is a type of string
  content_encoding = var.content_encoding
  # content_md5 - (optional) is a type of string
  content_md5 = var.content_md5
  # content_type - (optional) is a type of string
  content_type = var.content_type
  # expires - (optional) is a type of string
  expires = var.expires
  # key - (required) is a type of string
  key = var.key
  # kms_key_id - (optional) is a type of string
  kms_key_id = var.kms_key_id
  # server_side_encryption - (optional) is a type of string
  server_side_encryption = var.server_side_encryption
  # source - (optional) is a type of string
  source = var.source
}

top

Outputs

output "content_length" {
  description = "returns a string"
  value       = alicloud_oss_bucket_object.this.content_length
}

output "content_type" {
  description = "returns a string"
  value       = alicloud_oss_bucket_object.this.content_type
}

output "etag" {
  description = "returns a string"
  value       = alicloud_oss_bucket_object.this.etag
}

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

output "version_id" {
  description = "returns a string"
  value       = alicloud_oss_bucket_object.this.version_id
}

output "this" {
  value = alicloud_oss_bucket_object.this
}

top