opentelekomcloud.ObsBucketObject
Explore with Pulumi AI
Up-to-date reference of API arguments for OBS bucket object you can get at documentation portal
Provides an OBS bucket object resource within OpenTelekomCloud. Now respects HTTP_PROXY, HTTPS_PROXY environment variables.
Example Usage
Uploading to a bucket
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const object = new opentelekomcloud.ObsBucketObject("object", {
    bucket: "your_bucket_name",
    content: "some object content",
    contentType: "application/xml",
    key: "new_key_from_content",
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
object = opentelekomcloud.ObsBucketObject("object",
    bucket="your_bucket_name",
    content="some object content",
    content_type="application/xml",
    key="new_key_from_content")
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := opentelekomcloud.NewObsBucketObject(ctx, "object", &opentelekomcloud.ObsBucketObjectArgs{
			Bucket:      pulumi.String("your_bucket_name"),
			Content:     pulumi.String("some object content"),
			ContentType: pulumi.String("application/xml"),
			Key:         pulumi.String("new_key_from_content"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() => 
{
    var @object = new Opentelekomcloud.ObsBucketObject("object", new()
    {
        Bucket = "your_bucket_name",
        Content = "some object content",
        ContentType = "application/xml",
        Key = "new_key_from_content",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.ObsBucketObject;
import com.pulumi.opentelekomcloud.ObsBucketObjectArgs;
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 = new ObsBucketObject("object", ObsBucketObjectArgs.builder()
            .bucket("your_bucket_name")
            .content("some object content")
            .contentType("application/xml")
            .key("new_key_from_content")
            .build());
    }
}
resources:
  object:
    type: opentelekomcloud:ObsBucketObject
    properties:
      bucket: your_bucket_name
      content: some object content
      contentType: application/xml
      key: new_key_from_content
Uploading a file to a bucket
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const examplebucket = new opentelekomcloud.ObsBucket("examplebucket", {
    bucket: "examplebuckettftest",
    acl: "private",
});
const object = new opentelekomcloud.ObsBucketObject("object", {
    bucket: examplebucket.bucket,
    key: "new_key_from_file",
    source: "index.html",
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
examplebucket = opentelekomcloud.ObsBucket("examplebucket",
    bucket="examplebuckettftest",
    acl="private")
object = opentelekomcloud.ObsBucketObject("object",
    bucket=examplebucket.bucket,
    key="new_key_from_file",
    source="index.html")
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		examplebucket, err := opentelekomcloud.NewObsBucket(ctx, "examplebucket", &opentelekomcloud.ObsBucketArgs{
			Bucket: pulumi.String("examplebuckettftest"),
			Acl:    pulumi.String("private"),
		})
		if err != nil {
			return err
		}
		_, err = opentelekomcloud.NewObsBucketObject(ctx, "object", &opentelekomcloud.ObsBucketObjectArgs{
			Bucket: examplebucket.Bucket,
			Key:    pulumi.String("new_key_from_file"),
			Source: pulumi.String("index.html"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() => 
{
    var examplebucket = new Opentelekomcloud.ObsBucket("examplebucket", new()
    {
        Bucket = "examplebuckettftest",
        Acl = "private",
    });
    var @object = new Opentelekomcloud.ObsBucketObject("object", new()
    {
        Bucket = examplebucket.Bucket,
        Key = "new_key_from_file",
        Source = "index.html",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.ObsBucket;
import com.pulumi.opentelekomcloud.ObsBucketArgs;
import com.pulumi.opentelekomcloud.ObsBucketObject;
import com.pulumi.opentelekomcloud.ObsBucketObjectArgs;
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 examplebucket = new ObsBucket("examplebucket", ObsBucketArgs.builder()
            .bucket("examplebuckettftest")
            .acl("private")
            .build());
        var object = new ObsBucketObject("object", ObsBucketObjectArgs.builder()
            .bucket(examplebucket.bucket())
            .key("new_key_from_file")
            .source("index.html")
            .build());
    }
}
resources:
  examplebucket:
    type: opentelekomcloud:ObsBucket
    properties:
      bucket: examplebuckettftest
      acl: private
  object:
    type: opentelekomcloud:ObsBucketObject
    properties:
      bucket: ${examplebucket.bucket}
      key: new_key_from_file
      source: index.html
Server Side Encryption with OBS Default Master Key
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const examplebucketObject = new opentelekomcloud.ObsBucketObject("examplebucketObject", {
    bucket: "your_bucket_name",
    encryption: true,
    key: "someobject",
    source: "index.html",
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
examplebucket_object = opentelekomcloud.ObsBucketObject("examplebucketObject",
    bucket="your_bucket_name",
    encryption=True,
    key="someobject",
    source="index.html")
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := opentelekomcloud.NewObsBucketObject(ctx, "examplebucketObject", &opentelekomcloud.ObsBucketObjectArgs{
			Bucket:     pulumi.String("your_bucket_name"),
			Encryption: pulumi.Bool(true),
			Key:        pulumi.String("someobject"),
			Source:     pulumi.String("index.html"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() => 
{
    var examplebucketObject = new Opentelekomcloud.ObsBucketObject("examplebucketObject", new()
    {
        Bucket = "your_bucket_name",
        Encryption = true,
        Key = "someobject",
        Source = "index.html",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.ObsBucketObject;
import com.pulumi.opentelekomcloud.ObsBucketObjectArgs;
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 examplebucketObject = new ObsBucketObject("examplebucketObject", ObsBucketObjectArgs.builder()
            .bucket("your_bucket_name")
            .encryption(true)
            .key("someobject")
            .source("index.html")
            .build());
    }
}
resources:
  examplebucketObject:
    type: opentelekomcloud:ObsBucketObject
    properties:
      bucket: your_bucket_name
      encryption: true
      key: someobject
      source: index.html
Create ObsBucketObject Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ObsBucketObject(name: string, args: ObsBucketObjectArgs, opts?: CustomResourceOptions);@overload
def ObsBucketObject(resource_name: str,
                    args: ObsBucketObjectArgs,
                    opts: Optional[ResourceOptions] = None)
@overload
def ObsBucketObject(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    bucket: Optional[str] = None,
                    key: Optional[str] = None,
                    acl: Optional[str] = None,
                    content: Optional[str] = None,
                    content_type: Optional[str] = None,
                    encryption: Optional[bool] = None,
                    etag: Optional[str] = None,
                    kms_key_id: Optional[str] = None,
                    obs_bucket_object_id: Optional[str] = None,
                    source: Optional[str] = None,
                    storage_class: Optional[str] = None)func NewObsBucketObject(ctx *Context, name string, args ObsBucketObjectArgs, opts ...ResourceOption) (*ObsBucketObject, error)public ObsBucketObject(string name, ObsBucketObjectArgs args, CustomResourceOptions? opts = null)
public ObsBucketObject(String name, ObsBucketObjectArgs args)
public ObsBucketObject(String name, ObsBucketObjectArgs args, CustomResourceOptions options)
type: opentelekomcloud:ObsBucketObject
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 ObsBucketObjectArgs
- 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 ObsBucketObjectArgs
- 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 ObsBucketObjectArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ObsBucketObjectArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ObsBucketObjectArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var obsBucketObjectResource = new Opentelekomcloud.ObsBucketObject("obsBucketObjectResource", new()
{
    Bucket = "string",
    Key = "string",
    Acl = "string",
    Content = "string",
    ContentType = "string",
    Encryption = false,
    Etag = "string",
    KmsKeyId = "string",
    ObsBucketObjectId = "string",
    Source = "string",
    StorageClass = "string",
});
example, err := opentelekomcloud.NewObsBucketObject(ctx, "obsBucketObjectResource", &opentelekomcloud.ObsBucketObjectArgs{
	Bucket:            pulumi.String("string"),
	Key:               pulumi.String("string"),
	Acl:               pulumi.String("string"),
	Content:           pulumi.String("string"),
	ContentType:       pulumi.String("string"),
	Encryption:        pulumi.Bool(false),
	Etag:              pulumi.String("string"),
	KmsKeyId:          pulumi.String("string"),
	ObsBucketObjectId: pulumi.String("string"),
	Source:            pulumi.String("string"),
	StorageClass:      pulumi.String("string"),
})
var obsBucketObjectResource = new ObsBucketObject("obsBucketObjectResource", ObsBucketObjectArgs.builder()
    .bucket("string")
    .key("string")
    .acl("string")
    .content("string")
    .contentType("string")
    .encryption(false)
    .etag("string")
    .kmsKeyId("string")
    .obsBucketObjectId("string")
    .source("string")
    .storageClass("string")
    .build());
obs_bucket_object_resource = opentelekomcloud.ObsBucketObject("obsBucketObjectResource",
    bucket="string",
    key="string",
    acl="string",
    content="string",
    content_type="string",
    encryption=False,
    etag="string",
    kms_key_id="string",
    obs_bucket_object_id="string",
    source="string",
    storage_class="string")
const obsBucketObjectResource = new opentelekomcloud.ObsBucketObject("obsBucketObjectResource", {
    bucket: "string",
    key: "string",
    acl: "string",
    content: "string",
    contentType: "string",
    encryption: false,
    etag: "string",
    kmsKeyId: "string",
    obsBucketObjectId: "string",
    source: "string",
    storageClass: "string",
});
type: opentelekomcloud:ObsBucketObject
properties:
    acl: string
    bucket: string
    content: string
    contentType: string
    encryption: false
    etag: string
    key: string
    kmsKeyId: string
    obsBucketObjectId: string
    source: string
    storageClass: string
ObsBucketObject 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 ObsBucketObject 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 ACL policy to apply. Defaults to private.
- Content string
- The literal content being uploaded to the bucket.
- ContentType 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.
- Encryption bool
- Whether enable server-side encryption of the object in SSE-KMS mode.
- Etag string
- Specifies the unique identifier of the object content. It can be used to trigger updates. The only meaningful value is - md5(file("path_to_file")).- Either - sourceor- contentmust be provided to specify the bucket content. These two arguments are mutually-exclusive.
- KmsKey stringId 
- ObsBucket stringObject Id 
- the keyof the resource supplied above.
- Source string
- The path to the source file being uploaded to the bucket.
- StorageClass string
- Specifies the storage class of the object. Defaults to STANDARD.
- 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 ACL policy to apply. Defaults to private.
- Content string
- The literal content being uploaded to the bucket.
- ContentType 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.
- Encryption bool
- Whether enable server-side encryption of the object in SSE-KMS mode.
- Etag string
- Specifies the unique identifier of the object content. It can be used to trigger updates. The only meaningful value is - md5(file("path_to_file")).- Either - sourceor- contentmust be provided to specify the bucket content. These two arguments are mutually-exclusive.
- KmsKey stringId 
- ObsBucket stringObject Id 
- the keyof the resource supplied above.
- Source string
- The path to the source file being uploaded to the bucket.
- StorageClass string
- Specifies the storage class of the object. Defaults to STANDARD.
- 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 ACL policy to apply. Defaults to private.
- content String
- The literal content being uploaded to the bucket.
- contentType 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.
- encryption Boolean
- Whether enable server-side encryption of the object in SSE-KMS mode.
- etag String
- Specifies the unique identifier of the object content. It can be used to trigger updates. The only meaningful value is - md5(file("path_to_file")).- Either - sourceor- contentmust be provided to specify the bucket content. These two arguments are mutually-exclusive.
- kmsKey StringId 
- obsBucket StringObject Id 
- the keyof the resource supplied above.
- source String
- The path to the source file being uploaded to the bucket.
- storageClass String
- Specifies the storage class of the object. Defaults to STANDARD.
- 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 ACL policy to apply. Defaults to private.
- content string
- The literal content being uploaded to the bucket.
- contentType 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.
- encryption boolean
- Whether enable server-side encryption of the object in SSE-KMS mode.
- etag string
- Specifies the unique identifier of the object content. It can be used to trigger updates. The only meaningful value is - md5(file("path_to_file")).- Either - sourceor- contentmust be provided to specify the bucket content. These two arguments are mutually-exclusive.
- kmsKey stringId 
- obsBucket stringObject Id 
- the keyof the resource supplied above.
- source string
- The path to the source file being uploaded to the bucket.
- storageClass string
- Specifies the storage class of the object. Defaults to STANDARD.
- 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 ACL policy to apply. Defaults to private.
- content str
- The literal content being uploaded to the bucket.
- 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.
- encryption bool
- Whether enable server-side encryption of the object in SSE-KMS mode.
- etag str
- Specifies the unique identifier of the object content. It can be used to trigger updates. The only meaningful value is - md5(file("path_to_file")).- Either - sourceor- contentmust be provided to specify the bucket content. These two arguments are mutually-exclusive.
- kms_key_ strid 
- obs_bucket_ strobject_ id 
- the keyof the resource supplied above.
- source str
- The path to the source file being uploaded to the bucket.
- storage_class str
- Specifies the storage class of the object. Defaults to STANDARD.
- 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 ACL policy to apply. Defaults to private.
- content String
- The literal content being uploaded to the bucket.
- contentType 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.
- encryption Boolean
- Whether enable server-side encryption of the object in SSE-KMS mode.
- etag String
- Specifies the unique identifier of the object content. It can be used to trigger updates. The only meaningful value is - md5(file("path_to_file")).- Either - sourceor- contentmust be provided to specify the bucket content. These two arguments are mutually-exclusive.
- kmsKey StringId 
- obsBucket StringObject Id 
- the keyof the resource supplied above.
- source String
- The path to the source file being uploaded to the bucket.
- storageClass String
- Specifies the storage class of the object. Defaults to STANDARD.
Outputs
All input properties are implicitly available as output properties. Additionally, the ObsBucketObject resource produces the following output properties:
- id str
- The provider-assigned unique ID for this managed resource.
- size float
- the size of the object in bytes.
- version_id str
- A unique version ID value for the object, if bucket versioning is enabled.
Look up Existing ObsBucketObject Resource
Get an existing ObsBucketObject 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?: ObsBucketObjectState, opts?: CustomResourceOptions): ObsBucketObject@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        acl: Optional[str] = None,
        bucket: Optional[str] = None,
        content: Optional[str] = None,
        content_type: Optional[str] = None,
        encryption: Optional[bool] = None,
        etag: Optional[str] = None,
        key: Optional[str] = None,
        kms_key_id: Optional[str] = None,
        obs_bucket_object_id: Optional[str] = None,
        size: Optional[float] = None,
        source: Optional[str] = None,
        storage_class: Optional[str] = None,
        version_id: Optional[str] = None) -> ObsBucketObjectfunc GetObsBucketObject(ctx *Context, name string, id IDInput, state *ObsBucketObjectState, opts ...ResourceOption) (*ObsBucketObject, error)public static ObsBucketObject Get(string name, Input<string> id, ObsBucketObjectState? state, CustomResourceOptions? opts = null)public static ObsBucketObject get(String name, Output<String> id, ObsBucketObjectState state, CustomResourceOptions options)resources:  _:    type: opentelekomcloud:ObsBucketObject    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 ACL policy to apply. Defaults to private.
- Bucket string
- The name of the bucket to put the file in.
- Content string
- The literal content being uploaded to the bucket.
- ContentType 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.
- Encryption bool
- Whether enable server-side encryption of the object in SSE-KMS mode.
- Etag string
- Specifies the unique identifier of the object content. It can be used to trigger updates. The only meaningful value is - md5(file("path_to_file")).- Either - sourceor- contentmust be provided to specify the bucket content. These two arguments are mutually-exclusive.
- Key string
- The name of the object once it is in the bucket.
- KmsKey stringId 
- ObsBucket stringObject Id 
- the keyof the resource supplied above.
- Size double
- the size of the object in bytes.
- Source string
- The path to the source file being uploaded to the bucket.
- StorageClass string
- Specifies the storage class of the object. Defaults to STANDARD.
- VersionId string
- A unique version ID value for the object, if bucket versioning is enabled.
- Acl string
- The ACL policy to apply. Defaults to private.
- Bucket string
- The name of the bucket to put the file in.
- Content string
- The literal content being uploaded to the bucket.
- ContentType 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.
- Encryption bool
- Whether enable server-side encryption of the object in SSE-KMS mode.
- Etag string
- Specifies the unique identifier of the object content. It can be used to trigger updates. The only meaningful value is - md5(file("path_to_file")).- Either - sourceor- contentmust be provided to specify the bucket content. These two arguments are mutually-exclusive.
- Key string
- The name of the object once it is in the bucket.
- KmsKey stringId 
- ObsBucket stringObject Id 
- the keyof the resource supplied above.
- Size float64
- the size of the object in bytes.
- Source string
- The path to the source file being uploaded to the bucket.
- StorageClass string
- Specifies the storage class of the object. Defaults to STANDARD.
- VersionId string
- A unique version ID value for the object, if bucket versioning is enabled.
- acl String
- The ACL policy to apply. Defaults to private.
- bucket String
- The name of the bucket to put the file in.
- content String
- The literal content being uploaded to the bucket.
- contentType 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.
- encryption Boolean
- Whether enable server-side encryption of the object in SSE-KMS mode.
- etag String
- Specifies the unique identifier of the object content. It can be used to trigger updates. The only meaningful value is - md5(file("path_to_file")).- Either - sourceor- contentmust be provided to specify the bucket content. These two arguments are mutually-exclusive.
- key String
- The name of the object once it is in the bucket.
- kmsKey StringId 
- obsBucket StringObject Id 
- the keyof the resource supplied above.
- size Double
- the size of the object in bytes.
- source String
- The path to the source file being uploaded to the bucket.
- storageClass String
- Specifies the storage class of the object. Defaults to STANDARD.
- versionId String
- A unique version ID value for the object, if bucket versioning is enabled.
- acl string
- The ACL policy to apply. Defaults to private.
- bucket string
- The name of the bucket to put the file in.
- content string
- The literal content being uploaded to the bucket.
- contentType 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.
- encryption boolean
- Whether enable server-side encryption of the object in SSE-KMS mode.
- etag string
- Specifies the unique identifier of the object content. It can be used to trigger updates. The only meaningful value is - md5(file("path_to_file")).- Either - sourceor- contentmust be provided to specify the bucket content. These two arguments are mutually-exclusive.
- key string
- The name of the object once it is in the bucket.
- kmsKey stringId 
- obsBucket stringObject Id 
- the keyof the resource supplied above.
- size number
- the size of the object in bytes.
- source string
- The path to the source file being uploaded to the bucket.
- storageClass string
- Specifies the storage class of the object. Defaults to STANDARD.
- versionId string
- A unique version ID value for the object, if bucket versioning is enabled.
- acl str
- The ACL policy to apply. Defaults to private.
- bucket str
- The name of the bucket to put the file in.
- content str
- The literal content being uploaded to the bucket.
- 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.
- encryption bool
- Whether enable server-side encryption of the object in SSE-KMS mode.
- etag str
- Specifies the unique identifier of the object content. It can be used to trigger updates. The only meaningful value is - md5(file("path_to_file")).- Either - sourceor- contentmust be provided to specify the bucket content. These two arguments are mutually-exclusive.
- key str
- The name of the object once it is in the bucket.
- kms_key_ strid 
- obs_bucket_ strobject_ id 
- the keyof the resource supplied above.
- size float
- the size of the object in bytes.
- source str
- The path to the source file being uploaded to the bucket.
- storage_class str
- Specifies the storage class of the object. Defaults to STANDARD.
- version_id str
- A unique version ID value for the object, if bucket versioning is enabled.
- acl String
- The ACL policy to apply. Defaults to private.
- bucket String
- The name of the bucket to put the file in.
- content String
- The literal content being uploaded to the bucket.
- contentType 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.
- encryption Boolean
- Whether enable server-side encryption of the object in SSE-KMS mode.
- etag String
- Specifies the unique identifier of the object content. It can be used to trigger updates. The only meaningful value is - md5(file("path_to_file")).- Either - sourceor- contentmust be provided to specify the bucket content. These two arguments are mutually-exclusive.
- key String
- The name of the object once it is in the bucket.
- kmsKey StringId 
- obsBucket StringObject Id 
- the keyof the resource supplied above.
- size Number
- the size of the object in bytes.
- source String
- The path to the source file being uploaded to the bucket.
- storageClass String
- Specifies the storage class of the object. Defaults to STANDARD.
- versionId String
- A unique version ID value for the object, if bucket versioning is enabled.
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the opentelekomcloudTerraform Provider.