tencentcloud.CosBucketObject
Explore with Pulumi AI
Provides a COS object resource to put an object(content or file) to the bucket.
Example Usage
Uploading a file to a bucket
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const myobject = new tencentcloud.CosBucketObject("myobject", {
bucket: "mycos-1258798060",
key: "new_object_key",
source: "path/to/file",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
myobject = tencentcloud.CosBucketObject("myobject",
bucket="mycos-1258798060",
key="new_object_key",
source="path/to/file")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewCosBucketObject(ctx, "myobject", &tencentcloud.CosBucketObjectArgs{
Bucket: pulumi.String("mycos-1258798060"),
Key: pulumi.String("new_object_key"),
Source: pulumi.String("path/to/file"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var myobject = new Tencentcloud.CosBucketObject("myobject", new()
{
Bucket = "mycos-1258798060",
Key = "new_object_key",
Source = "path/to/file",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CosBucketObject;
import com.pulumi.tencentcloud.CosBucketObjectArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var myobject = new CosBucketObject("myobject", CosBucketObjectArgs.builder()
.bucket("mycos-1258798060")
.key("new_object_key")
.source("path/to/file")
.build());
}
}
resources:
myobject:
type: tencentcloud:CosBucketObject
properties:
bucket: mycos-1258798060
key: new_object_key
source: path/to/file
Uploading a content to a bucket
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const mycos = new tencentcloud.CosBucket("mycos", {
bucket: "mycos-1258798060",
acl: "public-read",
});
const myobject = new tencentcloud.CosBucketObject("myobject", {
bucket: mycos.bucket,
key: "new_object_key",
content: "the content that you want to upload.",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
mycos = tencentcloud.CosBucket("mycos",
bucket="mycos-1258798060",
acl="public-read")
myobject = tencentcloud.CosBucketObject("myobject",
bucket=mycos.bucket,
key="new_object_key",
content="the content that you want to upload.")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
mycos, err := tencentcloud.NewCosBucket(ctx, "mycos", &tencentcloud.CosBucketArgs{
Bucket: pulumi.String("mycos-1258798060"),
Acl: pulumi.String("public-read"),
})
if err != nil {
return err
}
_, err = tencentcloud.NewCosBucketObject(ctx, "myobject", &tencentcloud.CosBucketObjectArgs{
Bucket: mycos.Bucket,
Key: pulumi.String("new_object_key"),
Content: pulumi.String("the content that you want to upload."),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var mycos = new Tencentcloud.CosBucket("mycos", new()
{
Bucket = "mycos-1258798060",
Acl = "public-read",
});
var myobject = new Tencentcloud.CosBucketObject("myobject", new()
{
Bucket = mycos.Bucket,
Key = "new_object_key",
Content = "the content that you want to upload.",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CosBucket;
import com.pulumi.tencentcloud.CosBucketArgs;
import com.pulumi.tencentcloud.CosBucketObject;
import com.pulumi.tencentcloud.CosBucketObjectArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var mycos = new CosBucket("mycos", CosBucketArgs.builder()
.bucket("mycos-1258798060")
.acl("public-read")
.build());
var myobject = new CosBucketObject("myobject", CosBucketObjectArgs.builder()
.bucket(mycos.bucket())
.key("new_object_key")
.content("the content that you want to upload.")
.build());
}
}
resources:
mycos:
type: tencentcloud:CosBucket
properties:
bucket: mycos-1258798060
acl: public-read
myobject:
type: tencentcloud:CosBucketObject
properties:
bucket: ${mycos.bucket}
key: new_object_key
content: the content that you want to upload.
Create CosBucketObject Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CosBucketObject(name: string, args: CosBucketObjectArgs, opts?: CustomResourceOptions);
@overload
def CosBucketObject(resource_name: str,
args: CosBucketObjectArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CosBucketObject(resource_name: str,
opts: Optional[ResourceOptions] = None,
key: Optional[str] = None,
bucket: Optional[str] = None,
content: Optional[str] = None,
acl: Optional[str] = None,
content_disposition: Optional[str] = None,
content_encoding: Optional[str] = None,
content_type: Optional[str] = None,
cos_bucket_object_id: Optional[str] = None,
etag: Optional[str] = None,
cache_control: Optional[str] = None,
source: Optional[str] = None,
storage_class: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewCosBucketObject(ctx *Context, name string, args CosBucketObjectArgs, opts ...ResourceOption) (*CosBucketObject, error)
public CosBucketObject(string name, CosBucketObjectArgs args, CustomResourceOptions? opts = null)
public CosBucketObject(String name, CosBucketObjectArgs args)
public CosBucketObject(String name, CosBucketObjectArgs args, CustomResourceOptions options)
type: tencentcloud:CosBucketObject
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args CosBucketObjectArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args CosBucketObjectArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args CosBucketObjectArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CosBucketObjectArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CosBucketObjectArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
CosBucketObject Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The CosBucketObject resource accepts the following input properties:
- Bucket string
- The name of a bucket to use. Bucket format should be [custom name]-[appid], for example
mycos-1258798060
. - Key string
- The name of the object once it is in the bucket.
- Acl string
- The canned ACL to apply. Available values include
private
,public-read
, andpublic-read-write
. Defaults toprivate
. - Cache
Control string - Specifies caching behavior along the request/reply chain. For further details, RFC2616 can be referred.
- Content string
- Literal string value to use as the object content, which will be uploaded as UTF-8-encoded text.
- Content
Disposition string - Specifies presentational information for the object.
- Content
Encoding string - Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field.
- Content
Type string - A standard MIME type describing the format of the object data.
- Cos
Bucket stringObject Id - ID of the resource.
- Etag string
- The ETag generated for the object (an MD5 sum of the object content).
- Source string
- The path to the source file being uploaded to the bucket.
- Storage
Class string - Object storage type, Available values include
STANDARD_IA
,MAZ_STANDARD_IA
,INTELLIGENT_TIERING
,MAZ_INTELLIGENT_TIERING
,ARCHIVE
,DEEP_ARCHIVE
. For more information, please refer to: https://cloud.tencent.com/document/product/436/33417. - Dictionary<string, string>
- Tag of the object.
- Bucket string
- The name of a bucket to use. Bucket format should be [custom name]-[appid], for example
mycos-1258798060
. - Key string
- The name of the object once it is in the bucket.
- Acl string
- The canned ACL to apply. Available values include
private
,public-read
, andpublic-read-write
. Defaults toprivate
. - Cache
Control string - Specifies caching behavior along the request/reply chain. For further details, RFC2616 can be referred.
- Content string
- Literal string value to use as the object content, which will be uploaded as UTF-8-encoded text.
- Content
Disposition string - Specifies presentational information for the object.
- Content
Encoding string - Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field.
- Content
Type string - A standard MIME type describing the format of the object data.
- Cos
Bucket stringObject Id - ID of the resource.
- Etag string
- The ETag generated for the object (an MD5 sum of the object content).
- Source string
- The path to the source file being uploaded to the bucket.
- Storage
Class string - Object storage type, Available values include
STANDARD_IA
,MAZ_STANDARD_IA
,INTELLIGENT_TIERING
,MAZ_INTELLIGENT_TIERING
,ARCHIVE
,DEEP_ARCHIVE
. For more information, please refer to: https://cloud.tencent.com/document/product/436/33417. - map[string]string
- Tag of the object.
- bucket String
- The name of a bucket to use. Bucket format should be [custom name]-[appid], for example
mycos-1258798060
. - key String
- The name of the object once it is in the bucket.
- acl String
- The canned ACL to apply. Available values include
private
,public-read
, andpublic-read-write
. Defaults toprivate
. - cache
Control String - Specifies caching behavior along the request/reply chain. For further details, RFC2616 can be referred.
- content String
- Literal string value to use as the object content, which will be uploaded as UTF-8-encoded text.
- content
Disposition String - Specifies presentational information for the object.
- content
Encoding String - Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field.
- content
Type String - A standard MIME type describing the format of the object data.
- cos
Bucket StringObject Id - ID of the resource.
- etag String
- The ETag generated for the object (an MD5 sum of the object content).
- source String
- The path to the source file being uploaded to the bucket.
- storage
Class String - Object storage type, Available values include
STANDARD_IA
,MAZ_STANDARD_IA
,INTELLIGENT_TIERING
,MAZ_INTELLIGENT_TIERING
,ARCHIVE
,DEEP_ARCHIVE
. For more information, please refer to: https://cloud.tencent.com/document/product/436/33417. - Map<String,String>
- Tag of the object.
- bucket string
- The name of a bucket to use. Bucket format should be [custom name]-[appid], for example
mycos-1258798060
. - key string
- The name of the object once it is in the bucket.
- acl string
- The canned ACL to apply. Available values include
private
,public-read
, andpublic-read-write
. Defaults toprivate
. - cache
Control string - Specifies caching behavior along the request/reply chain. For further details, RFC2616 can be referred.
- content string
- Literal string value to use as the object content, which will be uploaded as UTF-8-encoded text.
- content
Disposition string - Specifies presentational information for the object.
- content
Encoding string - Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field.
- content
Type string - A standard MIME type describing the format of the object data.
- cos
Bucket stringObject Id - ID of the resource.
- etag string
- The ETag generated for the object (an MD5 sum of the object content).
- source string
- The path to the source file being uploaded to the bucket.
- storage
Class string - Object storage type, Available values include
STANDARD_IA
,MAZ_STANDARD_IA
,INTELLIGENT_TIERING
,MAZ_INTELLIGENT_TIERING
,ARCHIVE
,DEEP_ARCHIVE
. For more information, please refer to: https://cloud.tencent.com/document/product/436/33417. - {[key: string]: string}
- Tag of the object.
- bucket str
- The name of a bucket to use. Bucket format should be [custom name]-[appid], for example
mycos-1258798060
. - key str
- The name of the object once it is in the bucket.
- acl str
- The canned ACL to apply. Available values include
private
,public-read
, andpublic-read-write
. Defaults toprivate
. - cache_
control str - Specifies caching behavior along the request/reply chain. For further details, RFC2616 can be referred.
- content str
- Literal string value to use as the object content, which will be uploaded as UTF-8-encoded text.
- content_
disposition str - Specifies presentational information for the object.
- content_
encoding str - Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field.
- content_
type str - A standard MIME type describing the format of the object data.
- cos_
bucket_ strobject_ id - ID of the resource.
- etag str
- The ETag generated for the object (an MD5 sum of the object content).
- source str
- The path to the source file being uploaded to the bucket.
- storage_
class str - Object storage type, Available values include
STANDARD_IA
,MAZ_STANDARD_IA
,INTELLIGENT_TIERING
,MAZ_INTELLIGENT_TIERING
,ARCHIVE
,DEEP_ARCHIVE
. For more information, please refer to: https://cloud.tencent.com/document/product/436/33417. - Mapping[str, str]
- Tag of the object.
- bucket String
- The name of a bucket to use. Bucket format should be [custom name]-[appid], for example
mycos-1258798060
. - key String
- The name of the object once it is in the bucket.
- acl String
- The canned ACL to apply. Available values include
private
,public-read
, andpublic-read-write
. Defaults toprivate
. - cache
Control String - Specifies caching behavior along the request/reply chain. For further details, RFC2616 can be referred.
- content String
- Literal string value to use as the object content, which will be uploaded as UTF-8-encoded text.
- content
Disposition String - Specifies presentational information for the object.
- content
Encoding String - Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field.
- content
Type String - A standard MIME type describing the format of the object data.
- cos
Bucket StringObject Id - ID of the resource.
- etag String
- The ETag generated for the object (an MD5 sum of the object content).
- source String
- The path to the source file being uploaded to the bucket.
- storage
Class String - Object storage type, Available values include
STANDARD_IA
,MAZ_STANDARD_IA
,INTELLIGENT_TIERING
,MAZ_INTELLIGENT_TIERING
,ARCHIVE
,DEEP_ARCHIVE
. For more information, please refer to: https://cloud.tencent.com/document/product/436/33417. - Map<String>
- Tag of the object.
Outputs
All input properties are implicitly available as output properties. Additionally, the CosBucketObject resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing CosBucketObject Resource
Get an existing CosBucketObject resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: CosBucketObjectState, opts?: CustomResourceOptions): CosBucketObject
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
acl: Optional[str] = None,
bucket: Optional[str] = None,
cache_control: Optional[str] = None,
content: Optional[str] = None,
content_disposition: Optional[str] = None,
content_encoding: Optional[str] = None,
content_type: Optional[str] = None,
cos_bucket_object_id: Optional[str] = None,
etag: Optional[str] = None,
key: Optional[str] = None,
source: Optional[str] = None,
storage_class: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None) -> CosBucketObject
func GetCosBucketObject(ctx *Context, name string, id IDInput, state *CosBucketObjectState, opts ...ResourceOption) (*CosBucketObject, error)
public static CosBucketObject Get(string name, Input<string> id, CosBucketObjectState? state, CustomResourceOptions? opts = null)
public static CosBucketObject get(String name, Output<String> id, CosBucketObjectState state, CustomResourceOptions options)
resources: _: type: tencentcloud:CosBucketObject get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Acl string
- The canned ACL to apply. Available values include
private
,public-read
, andpublic-read-write
. Defaults toprivate
. - Bucket string
- The name of a bucket to use. Bucket format should be [custom name]-[appid], for example
mycos-1258798060
. - Cache
Control string - Specifies caching behavior along the request/reply chain. For further details, RFC2616 can be referred.
- Content string
- Literal string value to use as the object content, which will be uploaded as UTF-8-encoded text.
- Content
Disposition string - Specifies presentational information for the object.
- Content
Encoding string - Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field.
- Content
Type string - A standard MIME type describing the format of the object data.
- Cos
Bucket stringObject Id - ID of the resource.
- Etag string
- The ETag generated for the object (an MD5 sum of the object content).
- Key string
- The name of the object once it is in the bucket.
- Source string
- The path to the source file being uploaded to the bucket.
- Storage
Class string - Object storage type, Available values include
STANDARD_IA
,MAZ_STANDARD_IA
,INTELLIGENT_TIERING
,MAZ_INTELLIGENT_TIERING
,ARCHIVE
,DEEP_ARCHIVE
. For more information, please refer to: https://cloud.tencent.com/document/product/436/33417. - Dictionary<string, string>
- Tag of the object.
- Acl string
- The canned ACL to apply. Available values include
private
,public-read
, andpublic-read-write
. Defaults toprivate
. - Bucket string
- The name of a bucket to use. Bucket format should be [custom name]-[appid], for example
mycos-1258798060
. - Cache
Control string - Specifies caching behavior along the request/reply chain. For further details, RFC2616 can be referred.
- Content string
- Literal string value to use as the object content, which will be uploaded as UTF-8-encoded text.
- Content
Disposition string - Specifies presentational information for the object.
- Content
Encoding string - Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field.
- Content
Type string - A standard MIME type describing the format of the object data.
- Cos
Bucket stringObject Id - ID of the resource.
- Etag string
- The ETag generated for the object (an MD5 sum of the object content).
- Key string
- The name of the object once it is in the bucket.
- Source string
- The path to the source file being uploaded to the bucket.
- Storage
Class string - Object storage type, Available values include
STANDARD_IA
,MAZ_STANDARD_IA
,INTELLIGENT_TIERING
,MAZ_INTELLIGENT_TIERING
,ARCHIVE
,DEEP_ARCHIVE
. For more information, please refer to: https://cloud.tencent.com/document/product/436/33417. - map[string]string
- Tag of the object.
- acl String
- The canned ACL to apply. Available values include
private
,public-read
, andpublic-read-write
. Defaults toprivate
. - bucket String
- The name of a bucket to use. Bucket format should be [custom name]-[appid], for example
mycos-1258798060
. - cache
Control String - Specifies caching behavior along the request/reply chain. For further details, RFC2616 can be referred.
- content String
- Literal string value to use as the object content, which will be uploaded as UTF-8-encoded text.
- content
Disposition String - Specifies presentational information for the object.
- content
Encoding String - Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field.
- content
Type String - A standard MIME type describing the format of the object data.
- cos
Bucket StringObject Id - ID of the resource.
- etag String
- The ETag generated for the object (an MD5 sum of the object content).
- key String
- The name of the object once it is in the bucket.
- source String
- The path to the source file being uploaded to the bucket.
- storage
Class String - Object storage type, Available values include
STANDARD_IA
,MAZ_STANDARD_IA
,INTELLIGENT_TIERING
,MAZ_INTELLIGENT_TIERING
,ARCHIVE
,DEEP_ARCHIVE
. For more information, please refer to: https://cloud.tencent.com/document/product/436/33417. - Map<String,String>
- Tag of the object.
- acl string
- The canned ACL to apply. Available values include
private
,public-read
, andpublic-read-write
. Defaults toprivate
. - bucket string
- The name of a bucket to use. Bucket format should be [custom name]-[appid], for example
mycos-1258798060
. - cache
Control string - Specifies caching behavior along the request/reply chain. For further details, RFC2616 can be referred.
- content string
- Literal string value to use as the object content, which will be uploaded as UTF-8-encoded text.
- content
Disposition string - Specifies presentational information for the object.
- content
Encoding string - Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field.
- content
Type string - A standard MIME type describing the format of the object data.
- cos
Bucket stringObject Id - ID of the resource.
- etag string
- The ETag generated for the object (an MD5 sum of the object content).
- key string
- The name of the object once it is in the bucket.
- source string
- The path to the source file being uploaded to the bucket.
- storage
Class string - Object storage type, Available values include
STANDARD_IA
,MAZ_STANDARD_IA
,INTELLIGENT_TIERING
,MAZ_INTELLIGENT_TIERING
,ARCHIVE
,DEEP_ARCHIVE
. For more information, please refer to: https://cloud.tencent.com/document/product/436/33417. - {[key: string]: string}
- Tag of the object.
- acl str
- The canned ACL to apply. Available values include
private
,public-read
, andpublic-read-write
. Defaults toprivate
. - bucket str
- The name of a bucket to use. Bucket format should be [custom name]-[appid], for example
mycos-1258798060
. - cache_
control str - Specifies caching behavior along the request/reply chain. For further details, RFC2616 can be referred.
- content str
- Literal string value to use as the object content, which will be uploaded as UTF-8-encoded text.
- content_
disposition str - Specifies presentational information for the object.
- content_
encoding str - Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field.
- content_
type str - A standard MIME type describing the format of the object data.
- cos_
bucket_ strobject_ id - ID of the resource.
- etag str
- The ETag generated for the object (an MD5 sum of the object content).
- key str
- The name of the object once it is in the bucket.
- source str
- The path to the source file being uploaded to the bucket.
- storage_
class str - Object storage type, Available values include
STANDARD_IA
,MAZ_STANDARD_IA
,INTELLIGENT_TIERING
,MAZ_INTELLIGENT_TIERING
,ARCHIVE
,DEEP_ARCHIVE
. For more information, please refer to: https://cloud.tencent.com/document/product/436/33417. - Mapping[str, str]
- Tag of the object.
- acl String
- The canned ACL to apply. Available values include
private
,public-read
, andpublic-read-write
. Defaults toprivate
. - bucket String
- The name of a bucket to use. Bucket format should be [custom name]-[appid], for example
mycos-1258798060
. - cache
Control String - Specifies caching behavior along the request/reply chain. For further details, RFC2616 can be referred.
- content String
- Literal string value to use as the object content, which will be uploaded as UTF-8-encoded text.
- content
Disposition String - Specifies presentational information for the object.
- content
Encoding String - Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field.
- content
Type String - A standard MIME type describing the format of the object data.
- cos
Bucket StringObject Id - ID of the resource.
- etag String
- The ETag generated for the object (an MD5 sum of the object content).
- key String
- The name of the object once it is in the bucket.
- source String
- The path to the source file being uploaded to the bucket.
- storage
Class String - Object storage type, Available values include
STANDARD_IA
,MAZ_STANDARD_IA
,INTELLIGENT_TIERING
,MAZ_INTELLIGENT_TIERING
,ARCHIVE
,DEEP_ARCHIVE
. For more information, please refer to: https://cloud.tencent.com/document/product/436/33417. - Map<String>
- Tag of the object.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.