Alibaba Cloud v3.37.0, May 15 23
Alibaba Cloud v3.37.0, May 15 23
alicloud.oss.BucketObject
Explore with Pulumi AI
Provides a resource to put a object(content or file) to a oss bucket.
Example Usage
Uploading a file to a bucket
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var object_source = new AliCloud.Oss.BucketObject("object-source", new()
{
Bucket = "your_bucket_name",
Key = "new_object_key",
Source = "path/to/file",
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/oss"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := oss.NewBucketObject(ctx, "object-source", &oss.BucketObjectArgs{
Bucket: pulumi.String("your_bucket_name"),
Key: pulumi.String("new_object_key"),
Source: pulumi.String("path/to/file"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.oss.BucketObject;
import com.pulumi.alicloud.oss.BucketObjectArgs;
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 object_source = new BucketObject("object-source", BucketObjectArgs.builder()
.bucket("your_bucket_name")
.key("new_object_key")
.source("path/to/file")
.build());
}
}
import pulumi
import pulumi_alicloud as alicloud
object_source = alicloud.oss.BucketObject("object-source",
bucket="your_bucket_name",
key="new_object_key",
source="path/to/file")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const object_source = new alicloud.oss.BucketObject("object-source", {
bucket: "your_bucket_name",
key: "new_object_key",
source: "path/to/file",
});
resources:
object-source:
type: alicloud:oss:BucketObject
properties:
bucket: your_bucket_name
key: new_object_key
source: path/to/file
Uploading a content to a bucket
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var example = new AliCloud.Oss.Bucket("example", new()
{
BucketName = "your_bucket_name",
Acl = "public-read",
});
var object_content = new AliCloud.Oss.BucketObject("object-content", new()
{
Bucket = example.BucketName,
Key = "new_object_key",
Content = "the content that you want to upload.",
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/oss"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := oss.NewBucket(ctx, "example", &oss.BucketArgs{
Bucket: pulumi.String("your_bucket_name"),
Acl: pulumi.String("public-read"),
})
if err != nil {
return err
}
_, err = oss.NewBucketObject(ctx, "object-content", &oss.BucketObjectArgs{
Bucket: example.Bucket,
Key: pulumi.String("new_object_key"),
Content: pulumi.String("the content that you want to upload."),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.oss.Bucket;
import com.pulumi.alicloud.oss.BucketArgs;
import com.pulumi.alicloud.oss.BucketObject;
import com.pulumi.alicloud.oss.BucketObjectArgs;
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 example = new Bucket("example", BucketArgs.builder()
.bucket("your_bucket_name")
.acl("public-read")
.build());
var object_content = new BucketObject("object-content", BucketObjectArgs.builder()
.bucket(example.bucket())
.key("new_object_key")
.content("the content that you want to upload.")
.build());
}
}
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.oss.Bucket("example",
bucket="your_bucket_name",
acl="public-read")
object_content = alicloud.oss.BucketObject("object-content",
bucket=example.bucket,
key="new_object_key",
content="the content that you want to upload.")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = new alicloud.oss.Bucket("example", {
bucket: "your_bucket_name",
acl: "public-read",
});
const object_content = new alicloud.oss.BucketObject("object-content", {
bucket: example.bucket,
key: "new_object_key",
content: "the content that you want to upload.",
});
resources:
example:
type: alicloud:oss:Bucket
properties:
bucket: your_bucket_name
acl: public-read
object-content:
type: alicloud:oss:BucketObject
properties:
bucket: ${example.bucket}
key: new_object_key
content: the content that you want to upload.
Create BucketObject Resource
new BucketObject(name: string, args: BucketObjectArgs, opts?: CustomResourceOptions);
@overload
def BucketObject(resource_name: 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_md5: Optional[str] = None,
content_type: Optional[str] = None,
expires: Optional[str] = None,
key: Optional[str] = None,
kms_key_id: Optional[str] = None,
server_side_encryption: Optional[str] = None,
source: Optional[str] = None)
@overload
def BucketObject(resource_name: str,
args: BucketObjectArgs,
opts: Optional[ResourceOptions] = None)
func NewBucketObject(ctx *Context, name string, args BucketObjectArgs, opts ...ResourceOption) (*BucketObject, error)
public BucketObject(string name, BucketObjectArgs args, CustomResourceOptions? opts = null)
public BucketObject(String name, BucketObjectArgs args)
public BucketObject(String name, BucketObjectArgs args, CustomResourceOptions options)
type: alicloud:oss:BucketObject
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BucketObjectArgs
- 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 BucketObjectArgs
- 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 BucketObjectArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BucketObjectArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BucketObjectArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
BucketObject Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The BucketObject resource accepts the following input properties:
- Bucket string
The name of the bucket to put the file in.
- Key string
The name of the object once it is in the bucket.
- Acl string
The canned ACL to apply. Defaults to "private".
- Cache
Control string Specifies caching behavior along the request/reply chain. Read RFC2616 Cache-Control for further details.
- Content string
The literal content being uploaded to the bucket.
- Content
Disposition string Specifies presentational information for the object. Read RFC2616 Content-Disposition for further details.
- 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. Read RFC2616 Content-Encoding for further details.
- Content
Md5 string The MD5 value of the content. Read MD5 for computing method.
- Content
Type string A standard MIME type describing the format of the object data, e.g. application/octet-stream. All Valid MIME Types are valid for this input.
- Expires string
Specifies expire date for the the request/response. Read RFC2616 Expires for further details.
- Kms
Key stringId Specifies the primary key managed by KMS. This parameter is valid when the value of
server_side_encryption
is set to KMS.Either
source
orcontent
must be provided to specify the bucket content. These two arguments are mutually-exclusive.- Server
Side stringEncryption Specifies server-side encryption of the object in OSS. Valid values are
AES256
,KMS
. Default value isAES256
.- Source string
The path to the source file being uploaded to the bucket.
- Bucket string
The name of the bucket to put the file in.
- Key string
The name of the object once it is in the bucket.
- Acl string
The canned ACL to apply. Defaults to "private".
- Cache
Control string Specifies caching behavior along the request/reply chain. Read RFC2616 Cache-Control for further details.
- Content string
The literal content being uploaded to the bucket.
- Content
Disposition string Specifies presentational information for the object. Read RFC2616 Content-Disposition for further details.
- 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. Read RFC2616 Content-Encoding for further details.
- Content
Md5 string The MD5 value of the content. Read MD5 for computing method.
- Content
Type string A standard MIME type describing the format of the object data, e.g. application/octet-stream. All Valid MIME Types are valid for this input.
- Expires string
Specifies expire date for the the request/response. Read RFC2616 Expires for further details.
- Kms
Key stringId Specifies the primary key managed by KMS. This parameter is valid when the value of
server_side_encryption
is set to KMS.Either
source
orcontent
must be provided to specify the bucket content. These two arguments are mutually-exclusive.- Server
Side stringEncryption Specifies server-side encryption of the object in OSS. Valid values are
AES256
,KMS
. Default value isAES256
.- Source string
The path to the source file being uploaded to the bucket.
- bucket String
The name of the bucket to put the file in.
- key String
The name of the object once it is in the bucket.
- acl String
The canned ACL to apply. Defaults to "private".
- cache
Control String Specifies caching behavior along the request/reply chain. Read RFC2616 Cache-Control for further details.
- content String
The literal content being uploaded to the bucket.
- content
Disposition String Specifies presentational information for the object. Read RFC2616 Content-Disposition for further details.
- 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. Read RFC2616 Content-Encoding for further details.
- content
Md5 String The MD5 value of the content. Read MD5 for computing method.
- content
Type String A standard MIME type describing the format of the object data, e.g. application/octet-stream. All Valid MIME Types are valid for this input.
- expires String
Specifies expire date for the the request/response. Read RFC2616 Expires for further details.
- kms
Key StringId Specifies the primary key managed by KMS. This parameter is valid when the value of
server_side_encryption
is set to KMS.Either
source
orcontent
must be provided to specify the bucket content. These two arguments are mutually-exclusive.- server
Side StringEncryption Specifies server-side encryption of the object in OSS. Valid values are
AES256
,KMS
. Default value isAES256
.- source String
The path to the source file being uploaded to the bucket.
- bucket string
The name of the bucket to put the file in.
- key string
The name of the object once it is in the bucket.
- acl string
The canned ACL to apply. Defaults to "private".
- cache
Control string Specifies caching behavior along the request/reply chain. Read RFC2616 Cache-Control for further details.
- content string
The literal content being uploaded to the bucket.
- content
Disposition string Specifies presentational information for the object. Read RFC2616 Content-Disposition for further details.
- 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. Read RFC2616 Content-Encoding for further details.
- content
Md5 string The MD5 value of the content. Read MD5 for computing method.
- content
Type string A standard MIME type describing the format of the object data, e.g. application/octet-stream. All Valid MIME Types are valid for this input.
- expires string
Specifies expire date for the the request/response. Read RFC2616 Expires for further details.
- kms
Key stringId Specifies the primary key managed by KMS. This parameter is valid when the value of
server_side_encryption
is set to KMS.Either
source
orcontent
must be provided to specify the bucket content. These two arguments are mutually-exclusive.- server
Side stringEncryption Specifies server-side encryption of the object in OSS. Valid values are
AES256
,KMS
. Default value isAES256
.- source string
The path to the source file being uploaded to the bucket.
- bucket str
The name of the bucket to put the file in.
- key str
The name of the object once it is in the bucket.
- acl str
The canned ACL to apply. Defaults to "private".
- cache_
control str Specifies caching behavior along the request/reply chain. Read RFC2616 Cache-Control for further details.
- content str
The literal content being uploaded to the bucket.
- content_
disposition str Specifies presentational information for the object. Read RFC2616 Content-Disposition for further details.
- 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. Read RFC2616 Content-Encoding for further details.
- content_
md5 str The MD5 value of the content. Read MD5 for computing method.
- content_
type str A standard MIME type describing the format of the object data, e.g. application/octet-stream. All Valid MIME Types are valid for this input.
- expires str
Specifies expire date for the the request/response. Read RFC2616 Expires for further details.
- kms_
key_ strid Specifies the primary key managed by KMS. This parameter is valid when the value of
server_side_encryption
is set to KMS.Either
source
orcontent
must be provided to specify the bucket content. These two arguments are mutually-exclusive.- server_
side_ strencryption Specifies server-side encryption of the object in OSS. Valid values are
AES256
,KMS
. Default value isAES256
.- source str
The path to the source file being uploaded to the bucket.
- bucket String
The name of the bucket to put the file in.
- key String
The name of the object once it is in the bucket.
- acl String
The canned ACL to apply. Defaults to "private".
- cache
Control String Specifies caching behavior along the request/reply chain. Read RFC2616 Cache-Control for further details.
- content String
The literal content being uploaded to the bucket.
- content
Disposition String Specifies presentational information for the object. Read RFC2616 Content-Disposition for further details.
- 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. Read RFC2616 Content-Encoding for further details.
- content
Md5 String The MD5 value of the content. Read MD5 for computing method.
- content
Type String A standard MIME type describing the format of the object data, e.g. application/octet-stream. All Valid MIME Types are valid for this input.
- expires String
Specifies expire date for the the request/response. Read RFC2616 Expires for further details.
- kms
Key StringId Specifies the primary key managed by KMS. This parameter is valid when the value of
server_side_encryption
is set to KMS.Either
source
orcontent
must be provided to specify the bucket content. These two arguments are mutually-exclusive.- server
Side StringEncryption Specifies server-side encryption of the object in OSS. Valid values are
AES256
,KMS
. Default value isAES256
.- source String
The path to the source file being uploaded to the bucket.
Outputs
All input properties are implicitly available as output properties. Additionally, the BucketObject resource produces the following output properties:
- Content
Length string the content length of request.
- Etag string
the ETag generated for the object (an MD5 sum of the object content).
- Id string
The provider-assigned unique ID for this managed resource.
- Version
Id string A unique version ID value for the object, if bucket versioning is enabled.
- Content
Length string the content length of request.
- Etag string
the ETag generated for the object (an MD5 sum of the object content).
- Id string
The provider-assigned unique ID for this managed resource.
- Version
Id string A unique version ID value for the object, if bucket versioning is enabled.
- content
Length String the content length of request.
- etag String
the ETag generated for the object (an MD5 sum of the object content).
- id String
The provider-assigned unique ID for this managed resource.
- version
Id String A unique version ID value for the object, if bucket versioning is enabled.
- content
Length string the content length of request.
- etag string
the ETag generated for the object (an MD5 sum of the object content).
- id string
The provider-assigned unique ID for this managed resource.
- version
Id string A unique version ID value for the object, if bucket versioning is enabled.
- content_
length str the content length of request.
- etag str
the ETag generated for the object (an MD5 sum of the object content).
- id str
The provider-assigned unique ID for this managed resource.
- version_
id str A unique version ID value for the object, if bucket versioning is enabled.
- content
Length String the content length of request.
- etag String
the ETag generated for the object (an MD5 sum of the object content).
- id String
The provider-assigned unique ID for this managed resource.
- version
Id String A unique version ID value for the object, if bucket versioning is enabled.
Look up Existing BucketObject Resource
Get an existing BucketObject 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?: BucketObjectState, opts?: CustomResourceOptions): BucketObject
@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_length: Optional[str] = None,
content_md5: Optional[str] = None,
content_type: Optional[str] = None,
etag: Optional[str] = None,
expires: Optional[str] = None,
key: Optional[str] = None,
kms_key_id: Optional[str] = None,
server_side_encryption: Optional[str] = None,
source: Optional[str] = None,
version_id: Optional[str] = None) -> BucketObject
func GetBucketObject(ctx *Context, name string, id IDInput, state *BucketObjectState, opts ...ResourceOption) (*BucketObject, error)
public static BucketObject Get(string name, Input<string> id, BucketObjectState? state, CustomResourceOptions? opts = null)
public static BucketObject get(String name, Output<String> id, BucketObjectState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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. Defaults to "private".
- Bucket string
The name of the bucket to put the file in.
- Cache
Control string Specifies caching behavior along the request/reply chain. Read RFC2616 Cache-Control for further details.
- Content string
The literal content being uploaded to the bucket.
- Content
Disposition string Specifies presentational information for the object. Read RFC2616 Content-Disposition for further details.
- 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. Read RFC2616 Content-Encoding for further details.
- Content
Length string the content length of request.
- Content
Md5 string The MD5 value of the content. Read MD5 for computing method.
- Content
Type string A standard MIME type describing the format of the object data, e.g. application/octet-stream. All Valid MIME Types are valid for this input.
- Etag string
the ETag generated for the object (an MD5 sum of the object content).
- Expires string
Specifies expire date for the the request/response. Read RFC2616 Expires for further details.
- Key string
The name of the object once it is in the bucket.
- Kms
Key stringId Specifies the primary key managed by KMS. This parameter is valid when the value of
server_side_encryption
is set to KMS.Either
source
orcontent
must be provided to specify the bucket content. These two arguments are mutually-exclusive.- Server
Side stringEncryption Specifies server-side encryption of the object in OSS. Valid values are
AES256
,KMS
. Default value isAES256
.- Source string
The path to the source file being uploaded to the bucket.
- Version
Id string A unique version ID value for the object, if bucket versioning is enabled.
- Acl string
The canned ACL to apply. Defaults to "private".
- Bucket string
The name of the bucket to put the file in.
- Cache
Control string Specifies caching behavior along the request/reply chain. Read RFC2616 Cache-Control for further details.
- Content string
The literal content being uploaded to the bucket.
- Content
Disposition string Specifies presentational information for the object. Read RFC2616 Content-Disposition for further details.
- 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. Read RFC2616 Content-Encoding for further details.
- Content
Length string the content length of request.
- Content
Md5 string The MD5 value of the content. Read MD5 for computing method.
- Content
Type string A standard MIME type describing the format of the object data, e.g. application/octet-stream. All Valid MIME Types are valid for this input.
- Etag string
the ETag generated for the object (an MD5 sum of the object content).
- Expires string
Specifies expire date for the the request/response. Read RFC2616 Expires for further details.
- Key string
The name of the object once it is in the bucket.
- Kms
Key stringId Specifies the primary key managed by KMS. This parameter is valid when the value of
server_side_encryption
is set to KMS.Either
source
orcontent
must be provided to specify the bucket content. These two arguments are mutually-exclusive.- Server
Side stringEncryption Specifies server-side encryption of the object in OSS. Valid values are
AES256
,KMS
. Default value isAES256
.- Source string
The path to the source file being uploaded to the bucket.
- Version
Id string A unique version ID value for the object, if bucket versioning is enabled.
- acl String
The canned ACL to apply. Defaults to "private".
- bucket String
The name of the bucket to put the file in.
- cache
Control String Specifies caching behavior along the request/reply chain. Read RFC2616 Cache-Control for further details.
- content String
The literal content being uploaded to the bucket.
- content
Disposition String Specifies presentational information for the object. Read RFC2616 Content-Disposition for further details.
- 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. Read RFC2616 Content-Encoding for further details.
- content
Length String the content length of request.
- content
Md5 String The MD5 value of the content. Read MD5 for computing method.
- content
Type String A standard MIME type describing the format of the object data, e.g. application/octet-stream. All Valid MIME Types are valid for this input.
- etag String
the ETag generated for the object (an MD5 sum of the object content).
- expires String
Specifies expire date for the the request/response. Read RFC2616 Expires for further details.
- key String
The name of the object once it is in the bucket.
- kms
Key StringId Specifies the primary key managed by KMS. This parameter is valid when the value of
server_side_encryption
is set to KMS.Either
source
orcontent
must be provided to specify the bucket content. These two arguments are mutually-exclusive.- server
Side StringEncryption Specifies server-side encryption of the object in OSS. Valid values are
AES256
,KMS
. Default value isAES256
.- source String
The path to the source file being uploaded to the bucket.
- version
Id String A unique version ID value for the object, if bucket versioning is enabled.
- acl string
The canned ACL to apply. Defaults to "private".
- bucket string
The name of the bucket to put the file in.
- cache
Control string Specifies caching behavior along the request/reply chain. Read RFC2616 Cache-Control for further details.
- content string
The literal content being uploaded to the bucket.
- content
Disposition string Specifies presentational information for the object. Read RFC2616 Content-Disposition for further details.
- 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. Read RFC2616 Content-Encoding for further details.
- content
Length string the content length of request.
- content
Md5 string The MD5 value of the content. Read MD5 for computing method.
- content
Type string A standard MIME type describing the format of the object data, e.g. application/octet-stream. All Valid MIME Types are valid for this input.
- etag string
the ETag generated for the object (an MD5 sum of the object content).
- expires string
Specifies expire date for the the request/response. Read RFC2616 Expires for further details.
- key string
The name of the object once it is in the bucket.
- kms
Key stringId Specifies the primary key managed by KMS. This parameter is valid when the value of
server_side_encryption
is set to KMS.Either
source
orcontent
must be provided to specify the bucket content. These two arguments are mutually-exclusive.- server
Side stringEncryption Specifies server-side encryption of the object in OSS. Valid values are
AES256
,KMS
. Default value isAES256
.- source string
The path to the source file being uploaded to the bucket.
- version
Id string A unique version ID value for the object, if bucket versioning is enabled.
- acl str
The canned ACL to apply. Defaults to "private".
- bucket str
The name of the bucket to put the file in.
- cache_
control str Specifies caching behavior along the request/reply chain. Read RFC2616 Cache-Control for further details.
- content str
The literal content being uploaded to the bucket.
- content_
disposition str Specifies presentational information for the object. Read RFC2616 Content-Disposition for further details.
- 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. Read RFC2616 Content-Encoding for further details.
- content_
length str the content length of request.
- content_
md5 str The MD5 value of the content. Read MD5 for computing method.
- content_
type str A standard MIME type describing the format of the object data, e.g. application/octet-stream. All Valid MIME Types are valid for this input.
- etag str
the ETag generated for the object (an MD5 sum of the object content).
- expires str
Specifies expire date for the the request/response. Read RFC2616 Expires for further details.
- key str
The name of the object once it is in the bucket.
- kms_
key_ strid Specifies the primary key managed by KMS. This parameter is valid when the value of
server_side_encryption
is set to KMS.Either
source
orcontent
must be provided to specify the bucket content. These two arguments are mutually-exclusive.- server_
side_ strencryption Specifies server-side encryption of the object in OSS. Valid values are
AES256
,KMS
. Default value isAES256
.- source str
The path to the source file being uploaded to the bucket.
- version_
id str A unique version ID value for the object, if bucket versioning is enabled.
- acl String
The canned ACL to apply. Defaults to "private".
- bucket String
The name of the bucket to put the file in.
- cache
Control String Specifies caching behavior along the request/reply chain. Read RFC2616 Cache-Control for further details.
- content String
The literal content being uploaded to the bucket.
- content
Disposition String Specifies presentational information for the object. Read RFC2616 Content-Disposition for further details.
- 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. Read RFC2616 Content-Encoding for further details.
- content
Length String the content length of request.
- content
Md5 String The MD5 value of the content. Read MD5 for computing method.
- content
Type String A standard MIME type describing the format of the object data, e.g. application/octet-stream. All Valid MIME Types are valid for this input.
- etag String
the ETag generated for the object (an MD5 sum of the object content).
- expires String
Specifies expire date for the the request/response. Read RFC2616 Expires for further details.
- key String
The name of the object once it is in the bucket.
- kms
Key StringId Specifies the primary key managed by KMS. This parameter is valid when the value of
server_side_encryption
is set to KMS.Either
source
orcontent
must be provided to specify the bucket content. These two arguments are mutually-exclusive.- server
Side StringEncryption Specifies server-side encryption of the object in OSS. Valid values are
AES256
,KMS
. Default value isAES256
.- source String
The path to the source file being uploaded to the bucket.
- version
Id String A unique version ID value for the object, if bucket versioning is enabled.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.