1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. ObjectStorage
  5. StorageObject
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

oci.ObjectStorage.StorageObject

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

    This resource provides the Object resource in Oracle Cloud Infrastructure Object Storage service.

    Creates a new object or overwrites an existing object with the same name. The maximum object size allowed by PutObject is 50 GiB.

    See Object Names for object naming requirements.

    See Special Instructions for Object Storage PUT for request signature requirements.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testObject = new oci.objectstorage.StorageObject("testObject", {
        bucket: _var.object_bucket,
        content: _var.object_content,
        namespace: _var.object_namespace,
        object: _var.object_object,
        cacheControl: _var.object_cache_control,
        contentDisposition: _var.object_content_disposition,
        contentEncoding: _var.object_content_encoding,
        contentLanguage: _var.object_content_language,
        contentType: _var.object_content_type,
        deleteAllObjectVersions: _var.object_delete_all_object_versions,
        metadata: _var.object_metadata,
        storageTier: _var.object_storage_tier,
        opcSseKmsKeyId: _var.object_opc_sse_kms_key_id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_object = oci.object_storage.StorageObject("testObject",
        bucket=var["object_bucket"],
        content=var["object_content"],
        namespace=var["object_namespace"],
        object=var["object_object"],
        cache_control=var["object_cache_control"],
        content_disposition=var["object_content_disposition"],
        content_encoding=var["object_content_encoding"],
        content_language=var["object_content_language"],
        content_type=var["object_content_type"],
        delete_all_object_versions=var["object_delete_all_object_versions"],
        metadata=var["object_metadata"],
        storage_tier=var["object_storage_tier"],
        opc_sse_kms_key_id=var["object_opc_sse_kms_key_id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/ObjectStorage"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ObjectStorage.NewStorageObject(ctx, "testObject", &ObjectStorage.StorageObjectArgs{
    			Bucket:                  pulumi.Any(_var.Object_bucket),
    			Content:                 pulumi.Any(_var.Object_content),
    			Namespace:               pulumi.Any(_var.Object_namespace),
    			Object:                  pulumi.Any(_var.Object_object),
    			CacheControl:            pulumi.Any(_var.Object_cache_control),
    			ContentDisposition:      pulumi.Any(_var.Object_content_disposition),
    			ContentEncoding:         pulumi.Any(_var.Object_content_encoding),
    			ContentLanguage:         pulumi.Any(_var.Object_content_language),
    			ContentType:             pulumi.Any(_var.Object_content_type),
    			DeleteAllObjectVersions: pulumi.Any(_var.Object_delete_all_object_versions),
    			Metadata:                pulumi.Any(_var.Object_metadata),
    			StorageTier:             pulumi.Any(_var.Object_storage_tier),
    			OpcSseKmsKeyId:          pulumi.Any(_var.Object_opc_sse_kms_key_id),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testObject = new Oci.ObjectStorage.StorageObject("testObject", new()
        {
            Bucket = @var.Object_bucket,
            Content = @var.Object_content,
            Namespace = @var.Object_namespace,
            Object = @var.Object_object,
            CacheControl = @var.Object_cache_control,
            ContentDisposition = @var.Object_content_disposition,
            ContentEncoding = @var.Object_content_encoding,
            ContentLanguage = @var.Object_content_language,
            ContentType = @var.Object_content_type,
            DeleteAllObjectVersions = @var.Object_delete_all_object_versions,
            Metadata = @var.Object_metadata,
            StorageTier = @var.Object_storage_tier,
            OpcSseKmsKeyId = @var.Object_opc_sse_kms_key_id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.ObjectStorage.StorageObject;
    import com.pulumi.oci.ObjectStorage.StorageObjectArgs;
    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 testObject = new StorageObject("testObject", StorageObjectArgs.builder()        
                .bucket(var_.object_bucket())
                .content(var_.object_content())
                .namespace(var_.object_namespace())
                .object(var_.object_object())
                .cacheControl(var_.object_cache_control())
                .contentDisposition(var_.object_content_disposition())
                .contentEncoding(var_.object_content_encoding())
                .contentLanguage(var_.object_content_language())
                .contentType(var_.object_content_type())
                .deleteAllObjectVersions(var_.object_delete_all_object_versions())
                .metadata(var_.object_metadata())
                .storageTier(var_.object_storage_tier())
                .opcSseKmsKeyId(var_.object_opc_sse_kms_key_id())
                .build());
    
        }
    }
    
    resources:
      testObject:
        type: oci:ObjectStorage:StorageObject
        properties:
          #Required
          bucket: ${var.object_bucket}
          content: ${var.object_content}
          namespace: ${var.object_namespace}
          object: ${var.object_object}
          #Optional
          cacheControl: ${var.object_cache_control}
          contentDisposition: ${var.object_content_disposition}
          contentEncoding: ${var.object_content_encoding}
          contentLanguage: ${var.object_content_language}
          contentType: ${var.object_content_type}
          deleteAllObjectVersions: ${var.object_delete_all_object_versions}
          metadata: ${var.object_metadata}
          storageTier: ${var.object_storage_tier}
          opcSseKmsKeyId: ${var.object_opc_sse_kms_key_id}
    

    Create StorageObject Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new StorageObject(name: string, args: StorageObjectArgs, opts?: CustomResourceOptions);
    @overload
    def StorageObject(resource_name: str,
                      args: StorageObjectArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def StorageObject(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      bucket: Optional[str] = None,
                      object: Optional[str] = None,
                      namespace: Optional[str] = None,
                      delete_all_object_versions: Optional[bool] = None,
                      content_encoding: Optional[str] = None,
                      content_language: Optional[str] = None,
                      content_md5: Optional[str] = None,
                      content_type: Optional[str] = None,
                      content_disposition: Optional[str] = None,
                      metadata: Optional[Mapping[str, Any]] = None,
                      content: Optional[str] = None,
                      cache_control: Optional[str] = None,
                      opc_sse_kms_key_id: Optional[str] = None,
                      source: Optional[str] = None,
                      source_uri_details: Optional[_objectstorage.StorageObjectSourceUriDetailsArgs] = None,
                      storage_tier: Optional[str] = None)
    func NewStorageObject(ctx *Context, name string, args StorageObjectArgs, opts ...ResourceOption) (*StorageObject, error)
    public StorageObject(string name, StorageObjectArgs args, CustomResourceOptions? opts = null)
    public StorageObject(String name, StorageObjectArgs args)
    public StorageObject(String name, StorageObjectArgs args, CustomResourceOptions options)
    
    type: oci:ObjectStorage:StorageObject
    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 StorageObjectArgs
    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 StorageObjectArgs
    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 StorageObjectArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args StorageObjectArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args StorageObjectArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var storageObjectResource = new Oci.ObjectStorage.StorageObject("storageObjectResource", new()
    {
        Bucket = "string",
        Object = "string",
        Namespace = "string",
        DeleteAllObjectVersions = false,
        ContentEncoding = "string",
        ContentLanguage = "string",
        ContentMd5 = "string",
        ContentType = "string",
        ContentDisposition = "string",
        Metadata = 
        {
            { "string", "any" },
        },
        Content = "string",
        CacheControl = "string",
        OpcSseKmsKeyId = "string",
        Source = "string",
        SourceUriDetails = new Oci.ObjectStorage.Inputs.StorageObjectSourceUriDetailsArgs
        {
            Bucket = "string",
            Namespace = "string",
            Object = "string",
            Region = "string",
            DestinationObjectIfMatchEtag = "string",
            DestinationObjectIfNoneMatchEtag = "string",
            SourceObjectIfMatchEtag = "string",
            SourceVersionId = "string",
        },
        StorageTier = "string",
    });
    
    example, err := ObjectStorage.NewStorageObject(ctx, "storageObjectResource", &ObjectStorage.StorageObjectArgs{
    	Bucket:                  pulumi.String("string"),
    	Object:                  pulumi.String("string"),
    	Namespace:               pulumi.String("string"),
    	DeleteAllObjectVersions: pulumi.Bool(false),
    	ContentEncoding:         pulumi.String("string"),
    	ContentLanguage:         pulumi.String("string"),
    	ContentMd5:              pulumi.String("string"),
    	ContentType:             pulumi.String("string"),
    	ContentDisposition:      pulumi.String("string"),
    	Metadata: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    	Content:        pulumi.String("string"),
    	CacheControl:   pulumi.String("string"),
    	OpcSseKmsKeyId: pulumi.String("string"),
    	Source:         pulumi.String("string"),
    	SourceUriDetails: &objectstorage.StorageObjectSourceUriDetailsArgs{
    		Bucket:                           pulumi.String("string"),
    		Namespace:                        pulumi.String("string"),
    		Object:                           pulumi.String("string"),
    		Region:                           pulumi.String("string"),
    		DestinationObjectIfMatchEtag:     pulumi.String("string"),
    		DestinationObjectIfNoneMatchEtag: pulumi.String("string"),
    		SourceObjectIfMatchEtag:          pulumi.String("string"),
    		SourceVersionId:                  pulumi.String("string"),
    	},
    	StorageTier: pulumi.String("string"),
    })
    
    var storageObjectResource = new StorageObject("storageObjectResource", StorageObjectArgs.builder()        
        .bucket("string")
        .object("string")
        .namespace("string")
        .deleteAllObjectVersions(false)
        .contentEncoding("string")
        .contentLanguage("string")
        .contentMd5("string")
        .contentType("string")
        .contentDisposition("string")
        .metadata(Map.of("string", "any"))
        .content("string")
        .cacheControl("string")
        .opcSseKmsKeyId("string")
        .source("string")
        .sourceUriDetails(StorageObjectSourceUriDetailsArgs.builder()
            .bucket("string")
            .namespace("string")
            .object("string")
            .region("string")
            .destinationObjectIfMatchEtag("string")
            .destinationObjectIfNoneMatchEtag("string")
            .sourceObjectIfMatchEtag("string")
            .sourceVersionId("string")
            .build())
        .storageTier("string")
        .build());
    
    storage_object_resource = oci.object_storage.StorageObject("storageObjectResource",
        bucket="string",
        object="string",
        namespace="string",
        delete_all_object_versions=False,
        content_encoding="string",
        content_language="string",
        content_md5="string",
        content_type="string",
        content_disposition="string",
        metadata={
            "string": "any",
        },
        content="string",
        cache_control="string",
        opc_sse_kms_key_id="string",
        source="string",
        source_uri_details=oci.object_storage.StorageObjectSourceUriDetailsArgs(
            bucket="string",
            namespace="string",
            object="string",
            region="string",
            destination_object_if_match_etag="string",
            destination_object_if_none_match_etag="string",
            source_object_if_match_etag="string",
            source_version_id="string",
        ),
        storage_tier="string")
    
    const storageObjectResource = new oci.objectstorage.StorageObject("storageObjectResource", {
        bucket: "string",
        object: "string",
        namespace: "string",
        deleteAllObjectVersions: false,
        contentEncoding: "string",
        contentLanguage: "string",
        contentMd5: "string",
        contentType: "string",
        contentDisposition: "string",
        metadata: {
            string: "any",
        },
        content: "string",
        cacheControl: "string",
        opcSseKmsKeyId: "string",
        source: "string",
        sourceUriDetails: {
            bucket: "string",
            namespace: "string",
            object: "string",
            region: "string",
            destinationObjectIfMatchEtag: "string",
            destinationObjectIfNoneMatchEtag: "string",
            sourceObjectIfMatchEtag: "string",
            sourceVersionId: "string",
        },
        storageTier: "string",
    });
    
    type: oci:ObjectStorage:StorageObject
    properties:
        bucket: string
        cacheControl: string
        content: string
        contentDisposition: string
        contentEncoding: string
        contentLanguage: string
        contentMd5: string
        contentType: string
        deleteAllObjectVersions: false
        metadata:
            string: any
        namespace: string
        object: string
        opcSseKmsKeyId: string
        source: string
        sourceUriDetails:
            bucket: string
            destinationObjectIfMatchEtag: string
            destinationObjectIfNoneMatchEtag: string
            namespace: string
            object: string
            region: string
            sourceObjectIfMatchEtag: string
            sourceVersionId: string
        storageTier: string
    

    StorageObject 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 StorageObject resource accepts the following input properties:

    Bucket string
    The name of the bucket for the source object.
    Namespace string
    The top-level namespace of the source object.
    Object string
    The name of the source object.
    CacheControl string
    The optional Cache-Control header that defines the caching behavior value to be returned in GetObject and HeadObject responses. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to identify objects that require caching restrictions.
    Content string
    The object to upload to the object store. Cannot be defined if source or source_uri_details is defined.
    ContentDisposition string
    The optional Content-Disposition header that defines presentational information for the object to be returned in GetObject and HeadObject responses. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to let users download objects with custom filenames in a browser.
    ContentEncoding string
    The optional Content-Encoding header that defines the content encodings that were applied to the object to upload. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to determine what decoding mechanisms need to be applied to obtain the media-type specified by the Content-Type header of the object.
    ContentLanguage string
    The optional Content-Language header that defines the content language of the object to upload. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to identify and differentiate objects based on a particular language.
    ContentMd5 string

    (Updatable) The optional base-64 header that defines the encoded MD5 hash of the body. If the optional Content-MD5 header is present, Object Storage performs an integrity check on the body of the HTTP request by computing the MD5 hash for the body and comparing it to the MD5 hash supplied in the header. If the two hashes do not match, the object is rejected and an HTTP-400 Unmatched Content MD5 error is returned with the message:

    "The computed MD5 of the request body (ACTUAL_MD5) does not match the Content-MD5 header (HEADER_MD5)"

    ContentType string
    The optional Content-Type header that defines the standard MIME type format of the object. Content type defaults to 'application/octet-stream' if not specified in the PutObject call. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to identify and perform special operations on text only objects.
    DeleteAllObjectVersions bool
    (Updatable) A boolean to delete all object versions for an object in a bucket that has or ever had versioning enabled.
    Metadata Dictionary<string, object>
    Optional user-defined metadata key and value. Note: All specified keys must be in lower case.
    OpcSseKmsKeyId string
    (Updatable) The OCID of a master encryption key used to call the Key Management service to generate a data encryption key or to encrypt or decrypt a data encryption key.
    Source string
    An absolute path to a file on the local system. Cannot be defined if content or source_uri_details is defined.
    SourceUriDetails StorageObjectSourceUriDetails
    Details of the source URI of the object in the cloud. Cannot be defined if content or source is defined. Note: To enable object copy, you must authorize the service to manage objects on your behalf.
    StorageTier string
    (Updatable) The storage tier that the object should be stored in. If not specified, the object will be stored in the same storage tier as the bucket.
    Bucket string
    The name of the bucket for the source object.
    Namespace string
    The top-level namespace of the source object.
    Object string
    The name of the source object.
    CacheControl string
    The optional Cache-Control header that defines the caching behavior value to be returned in GetObject and HeadObject responses. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to identify objects that require caching restrictions.
    Content string
    The object to upload to the object store. Cannot be defined if source or source_uri_details is defined.
    ContentDisposition string
    The optional Content-Disposition header that defines presentational information for the object to be returned in GetObject and HeadObject responses. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to let users download objects with custom filenames in a browser.
    ContentEncoding string
    The optional Content-Encoding header that defines the content encodings that were applied to the object to upload. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to determine what decoding mechanisms need to be applied to obtain the media-type specified by the Content-Type header of the object.
    ContentLanguage string
    The optional Content-Language header that defines the content language of the object to upload. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to identify and differentiate objects based on a particular language.
    ContentMd5 string

    (Updatable) The optional base-64 header that defines the encoded MD5 hash of the body. If the optional Content-MD5 header is present, Object Storage performs an integrity check on the body of the HTTP request by computing the MD5 hash for the body and comparing it to the MD5 hash supplied in the header. If the two hashes do not match, the object is rejected and an HTTP-400 Unmatched Content MD5 error is returned with the message:

    "The computed MD5 of the request body (ACTUAL_MD5) does not match the Content-MD5 header (HEADER_MD5)"

    ContentType string
    The optional Content-Type header that defines the standard MIME type format of the object. Content type defaults to 'application/octet-stream' if not specified in the PutObject call. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to identify and perform special operations on text only objects.
    DeleteAllObjectVersions bool
    (Updatable) A boolean to delete all object versions for an object in a bucket that has or ever had versioning enabled.
    Metadata map[string]interface{}
    Optional user-defined metadata key and value. Note: All specified keys must be in lower case.
    OpcSseKmsKeyId string
    (Updatable) The OCID of a master encryption key used to call the Key Management service to generate a data encryption key or to encrypt or decrypt a data encryption key.
    Source string
    An absolute path to a file on the local system. Cannot be defined if content or source_uri_details is defined.
    SourceUriDetails StorageObjectSourceUriDetailsArgs
    Details of the source URI of the object in the cloud. Cannot be defined if content or source is defined. Note: To enable object copy, you must authorize the service to manage objects on your behalf.
    StorageTier string
    (Updatable) The storage tier that the object should be stored in. If not specified, the object will be stored in the same storage tier as the bucket.
    bucket String
    The name of the bucket for the source object.
    namespace String
    The top-level namespace of the source object.
    object String
    The name of the source object.
    cacheControl String
    The optional Cache-Control header that defines the caching behavior value to be returned in GetObject and HeadObject responses. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to identify objects that require caching restrictions.
    content String
    The object to upload to the object store. Cannot be defined if source or source_uri_details is defined.
    contentDisposition String
    The optional Content-Disposition header that defines presentational information for the object to be returned in GetObject and HeadObject responses. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to let users download objects with custom filenames in a browser.
    contentEncoding String
    The optional Content-Encoding header that defines the content encodings that were applied to the object to upload. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to determine what decoding mechanisms need to be applied to obtain the media-type specified by the Content-Type header of the object.
    contentLanguage String
    The optional Content-Language header that defines the content language of the object to upload. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to identify and differentiate objects based on a particular language.
    contentMd5 String

    (Updatable) The optional base-64 header that defines the encoded MD5 hash of the body. If the optional Content-MD5 header is present, Object Storage performs an integrity check on the body of the HTTP request by computing the MD5 hash for the body and comparing it to the MD5 hash supplied in the header. If the two hashes do not match, the object is rejected and an HTTP-400 Unmatched Content MD5 error is returned with the message:

    "The computed MD5 of the request body (ACTUAL_MD5) does not match the Content-MD5 header (HEADER_MD5)"

    contentType String
    The optional Content-Type header that defines the standard MIME type format of the object. Content type defaults to 'application/octet-stream' if not specified in the PutObject call. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to identify and perform special operations on text only objects.
    deleteAllObjectVersions Boolean
    (Updatable) A boolean to delete all object versions for an object in a bucket that has or ever had versioning enabled.
    metadata Map<String,Object>
    Optional user-defined metadata key and value. Note: All specified keys must be in lower case.
    opcSseKmsKeyId String
    (Updatable) The OCID of a master encryption key used to call the Key Management service to generate a data encryption key or to encrypt or decrypt a data encryption key.
    source String
    An absolute path to a file on the local system. Cannot be defined if content or source_uri_details is defined.
    sourceUriDetails StorageObjectSourceUriDetails
    Details of the source URI of the object in the cloud. Cannot be defined if content or source is defined. Note: To enable object copy, you must authorize the service to manage objects on your behalf.
    storageTier String
    (Updatable) The storage tier that the object should be stored in. If not specified, the object will be stored in the same storage tier as the bucket.
    bucket string
    The name of the bucket for the source object.
    namespace string
    The top-level namespace of the source object.
    object string
    The name of the source object.
    cacheControl string
    The optional Cache-Control header that defines the caching behavior value to be returned in GetObject and HeadObject responses. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to identify objects that require caching restrictions.
    content string
    The object to upload to the object store. Cannot be defined if source or source_uri_details is defined.
    contentDisposition string
    The optional Content-Disposition header that defines presentational information for the object to be returned in GetObject and HeadObject responses. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to let users download objects with custom filenames in a browser.
    contentEncoding string
    The optional Content-Encoding header that defines the content encodings that were applied to the object to upload. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to determine what decoding mechanisms need to be applied to obtain the media-type specified by the Content-Type header of the object.
    contentLanguage string
    The optional Content-Language header that defines the content language of the object to upload. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to identify and differentiate objects based on a particular language.
    contentMd5 string

    (Updatable) The optional base-64 header that defines the encoded MD5 hash of the body. If the optional Content-MD5 header is present, Object Storage performs an integrity check on the body of the HTTP request by computing the MD5 hash for the body and comparing it to the MD5 hash supplied in the header. If the two hashes do not match, the object is rejected and an HTTP-400 Unmatched Content MD5 error is returned with the message:

    "The computed MD5 of the request body (ACTUAL_MD5) does not match the Content-MD5 header (HEADER_MD5)"

    contentType string
    The optional Content-Type header that defines the standard MIME type format of the object. Content type defaults to 'application/octet-stream' if not specified in the PutObject call. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to identify and perform special operations on text only objects.
    deleteAllObjectVersions boolean
    (Updatable) A boolean to delete all object versions for an object in a bucket that has or ever had versioning enabled.
    metadata {[key: string]: any}
    Optional user-defined metadata key and value. Note: All specified keys must be in lower case.
    opcSseKmsKeyId string
    (Updatable) The OCID of a master encryption key used to call the Key Management service to generate a data encryption key or to encrypt or decrypt a data encryption key.
    source string
    An absolute path to a file on the local system. Cannot be defined if content or source_uri_details is defined.
    sourceUriDetails StorageObjectSourceUriDetails
    Details of the source URI of the object in the cloud. Cannot be defined if content or source is defined. Note: To enable object copy, you must authorize the service to manage objects on your behalf.
    storageTier string
    (Updatable) The storage tier that the object should be stored in. If not specified, the object will be stored in the same storage tier as the bucket.
    bucket str
    The name of the bucket for the source object.
    namespace str
    The top-level namespace of the source object.
    object str
    The name of the source object.
    cache_control str
    The optional Cache-Control header that defines the caching behavior value to be returned in GetObject and HeadObject responses. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to identify objects that require caching restrictions.
    content str
    The object to upload to the object store. Cannot be defined if source or source_uri_details is defined.
    content_disposition str
    The optional Content-Disposition header that defines presentational information for the object to be returned in GetObject and HeadObject responses. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to let users download objects with custom filenames in a browser.
    content_encoding str
    The optional Content-Encoding header that defines the content encodings that were applied to the object to upload. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to determine what decoding mechanisms need to be applied to obtain the media-type specified by the Content-Type header of the object.
    content_language str
    The optional Content-Language header that defines the content language of the object to upload. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to identify and differentiate objects based on a particular language.
    content_md5 str

    (Updatable) The optional base-64 header that defines the encoded MD5 hash of the body. If the optional Content-MD5 header is present, Object Storage performs an integrity check on the body of the HTTP request by computing the MD5 hash for the body and comparing it to the MD5 hash supplied in the header. If the two hashes do not match, the object is rejected and an HTTP-400 Unmatched Content MD5 error is returned with the message:

    "The computed MD5 of the request body (ACTUAL_MD5) does not match the Content-MD5 header (HEADER_MD5)"

    content_type str
    The optional Content-Type header that defines the standard MIME type format of the object. Content type defaults to 'application/octet-stream' if not specified in the PutObject call. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to identify and perform special operations on text only objects.
    delete_all_object_versions bool
    (Updatable) A boolean to delete all object versions for an object in a bucket that has or ever had versioning enabled.
    metadata Mapping[str, Any]
    Optional user-defined metadata key and value. Note: All specified keys must be in lower case.
    opc_sse_kms_key_id str
    (Updatable) The OCID of a master encryption key used to call the Key Management service to generate a data encryption key or to encrypt or decrypt a data encryption key.
    source str
    An absolute path to a file on the local system. Cannot be defined if content or source_uri_details is defined.
    source_uri_details objectstorage.StorageObjectSourceUriDetailsArgs
    Details of the source URI of the object in the cloud. Cannot be defined if content or source is defined. Note: To enable object copy, you must authorize the service to manage objects on your behalf.
    storage_tier str
    (Updatable) The storage tier that the object should be stored in. If not specified, the object will be stored in the same storage tier as the bucket.
    bucket String
    The name of the bucket for the source object.
    namespace String
    The top-level namespace of the source object.
    object String
    The name of the source object.
    cacheControl String
    The optional Cache-Control header that defines the caching behavior value to be returned in GetObject and HeadObject responses. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to identify objects that require caching restrictions.
    content String
    The object to upload to the object store. Cannot be defined if source or source_uri_details is defined.
    contentDisposition String
    The optional Content-Disposition header that defines presentational information for the object to be returned in GetObject and HeadObject responses. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to let users download objects with custom filenames in a browser.
    contentEncoding String
    The optional Content-Encoding header that defines the content encodings that were applied to the object to upload. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to determine what decoding mechanisms need to be applied to obtain the media-type specified by the Content-Type header of the object.
    contentLanguage String
    The optional Content-Language header that defines the content language of the object to upload. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to identify and differentiate objects based on a particular language.
    contentMd5 String

    (Updatable) The optional base-64 header that defines the encoded MD5 hash of the body. If the optional Content-MD5 header is present, Object Storage performs an integrity check on the body of the HTTP request by computing the MD5 hash for the body and comparing it to the MD5 hash supplied in the header. If the two hashes do not match, the object is rejected and an HTTP-400 Unmatched Content MD5 error is returned with the message:

    "The computed MD5 of the request body (ACTUAL_MD5) does not match the Content-MD5 header (HEADER_MD5)"

    contentType String
    The optional Content-Type header that defines the standard MIME type format of the object. Content type defaults to 'application/octet-stream' if not specified in the PutObject call. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to identify and perform special operations on text only objects.
    deleteAllObjectVersions Boolean
    (Updatable) A boolean to delete all object versions for an object in a bucket that has or ever had versioning enabled.
    metadata Map<Any>
    Optional user-defined metadata key and value. Note: All specified keys must be in lower case.
    opcSseKmsKeyId String
    (Updatable) The OCID of a master encryption key used to call the Key Management service to generate a data encryption key or to encrypt or decrypt a data encryption key.
    source String
    An absolute path to a file on the local system. Cannot be defined if content or source_uri_details is defined.
    sourceUriDetails Property Map
    Details of the source URI of the object in the cloud. Cannot be defined if content or source is defined. Note: To enable object copy, you must authorize the service to manage objects on your behalf.
    storageTier String
    (Updatable) The storage tier that the object should be stored in. If not specified, the object will be stored in the same storage tier as the bucket.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the StorageObject resource produces the following output properties:

    ContentLength string
    (Updatable) The content length of the body.
    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    VersionId string
    WorkRequestId string
    ContentLength string
    (Updatable) The content length of the body.
    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    VersionId string
    WorkRequestId string
    contentLength String
    (Updatable) The content length of the body.
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    versionId String
    workRequestId String
    contentLength string
    (Updatable) The content length of the body.
    id string
    The provider-assigned unique ID for this managed resource.
    state string
    versionId string
    workRequestId string
    content_length str
    (Updatable) The content length of the body.
    id str
    The provider-assigned unique ID for this managed resource.
    state str
    version_id str
    work_request_id str
    contentLength String
    (Updatable) The content length of the body.
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    versionId String
    workRequestId String

    Look up Existing StorageObject Resource

    Get an existing StorageObject 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?: StorageObjectState, opts?: CustomResourceOptions): StorageObject
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = 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_language: Optional[str] = None,
            content_length: Optional[str] = None,
            content_md5: Optional[str] = None,
            content_type: Optional[str] = None,
            delete_all_object_versions: Optional[bool] = None,
            metadata: Optional[Mapping[str, Any]] = None,
            namespace: Optional[str] = None,
            object: Optional[str] = None,
            opc_sse_kms_key_id: Optional[str] = None,
            source: Optional[str] = None,
            source_uri_details: Optional[_objectstorage.StorageObjectSourceUriDetailsArgs] = None,
            state: Optional[str] = None,
            storage_tier: Optional[str] = None,
            version_id: Optional[str] = None,
            work_request_id: Optional[str] = None) -> StorageObject
    func GetStorageObject(ctx *Context, name string, id IDInput, state *StorageObjectState, opts ...ResourceOption) (*StorageObject, error)
    public static StorageObject Get(string name, Input<string> id, StorageObjectState? state, CustomResourceOptions? opts = null)
    public static StorageObject get(String name, Output<String> id, StorageObjectState 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.
    The following state arguments are supported:
    Bucket string
    The name of the bucket for the source object.
    CacheControl string
    The optional Cache-Control header that defines the caching behavior value to be returned in GetObject and HeadObject responses. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to identify objects that require caching restrictions.
    Content string
    The object to upload to the object store. Cannot be defined if source or source_uri_details is defined.
    ContentDisposition string
    The optional Content-Disposition header that defines presentational information for the object to be returned in GetObject and HeadObject responses. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to let users download objects with custom filenames in a browser.
    ContentEncoding string
    The optional Content-Encoding header that defines the content encodings that were applied to the object to upload. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to determine what decoding mechanisms need to be applied to obtain the media-type specified by the Content-Type header of the object.
    ContentLanguage string
    The optional Content-Language header that defines the content language of the object to upload. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to identify and differentiate objects based on a particular language.
    ContentLength string
    (Updatable) The content length of the body.
    ContentMd5 string

    (Updatable) The optional base-64 header that defines the encoded MD5 hash of the body. If the optional Content-MD5 header is present, Object Storage performs an integrity check on the body of the HTTP request by computing the MD5 hash for the body and comparing it to the MD5 hash supplied in the header. If the two hashes do not match, the object is rejected and an HTTP-400 Unmatched Content MD5 error is returned with the message:

    "The computed MD5 of the request body (ACTUAL_MD5) does not match the Content-MD5 header (HEADER_MD5)"

    ContentType string
    The optional Content-Type header that defines the standard MIME type format of the object. Content type defaults to 'application/octet-stream' if not specified in the PutObject call. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to identify and perform special operations on text only objects.
    DeleteAllObjectVersions bool
    (Updatable) A boolean to delete all object versions for an object in a bucket that has or ever had versioning enabled.
    Metadata Dictionary<string, object>
    Optional user-defined metadata key and value. Note: All specified keys must be in lower case.
    Namespace string
    The top-level namespace of the source object.
    Object string
    The name of the source object.
    OpcSseKmsKeyId string
    (Updatable) The OCID of a master encryption key used to call the Key Management service to generate a data encryption key or to encrypt or decrypt a data encryption key.
    Source string
    An absolute path to a file on the local system. Cannot be defined if content or source_uri_details is defined.
    SourceUriDetails StorageObjectSourceUriDetails
    Details of the source URI of the object in the cloud. Cannot be defined if content or source is defined. Note: To enable object copy, you must authorize the service to manage objects on your behalf.
    State string
    StorageTier string
    (Updatable) The storage tier that the object should be stored in. If not specified, the object will be stored in the same storage tier as the bucket.
    VersionId string
    WorkRequestId string
    Bucket string
    The name of the bucket for the source object.
    CacheControl string
    The optional Cache-Control header that defines the caching behavior value to be returned in GetObject and HeadObject responses. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to identify objects that require caching restrictions.
    Content string
    The object to upload to the object store. Cannot be defined if source or source_uri_details is defined.
    ContentDisposition string
    The optional Content-Disposition header that defines presentational information for the object to be returned in GetObject and HeadObject responses. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to let users download objects with custom filenames in a browser.
    ContentEncoding string
    The optional Content-Encoding header that defines the content encodings that were applied to the object to upload. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to determine what decoding mechanisms need to be applied to obtain the media-type specified by the Content-Type header of the object.
    ContentLanguage string
    The optional Content-Language header that defines the content language of the object to upload. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to identify and differentiate objects based on a particular language.
    ContentLength string
    (Updatable) The content length of the body.
    ContentMd5 string

    (Updatable) The optional base-64 header that defines the encoded MD5 hash of the body. If the optional Content-MD5 header is present, Object Storage performs an integrity check on the body of the HTTP request by computing the MD5 hash for the body and comparing it to the MD5 hash supplied in the header. If the two hashes do not match, the object is rejected and an HTTP-400 Unmatched Content MD5 error is returned with the message:

    "The computed MD5 of the request body (ACTUAL_MD5) does not match the Content-MD5 header (HEADER_MD5)"

    ContentType string
    The optional Content-Type header that defines the standard MIME type format of the object. Content type defaults to 'application/octet-stream' if not specified in the PutObject call. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to identify and perform special operations on text only objects.
    DeleteAllObjectVersions bool
    (Updatable) A boolean to delete all object versions for an object in a bucket that has or ever had versioning enabled.
    Metadata map[string]interface{}
    Optional user-defined metadata key and value. Note: All specified keys must be in lower case.
    Namespace string
    The top-level namespace of the source object.
    Object string
    The name of the source object.
    OpcSseKmsKeyId string
    (Updatable) The OCID of a master encryption key used to call the Key Management service to generate a data encryption key or to encrypt or decrypt a data encryption key.
    Source string
    An absolute path to a file on the local system. Cannot be defined if content or source_uri_details is defined.
    SourceUriDetails StorageObjectSourceUriDetailsArgs
    Details of the source URI of the object in the cloud. Cannot be defined if content or source is defined. Note: To enable object copy, you must authorize the service to manage objects on your behalf.
    State string
    StorageTier string
    (Updatable) The storage tier that the object should be stored in. If not specified, the object will be stored in the same storage tier as the bucket.
    VersionId string
    WorkRequestId string
    bucket String
    The name of the bucket for the source object.
    cacheControl String
    The optional Cache-Control header that defines the caching behavior value to be returned in GetObject and HeadObject responses. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to identify objects that require caching restrictions.
    content String
    The object to upload to the object store. Cannot be defined if source or source_uri_details is defined.
    contentDisposition String
    The optional Content-Disposition header that defines presentational information for the object to be returned in GetObject and HeadObject responses. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to let users download objects with custom filenames in a browser.
    contentEncoding String
    The optional Content-Encoding header that defines the content encodings that were applied to the object to upload. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to determine what decoding mechanisms need to be applied to obtain the media-type specified by the Content-Type header of the object.
    contentLanguage String
    The optional Content-Language header that defines the content language of the object to upload. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to identify and differentiate objects based on a particular language.
    contentLength String
    (Updatable) The content length of the body.
    contentMd5 String

    (Updatable) The optional base-64 header that defines the encoded MD5 hash of the body. If the optional Content-MD5 header is present, Object Storage performs an integrity check on the body of the HTTP request by computing the MD5 hash for the body and comparing it to the MD5 hash supplied in the header. If the two hashes do not match, the object is rejected and an HTTP-400 Unmatched Content MD5 error is returned with the message:

    "The computed MD5 of the request body (ACTUAL_MD5) does not match the Content-MD5 header (HEADER_MD5)"

    contentType String
    The optional Content-Type header that defines the standard MIME type format of the object. Content type defaults to 'application/octet-stream' if not specified in the PutObject call. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to identify and perform special operations on text only objects.
    deleteAllObjectVersions Boolean
    (Updatable) A boolean to delete all object versions for an object in a bucket that has or ever had versioning enabled.
    metadata Map<String,Object>
    Optional user-defined metadata key and value. Note: All specified keys must be in lower case.
    namespace String
    The top-level namespace of the source object.
    object String
    The name of the source object.
    opcSseKmsKeyId String
    (Updatable) The OCID of a master encryption key used to call the Key Management service to generate a data encryption key or to encrypt or decrypt a data encryption key.
    source String
    An absolute path to a file on the local system. Cannot be defined if content or source_uri_details is defined.
    sourceUriDetails StorageObjectSourceUriDetails
    Details of the source URI of the object in the cloud. Cannot be defined if content or source is defined. Note: To enable object copy, you must authorize the service to manage objects on your behalf.
    state String
    storageTier String
    (Updatable) The storage tier that the object should be stored in. If not specified, the object will be stored in the same storage tier as the bucket.
    versionId String
    workRequestId String
    bucket string
    The name of the bucket for the source object.
    cacheControl string
    The optional Cache-Control header that defines the caching behavior value to be returned in GetObject and HeadObject responses. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to identify objects that require caching restrictions.
    content string
    The object to upload to the object store. Cannot be defined if source or source_uri_details is defined.
    contentDisposition string
    The optional Content-Disposition header that defines presentational information for the object to be returned in GetObject and HeadObject responses. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to let users download objects with custom filenames in a browser.
    contentEncoding string
    The optional Content-Encoding header that defines the content encodings that were applied to the object to upload. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to determine what decoding mechanisms need to be applied to obtain the media-type specified by the Content-Type header of the object.
    contentLanguage string
    The optional Content-Language header that defines the content language of the object to upload. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to identify and differentiate objects based on a particular language.
    contentLength string
    (Updatable) The content length of the body.
    contentMd5 string

    (Updatable) The optional base-64 header that defines the encoded MD5 hash of the body. If the optional Content-MD5 header is present, Object Storage performs an integrity check on the body of the HTTP request by computing the MD5 hash for the body and comparing it to the MD5 hash supplied in the header. If the two hashes do not match, the object is rejected and an HTTP-400 Unmatched Content MD5 error is returned with the message:

    "The computed MD5 of the request body (ACTUAL_MD5) does not match the Content-MD5 header (HEADER_MD5)"

    contentType string
    The optional Content-Type header that defines the standard MIME type format of the object. Content type defaults to 'application/octet-stream' if not specified in the PutObject call. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to identify and perform special operations on text only objects.
    deleteAllObjectVersions boolean
    (Updatable) A boolean to delete all object versions for an object in a bucket that has or ever had versioning enabled.
    metadata {[key: string]: any}
    Optional user-defined metadata key and value. Note: All specified keys must be in lower case.
    namespace string
    The top-level namespace of the source object.
    object string
    The name of the source object.
    opcSseKmsKeyId string
    (Updatable) The OCID of a master encryption key used to call the Key Management service to generate a data encryption key or to encrypt or decrypt a data encryption key.
    source string
    An absolute path to a file on the local system. Cannot be defined if content or source_uri_details is defined.
    sourceUriDetails StorageObjectSourceUriDetails
    Details of the source URI of the object in the cloud. Cannot be defined if content or source is defined. Note: To enable object copy, you must authorize the service to manage objects on your behalf.
    state string
    storageTier string
    (Updatable) The storage tier that the object should be stored in. If not specified, the object will be stored in the same storage tier as the bucket.
    versionId string
    workRequestId string
    bucket str
    The name of the bucket for the source object.
    cache_control str
    The optional Cache-Control header that defines the caching behavior value to be returned in GetObject and HeadObject responses. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to identify objects that require caching restrictions.
    content str
    The object to upload to the object store. Cannot be defined if source or source_uri_details is defined.
    content_disposition str
    The optional Content-Disposition header that defines presentational information for the object to be returned in GetObject and HeadObject responses. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to let users download objects with custom filenames in a browser.
    content_encoding str
    The optional Content-Encoding header that defines the content encodings that were applied to the object to upload. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to determine what decoding mechanisms need to be applied to obtain the media-type specified by the Content-Type header of the object.
    content_language str
    The optional Content-Language header that defines the content language of the object to upload. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to identify and differentiate objects based on a particular language.
    content_length str
    (Updatable) The content length of the body.
    content_md5 str

    (Updatable) The optional base-64 header that defines the encoded MD5 hash of the body. If the optional Content-MD5 header is present, Object Storage performs an integrity check on the body of the HTTP request by computing the MD5 hash for the body and comparing it to the MD5 hash supplied in the header. If the two hashes do not match, the object is rejected and an HTTP-400 Unmatched Content MD5 error is returned with the message:

    "The computed MD5 of the request body (ACTUAL_MD5) does not match the Content-MD5 header (HEADER_MD5)"

    content_type str
    The optional Content-Type header that defines the standard MIME type format of the object. Content type defaults to 'application/octet-stream' if not specified in the PutObject call. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to identify and perform special operations on text only objects.
    delete_all_object_versions bool
    (Updatable) A boolean to delete all object versions for an object in a bucket that has or ever had versioning enabled.
    metadata Mapping[str, Any]
    Optional user-defined metadata key and value. Note: All specified keys must be in lower case.
    namespace str
    The top-level namespace of the source object.
    object str
    The name of the source object.
    opc_sse_kms_key_id str
    (Updatable) The OCID of a master encryption key used to call the Key Management service to generate a data encryption key or to encrypt or decrypt a data encryption key.
    source str
    An absolute path to a file on the local system. Cannot be defined if content or source_uri_details is defined.
    source_uri_details objectstorage.StorageObjectSourceUriDetailsArgs
    Details of the source URI of the object in the cloud. Cannot be defined if content or source is defined. Note: To enable object copy, you must authorize the service to manage objects on your behalf.
    state str
    storage_tier str
    (Updatable) The storage tier that the object should be stored in. If not specified, the object will be stored in the same storage tier as the bucket.
    version_id str
    work_request_id str
    bucket String
    The name of the bucket for the source object.
    cacheControl String
    The optional Cache-Control header that defines the caching behavior value to be returned in GetObject and HeadObject responses. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to identify objects that require caching restrictions.
    content String
    The object to upload to the object store. Cannot be defined if source or source_uri_details is defined.
    contentDisposition String
    The optional Content-Disposition header that defines presentational information for the object to be returned in GetObject and HeadObject responses. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to let users download objects with custom filenames in a browser.
    contentEncoding String
    The optional Content-Encoding header that defines the content encodings that were applied to the object to upload. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to determine what decoding mechanisms need to be applied to obtain the media-type specified by the Content-Type header of the object.
    contentLanguage String
    The optional Content-Language header that defines the content language of the object to upload. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to identify and differentiate objects based on a particular language.
    contentLength String
    (Updatable) The content length of the body.
    contentMd5 String

    (Updatable) The optional base-64 header that defines the encoded MD5 hash of the body. If the optional Content-MD5 header is present, Object Storage performs an integrity check on the body of the HTTP request by computing the MD5 hash for the body and comparing it to the MD5 hash supplied in the header. If the two hashes do not match, the object is rejected and an HTTP-400 Unmatched Content MD5 error is returned with the message:

    "The computed MD5 of the request body (ACTUAL_MD5) does not match the Content-MD5 header (HEADER_MD5)"

    contentType String
    The optional Content-Type header that defines the standard MIME type format of the object. Content type defaults to 'application/octet-stream' if not specified in the PutObject call. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to identify and perform special operations on text only objects.
    deleteAllObjectVersions Boolean
    (Updatable) A boolean to delete all object versions for an object in a bucket that has or ever had versioning enabled.
    metadata Map<Any>
    Optional user-defined metadata key and value. Note: All specified keys must be in lower case.
    namespace String
    The top-level namespace of the source object.
    object String
    The name of the source object.
    opcSseKmsKeyId String
    (Updatable) The OCID of a master encryption key used to call the Key Management service to generate a data encryption key or to encrypt or decrypt a data encryption key.
    source String
    An absolute path to a file on the local system. Cannot be defined if content or source_uri_details is defined.
    sourceUriDetails Property Map
    Details of the source URI of the object in the cloud. Cannot be defined if content or source is defined. Note: To enable object copy, you must authorize the service to manage objects on your behalf.
    state String
    storageTier String
    (Updatable) The storage tier that the object should be stored in. If not specified, the object will be stored in the same storage tier as the bucket.
    versionId String
    workRequestId String

    Supporting Types

    StorageObjectSourceUriDetails, StorageObjectSourceUriDetailsArgs

    Bucket string
    The name of the bucket for the source object.
    Namespace string
    The top-level namespace of the source object.
    Object string
    The name of the source object.
    Region string
    The region of the source object.
    DestinationObjectIfMatchEtag string
    The entity tag to match the target object.
    DestinationObjectIfNoneMatchEtag string
    The entity tag to not match the target object.
    SourceObjectIfMatchEtag string
    The entity tag to match the source object.
    SourceVersionId string

    The version id of the object to be restored.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Bucket string
    The name of the bucket for the source object.
    Namespace string
    The top-level namespace of the source object.
    Object string
    The name of the source object.
    Region string
    The region of the source object.
    DestinationObjectIfMatchEtag string
    The entity tag to match the target object.
    DestinationObjectIfNoneMatchEtag string
    The entity tag to not match the target object.
    SourceObjectIfMatchEtag string
    The entity tag to match the source object.
    SourceVersionId string

    The version id of the object to be restored.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    bucket String
    The name of the bucket for the source object.
    namespace String
    The top-level namespace of the source object.
    object String
    The name of the source object.
    region String
    The region of the source object.
    destinationObjectIfMatchEtag String
    The entity tag to match the target object.
    destinationObjectIfNoneMatchEtag String
    The entity tag to not match the target object.
    sourceObjectIfMatchEtag String
    The entity tag to match the source object.
    sourceVersionId String

    The version id of the object to be restored.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    bucket string
    The name of the bucket for the source object.
    namespace string
    The top-level namespace of the source object.
    object string
    The name of the source object.
    region string
    The region of the source object.
    destinationObjectIfMatchEtag string
    The entity tag to match the target object.
    destinationObjectIfNoneMatchEtag string
    The entity tag to not match the target object.
    sourceObjectIfMatchEtag string
    The entity tag to match the source object.
    sourceVersionId string

    The version id of the object to be restored.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    bucket str
    The name of the bucket for the source object.
    namespace str
    The top-level namespace of the source object.
    object str
    The name of the source object.
    region str
    The region of the source object.
    destination_object_if_match_etag str
    The entity tag to match the target object.
    destination_object_if_none_match_etag str
    The entity tag to not match the target object.
    source_object_if_match_etag str
    The entity tag to match the source object.
    source_version_id str

    The version id of the object to be restored.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    bucket String
    The name of the bucket for the source object.
    namespace String
    The top-level namespace of the source object.
    object String
    The name of the source object.
    region String
    The region of the source object.
    destinationObjectIfMatchEtag String
    The entity tag to match the target object.
    destinationObjectIfNoneMatchEtag String
    The entity tag to not match the target object.
    sourceObjectIfMatchEtag String
    The entity tag to match the source object.
    sourceVersionId String

    The version id of the object to be restored.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Import

    Objects can be imported using the id, e.g.

    $ pulumi import oci:ObjectStorage/storageObject:StorageObject test_object "n/{namespaceName}/b/{bucketName}/o/{objectName}"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi