1. Packages
  2. Packages
  3. Ionoscloud
  4. API Docs
  5. objectstorage
  6. ObjectCopy
Viewing docs for IonosCloud v0.3.0
published on Wednesday, Apr 15, 2026 by ionos-cloud
ionoscloud logo
Viewing docs for IonosCloud v0.3.0
published on Wednesday, Apr 15, 2026 by ionos-cloud

    Creates a copy of an object that is already stored in IONOS Object Storage.

    ⚠️ Note: The Terraform provider only supports contract-owned buckets. User-owned buckets are not supported, and there are no plans to introduce support for them. As a result, user-owned buckets cannot be created, updated, deleted, read, or imported using this provider.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ionoscloud from "@ionos-cloud/sdk-pulumi";
    
    const source = new ionoscloud.objectstorage.Bucket("source", {name: "source"});
    const target = new ionoscloud.objectstorage.Bucket("target", {name: "target"});
    const sourceBucketObject = new ionoscloud.objectstorage.BucketObject("source", {
        bucket: source.name,
        key: "source_object",
        content: "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",
        contentType: "application/octet-stream",
    });
    const example = new ionoscloud.objectstorage.ObjectCopy("example", {
        bucket: target.name,
        key: "example",
        source: pulumi.interpolate`${source.name}/${sourceBucketObject.key}`,
    });
    
    import pulumi
    import pulumi_ionoscloud as ionoscloud
    
    source = ionoscloud.objectstorage.Bucket("source", name="source")
    target = ionoscloud.objectstorage.Bucket("target", name="target")
    source_bucket_object = ionoscloud.objectstorage.BucketObject("source",
        bucket=source.name,
        key="source_object",
        content="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",
        content_type="application/octet-stream")
    example = ionoscloud.objectstorage.ObjectCopy("example",
        bucket=target.name,
        key="example",
        source=pulumi.Output.all(
            name=source.name,
            key=source_bucket_object.key
    ).apply(lambda resolved_outputs: f"{resolved_outputs['name']}/{resolved_outputs['key']}")
    )
    
    package main
    
    import (
    	"fmt"
    
    	"github.com/ionos-cloud/pulumi-ionoscloud/sdk/go/ionoscloud/objectstorage"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		source, err := objectstorage.NewBucket(ctx, "source", &objectstorage.BucketArgs{
    			Name: pulumi.String("source"),
    		})
    		if err != nil {
    			return err
    		}
    		target, err := objectstorage.NewBucket(ctx, "target", &objectstorage.BucketArgs{
    			Name: pulumi.String("target"),
    		})
    		if err != nil {
    			return err
    		}
    		sourceBucketObject, err := objectstorage.NewBucketObject(ctx, "source", &objectstorage.BucketObjectArgs{
    			Bucket:      source.Name,
    			Key:         pulumi.String("source_object"),
    			Content:     pulumi.String("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"),
    			ContentType: pulumi.String("application/octet-stream"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = objectstorage.NewObjectCopy(ctx, "example", &objectstorage.ObjectCopyArgs{
    			Bucket: target.Name,
    			Key:    pulumi.String("example"),
    			Source: pulumi.All(source.Name, sourceBucketObject.Key).ApplyT(func(_args []interface{}) (string, error) {
    				name := _args[0].(string)
    				key := _args[1].(string)
    				return fmt.Sprintf("%v/%v", name, key), nil
    			}).(pulumi.StringOutput),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ionoscloud = Ionoscloud.Pulumi.Ionoscloud;
    
    return await Deployment.RunAsync(() => 
    {
        var source = new Ionoscloud.Objectstorage.Bucket("source", new()
        {
            Name = "source",
        });
    
        var target = new Ionoscloud.Objectstorage.Bucket("target", new()
        {
            Name = "target",
        });
    
        var sourceBucketObject = new Ionoscloud.Objectstorage.BucketObject("source", new()
        {
            Bucket = source.Name,
            Key = "source_object",
            Content = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",
            ContentType = "application/octet-stream",
        });
    
        var example = new Ionoscloud.Objectstorage.ObjectCopy("example", new()
        {
            Bucket = target.Name,
            Key = "example",
            Source = Output.Tuple(source.Name, sourceBucketObject.Key).Apply(values =>
            {
                var name = values.Item1;
                var key = values.Item2;
                return $"{name}/{key}";
            }),
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.ionoscloud.pulumi.ionoscloud.objectstorage.Bucket;
    import com.ionoscloud.pulumi.ionoscloud.objectstorage.BucketArgs;
    import com.ionoscloud.pulumi.ionoscloud.objectstorage.BucketObject;
    import com.ionoscloud.pulumi.ionoscloud.objectstorage.BucketObjectArgs;
    import com.ionoscloud.pulumi.ionoscloud.objectstorage.ObjectCopy;
    import com.ionoscloud.pulumi.ionoscloud.objectstorage.ObjectCopyArgs;
    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 source = new Bucket("source", BucketArgs.builder()
                .name("source")
                .build());
    
            var target = new Bucket("target", BucketArgs.builder()
                .name("target")
                .build());
    
            var sourceBucketObject = new BucketObject("sourceBucketObject", BucketObjectArgs.builder()
                .bucket(source.name())
                .key("source_object")
                .content("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")
                .contentType("application/octet-stream")
                .build());
    
            var example = new ObjectCopy("example", ObjectCopyArgs.builder()
                .bucket(target.name())
                .key("example")
                .source(Output.tuple(source.name(), sourceBucketObject.key()).applyValue(values -> {
                    var name = values.t1;
                    var key = values.t2;
                    return String.format("%s/%s", name,key);
                }))
                .build());
    
        }
    }
    
    resources:
      source:
        type: ionoscloud:objectstorage:Bucket
        properties:
          name: source
      target:
        type: ionoscloud:objectstorage:Bucket
        properties:
          name: target
      sourceBucketObject:
        type: ionoscloud:objectstorage:BucketObject
        name: source
        properties:
          bucket: ${source.name}
          key: source_object
          content: 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
          contentType: application/octet-stream
      example:
        type: ionoscloud:objectstorage:ObjectCopy
        properties:
          bucket: ${target.name}
          key: example
          source: ${source.name}/${sourceBucketObject.key}
    
    Example coming soon!
    

    Create ObjectCopy Resource

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

    Constructor syntax

    new ObjectCopy(name: string, args: ObjectCopyArgs, opts?: CustomResourceOptions);
    @overload
    def ObjectCopy(resource_name: str,
                   args: ObjectCopyArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def ObjectCopy(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   key: Optional[str] = None,
                   source: Optional[str] = None,
                   bucket: Optional[str] = None,
                   metadata_directive: Optional[str] = None,
                   object_lock_mode: Optional[str] = None,
                   content_type: Optional[str] = None,
                   copy_if_match: Optional[str] = None,
                   copy_if_modified_since: Optional[str] = None,
                   copy_if_none_match: Optional[str] = None,
                   copy_if_unmodified_since: Optional[str] = None,
                   expires: Optional[str] = None,
                   force_destroy: Optional[bool] = None,
                   content_encoding: Optional[str] = None,
                   metadata: Optional[Mapping[str, str]] = None,
                   content_disposition: Optional[str] = None,
                   object_lock_legal_hold: Optional[str] = None,
                   content_language: Optional[str] = None,
                   object_lock_retain_until_date: Optional[str] = None,
                   server_side_encryption: Optional[str] = None,
                   server_side_encryption_customer_algorithm: Optional[str] = None,
                   server_side_encryption_customer_key: Optional[str] = None,
                   server_side_encryption_customer_key_md5: Optional[str] = None,
                   cache_control: Optional[str] = None,
                   source_customer_algorithm: Optional[str] = None,
                   source_customer_key: Optional[str] = None,
                   source_customer_key_md5: Optional[str] = None,
                   storage_class: Optional[str] = None,
                   tagging_directive: Optional[str] = None,
                   tags: Optional[Mapping[str, str]] = None,
                   website_redirect: Optional[str] = None)
    func NewObjectCopy(ctx *Context, name string, args ObjectCopyArgs, opts ...ResourceOption) (*ObjectCopy, error)
    public ObjectCopy(string name, ObjectCopyArgs args, CustomResourceOptions? opts = null)
    public ObjectCopy(String name, ObjectCopyArgs args)
    public ObjectCopy(String name, ObjectCopyArgs args, CustomResourceOptions options)
    
    type: ionoscloud:objectstorage:ObjectCopy
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "ionoscloud_objectstorage_objectcopy" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args ObjectCopyArgs
    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 ObjectCopyArgs
    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 ObjectCopyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ObjectCopyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ObjectCopyArgs
    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 objectCopyResource = new Ionoscloud.Objectstorage.ObjectCopy("objectCopyResource", new()
    {
        Key = "string",
        Source = "string",
        Bucket = "string",
        MetadataDirective = "string",
        ObjectLockMode = "string",
        ContentType = "string",
        CopyIfMatch = "string",
        CopyIfModifiedSince = "string",
        CopyIfNoneMatch = "string",
        CopyIfUnmodifiedSince = "string",
        Expires = "string",
        ForceDestroy = false,
        ContentEncoding = "string",
        Metadata = 
        {
            { "string", "string" },
        },
        ContentDisposition = "string",
        ObjectLockLegalHold = "string",
        ContentLanguage = "string",
        ObjectLockRetainUntilDate = "string",
        ServerSideEncryption = "string",
        ServerSideEncryptionCustomerAlgorithm = "string",
        ServerSideEncryptionCustomerKey = "string",
        ServerSideEncryptionCustomerKeyMd5 = "string",
        CacheControl = "string",
        SourceCustomerAlgorithm = "string",
        SourceCustomerKey = "string",
        SourceCustomerKeyMd5 = "string",
        StorageClass = "string",
        TaggingDirective = "string",
        Tags = 
        {
            { "string", "string" },
        },
        WebsiteRedirect = "string",
    });
    
    example, err := objectstorage.NewObjectCopy(ctx, "objectCopyResource", &objectstorage.ObjectCopyArgs{
    	Key:                   pulumi.String("string"),
    	Source:                pulumi.String("string"),
    	Bucket:                pulumi.String("string"),
    	MetadataDirective:     pulumi.String("string"),
    	ObjectLockMode:        pulumi.String("string"),
    	ContentType:           pulumi.String("string"),
    	CopyIfMatch:           pulumi.String("string"),
    	CopyIfModifiedSince:   pulumi.String("string"),
    	CopyIfNoneMatch:       pulumi.String("string"),
    	CopyIfUnmodifiedSince: pulumi.String("string"),
    	Expires:               pulumi.String("string"),
    	ForceDestroy:          pulumi.Bool(false),
    	ContentEncoding:       pulumi.String("string"),
    	Metadata: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	ContentDisposition:                    pulumi.String("string"),
    	ObjectLockLegalHold:                   pulumi.String("string"),
    	ContentLanguage:                       pulumi.String("string"),
    	ObjectLockRetainUntilDate:             pulumi.String("string"),
    	ServerSideEncryption:                  pulumi.String("string"),
    	ServerSideEncryptionCustomerAlgorithm: pulumi.String("string"),
    	ServerSideEncryptionCustomerKey:       pulumi.String("string"),
    	ServerSideEncryptionCustomerKeyMd5:    pulumi.String("string"),
    	CacheControl:                          pulumi.String("string"),
    	SourceCustomerAlgorithm:               pulumi.String("string"),
    	SourceCustomerKey:                     pulumi.String("string"),
    	SourceCustomerKeyMd5:                  pulumi.String("string"),
    	StorageClass:                          pulumi.String("string"),
    	TaggingDirective:                      pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	WebsiteRedirect: pulumi.String("string"),
    })
    
    resource "ionoscloud_objectstorage_objectcopy" "objectCopyResource" {
      key                      = "string"
      source                   = "string"
      bucket                   = "string"
      metadata_directive       = "string"
      object_lock_mode         = "string"
      content_type             = "string"
      copy_if_match            = "string"
      copy_if_modified_since   = "string"
      copy_if_none_match       = "string"
      copy_if_unmodified_since = "string"
      expires                  = "string"
      force_destroy            = false
      content_encoding         = "string"
      metadata = {
        "string" = "string"
      }
      content_disposition                       = "string"
      object_lock_legal_hold                    = "string"
      content_language                          = "string"
      object_lock_retain_until_date             = "string"
      server_side_encryption                    = "string"
      server_side_encryption_customer_algorithm = "string"
      server_side_encryption_customer_key       = "string"
      server_side_encryption_customer_key_md5   = "string"
      cache_control                             = "string"
      source_customer_algorithm                 = "string"
      source_customer_key                       = "string"
      source_customer_key_md5                   = "string"
      storage_class                             = "string"
      tagging_directive                         = "string"
      tags = {
        "string" = "string"
      }
      website_redirect = "string"
    }
    
    var objectCopyResource = new ObjectCopy("objectCopyResource", ObjectCopyArgs.builder()
        .key("string")
        .source("string")
        .bucket("string")
        .metadataDirective("string")
        .objectLockMode("string")
        .contentType("string")
        .copyIfMatch("string")
        .copyIfModifiedSince("string")
        .copyIfNoneMatch("string")
        .copyIfUnmodifiedSince("string")
        .expires("string")
        .forceDestroy(false)
        .contentEncoding("string")
        .metadata(Map.of("string", "string"))
        .contentDisposition("string")
        .objectLockLegalHold("string")
        .contentLanguage("string")
        .objectLockRetainUntilDate("string")
        .serverSideEncryption("string")
        .serverSideEncryptionCustomerAlgorithm("string")
        .serverSideEncryptionCustomerKey("string")
        .serverSideEncryptionCustomerKeyMd5("string")
        .cacheControl("string")
        .sourceCustomerAlgorithm("string")
        .sourceCustomerKey("string")
        .sourceCustomerKeyMd5("string")
        .storageClass("string")
        .taggingDirective("string")
        .tags(Map.of("string", "string"))
        .websiteRedirect("string")
        .build());
    
    object_copy_resource = ionoscloud.objectstorage.ObjectCopy("objectCopyResource",
        key="string",
        source="string",
        bucket="string",
        metadata_directive="string",
        object_lock_mode="string",
        content_type="string",
        copy_if_match="string",
        copy_if_modified_since="string",
        copy_if_none_match="string",
        copy_if_unmodified_since="string",
        expires="string",
        force_destroy=False,
        content_encoding="string",
        metadata={
            "string": "string",
        },
        content_disposition="string",
        object_lock_legal_hold="string",
        content_language="string",
        object_lock_retain_until_date="string",
        server_side_encryption="string",
        server_side_encryption_customer_algorithm="string",
        server_side_encryption_customer_key="string",
        server_side_encryption_customer_key_md5="string",
        cache_control="string",
        source_customer_algorithm="string",
        source_customer_key="string",
        source_customer_key_md5="string",
        storage_class="string",
        tagging_directive="string",
        tags={
            "string": "string",
        },
        website_redirect="string")
    
    const objectCopyResource = new ionoscloud.objectstorage.ObjectCopy("objectCopyResource", {
        key: "string",
        source: "string",
        bucket: "string",
        metadataDirective: "string",
        objectLockMode: "string",
        contentType: "string",
        copyIfMatch: "string",
        copyIfModifiedSince: "string",
        copyIfNoneMatch: "string",
        copyIfUnmodifiedSince: "string",
        expires: "string",
        forceDestroy: false,
        contentEncoding: "string",
        metadata: {
            string: "string",
        },
        contentDisposition: "string",
        objectLockLegalHold: "string",
        contentLanguage: "string",
        objectLockRetainUntilDate: "string",
        serverSideEncryption: "string",
        serverSideEncryptionCustomerAlgorithm: "string",
        serverSideEncryptionCustomerKey: "string",
        serverSideEncryptionCustomerKeyMd5: "string",
        cacheControl: "string",
        sourceCustomerAlgorithm: "string",
        sourceCustomerKey: "string",
        sourceCustomerKeyMd5: "string",
        storageClass: "string",
        taggingDirective: "string",
        tags: {
            string: "string",
        },
        websiteRedirect: "string",
    });
    
    type: ionoscloud:objectstorage:ObjectCopy
    properties:
        bucket: string
        cacheControl: string
        contentDisposition: string
        contentEncoding: string
        contentLanguage: string
        contentType: string
        copyIfMatch: string
        copyIfModifiedSince: string
        copyIfNoneMatch: string
        copyIfUnmodifiedSince: string
        expires: string
        forceDestroy: false
        key: string
        metadata:
            string: string
        metadataDirective: string
        objectLockLegalHold: string
        objectLockMode: string
        objectLockRetainUntilDate: string
        serverSideEncryption: string
        serverSideEncryptionCustomerAlgorithm: string
        serverSideEncryptionCustomerKey: string
        serverSideEncryptionCustomerKeyMd5: string
        source: string
        sourceCustomerAlgorithm: string
        sourceCustomerKey: string
        sourceCustomerKeyMd5: string
        storageClass: string
        taggingDirective: string
        tags:
            string: string
        websiteRedirect: string
    

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

    Bucket string
    [string] The name of the bucket where the object will be stored. Must be between 3 and 63 characters.
    Key string
    [string] The key of the object. Must be at least 1 character long.
    Source string
    [string] The source of the object to be copied
    CacheControl string
    [string] Specifies caching behavior along the request/reply chain.
    ContentDisposition string
    [string] Specifies presentational information for the object.
    ContentEncoding string
    [string] Specifies what content encodings have been applied to the object.
    ContentLanguage string
    [string] The natural language or languages of the intended audience for the object.
    ContentType string
    [string] A standard MIME type describing the format of the contents.
    CopyIfMatch string
    Copies the object if its entity tag (ETag) matches the specified tag
    CopyIfModifiedSince string
    Copies the object if it has been modified since the specified time
    CopyIfNoneMatch string
    Copies the object if its entity tag (ETag) is different than the specified ETag
    CopyIfUnmodifiedSince string
    Copies the object if it hasn't been modified since the specified time
    Expires string
    [string] The date and time at which the object is no longer cacheable.
    ForceDestroy bool
    [bool] If true, the object will be destroyed if versioning is enabled then all versions will be destroyed. Default is false.
    Metadata Dictionary<string, string>
    [map] A map of metadata to store with the object in IONOS Object Storage. Metadata keys must be lowercase alphanumeric characters.
    MetadataDirective string
    [string] Specifies whether the metadata is copied from the source object or replaced with metadata provided in the request. Valid values are COPY and REPLACE.
    ObjectLockLegalHold string
    [string] Indicates whether a legal hold is in effect for the object. Valid values are ON and OFF.
    ObjectLockMode string
    [string] The object lock mode that you want to apply to the object. Valid values are GOVERNANCE and COMPLIANCE.
    ObjectLockRetainUntilDate string
    [string] The date and time when the object lock retention expires.Must be in RFC3999 format
    ServerSideEncryption string
    [string] The server-side encryption algorithm used when storing this object in IONOS Object Storage. Valid value is AES256.
    ServerSideEncryptionCustomerAlgorithm string
    [string] Specifies the algorithm to use for encrypting the object. Valid value is AES256.
    ServerSideEncryptionCustomerKey string
    [string] Specifies the 256-bit, base64-encoded encryption key to use to encrypt and decrypt your data.
    ServerSideEncryptionCustomerKeyMd5 string
    [string] Specifies the 128-bit MD5 digest of the encryption key.
    SourceCustomerAlgorithm string
    [string] Specifies the algorithm used for source object encryption. Valid value is AES256.
    SourceCustomerKey string
    [string] Specifies the 256-bit, base64-encoded encryption key for source object encryption.
    SourceCustomerKeyMd5 string
    [string] Specifies the 128-bit MD5 digest of the encryption key for source object encryption.
    StorageClass string
    [string] The storage class of the object. Valid value is STANDARD. Default is STANDARD.
    TaggingDirective string
    [string] Specifies whether the object tag-set is copied from the source object or replaced with tag-set provided in the request. Valid values are COPY and REPLACE.
    Tags Dictionary<string, string>
    [map] The tag-set for the object.
    WebsiteRedirect string
    [string] Redirects requests for this object to another object in the same bucket or to an external URL.
    Bucket string
    [string] The name of the bucket where the object will be stored. Must be between 3 and 63 characters.
    Key string
    [string] The key of the object. Must be at least 1 character long.
    Source string
    [string] The source of the object to be copied
    CacheControl string
    [string] Specifies caching behavior along the request/reply chain.
    ContentDisposition string
    [string] Specifies presentational information for the object.
    ContentEncoding string
    [string] Specifies what content encodings have been applied to the object.
    ContentLanguage string
    [string] The natural language or languages of the intended audience for the object.
    ContentType string
    [string] A standard MIME type describing the format of the contents.
    CopyIfMatch string
    Copies the object if its entity tag (ETag) matches the specified tag
    CopyIfModifiedSince string
    Copies the object if it has been modified since the specified time
    CopyIfNoneMatch string
    Copies the object if its entity tag (ETag) is different than the specified ETag
    CopyIfUnmodifiedSince string
    Copies the object if it hasn't been modified since the specified time
    Expires string
    [string] The date and time at which the object is no longer cacheable.
    ForceDestroy bool
    [bool] If true, the object will be destroyed if versioning is enabled then all versions will be destroyed. Default is false.
    Metadata map[string]string
    [map] A map of metadata to store with the object in IONOS Object Storage. Metadata keys must be lowercase alphanumeric characters.
    MetadataDirective string
    [string] Specifies whether the metadata is copied from the source object or replaced with metadata provided in the request. Valid values are COPY and REPLACE.
    ObjectLockLegalHold string
    [string] Indicates whether a legal hold is in effect for the object. Valid values are ON and OFF.
    ObjectLockMode string
    [string] The object lock mode that you want to apply to the object. Valid values are GOVERNANCE and COMPLIANCE.
    ObjectLockRetainUntilDate string
    [string] The date and time when the object lock retention expires.Must be in RFC3999 format
    ServerSideEncryption string
    [string] The server-side encryption algorithm used when storing this object in IONOS Object Storage. Valid value is AES256.
    ServerSideEncryptionCustomerAlgorithm string
    [string] Specifies the algorithm to use for encrypting the object. Valid value is AES256.
    ServerSideEncryptionCustomerKey string
    [string] Specifies the 256-bit, base64-encoded encryption key to use to encrypt and decrypt your data.
    ServerSideEncryptionCustomerKeyMd5 string
    [string] Specifies the 128-bit MD5 digest of the encryption key.
    SourceCustomerAlgorithm string
    [string] Specifies the algorithm used for source object encryption. Valid value is AES256.
    SourceCustomerKey string
    [string] Specifies the 256-bit, base64-encoded encryption key for source object encryption.
    SourceCustomerKeyMd5 string
    [string] Specifies the 128-bit MD5 digest of the encryption key for source object encryption.
    StorageClass string
    [string] The storage class of the object. Valid value is STANDARD. Default is STANDARD.
    TaggingDirective string
    [string] Specifies whether the object tag-set is copied from the source object or replaced with tag-set provided in the request. Valid values are COPY and REPLACE.
    Tags map[string]string
    [map] The tag-set for the object.
    WebsiteRedirect string
    [string] Redirects requests for this object to another object in the same bucket or to an external URL.
    bucket string
    [string] The name of the bucket where the object will be stored. Must be between 3 and 63 characters.
    key string
    [string] The key of the object. Must be at least 1 character long.
    source string
    [string] The source of the object to be copied
    cache_control string
    [string] Specifies caching behavior along the request/reply chain.
    content_disposition string
    [string] Specifies presentational information for the object.
    content_encoding string
    [string] Specifies what content encodings have been applied to the object.
    content_language string
    [string] The natural language or languages of the intended audience for the object.
    content_type string
    [string] A standard MIME type describing the format of the contents.
    copy_if_match string
    Copies the object if its entity tag (ETag) matches the specified tag
    copy_if_modified_since string
    Copies the object if it has been modified since the specified time
    copy_if_none_match string
    Copies the object if its entity tag (ETag) is different than the specified ETag
    copy_if_unmodified_since string
    Copies the object if it hasn't been modified since the specified time
    expires string
    [string] The date and time at which the object is no longer cacheable.
    force_destroy bool
    [bool] If true, the object will be destroyed if versioning is enabled then all versions will be destroyed. Default is false.
    metadata map(string)
    [map] A map of metadata to store with the object in IONOS Object Storage. Metadata keys must be lowercase alphanumeric characters.
    metadata_directive string
    [string] Specifies whether the metadata is copied from the source object or replaced with metadata provided in the request. Valid values are COPY and REPLACE.
    object_lock_legal_hold string
    [string] Indicates whether a legal hold is in effect for the object. Valid values are ON and OFF.
    object_lock_mode string
    [string] The object lock mode that you want to apply to the object. Valid values are GOVERNANCE and COMPLIANCE.
    object_lock_retain_until_date string
    [string] The date and time when the object lock retention expires.Must be in RFC3999 format
    server_side_encryption string
    [string] The server-side encryption algorithm used when storing this object in IONOS Object Storage. Valid value is AES256.
    server_side_encryption_customer_algorithm string
    [string] Specifies the algorithm to use for encrypting the object. Valid value is AES256.
    server_side_encryption_customer_key string
    [string] Specifies the 256-bit, base64-encoded encryption key to use to encrypt and decrypt your data.
    server_side_encryption_customer_key_md5 string
    [string] Specifies the 128-bit MD5 digest of the encryption key.
    source_customer_algorithm string
    [string] Specifies the algorithm used for source object encryption. Valid value is AES256.
    source_customer_key string
    [string] Specifies the 256-bit, base64-encoded encryption key for source object encryption.
    source_customer_key_md5 string
    [string] Specifies the 128-bit MD5 digest of the encryption key for source object encryption.
    storage_class string
    [string] The storage class of the object. Valid value is STANDARD. Default is STANDARD.
    tagging_directive string
    [string] Specifies whether the object tag-set is copied from the source object or replaced with tag-set provided in the request. Valid values are COPY and REPLACE.
    tags map(string)
    [map] The tag-set for the object.
    website_redirect string
    [string] Redirects requests for this object to another object in the same bucket or to an external URL.
    bucket String
    [string] The name of the bucket where the object will be stored. Must be between 3 and 63 characters.
    key String
    [string] The key of the object. Must be at least 1 character long.
    source String
    [string] The source of the object to be copied
    cacheControl String
    [string] Specifies caching behavior along the request/reply chain.
    contentDisposition String
    [string] Specifies presentational information for the object.
    contentEncoding String
    [string] Specifies what content encodings have been applied to the object.
    contentLanguage String
    [string] The natural language or languages of the intended audience for the object.
    contentType String
    [string] A standard MIME type describing the format of the contents.
    copyIfMatch String
    Copies the object if its entity tag (ETag) matches the specified tag
    copyIfModifiedSince String
    Copies the object if it has been modified since the specified time
    copyIfNoneMatch String
    Copies the object if its entity tag (ETag) is different than the specified ETag
    copyIfUnmodifiedSince String
    Copies the object if it hasn't been modified since the specified time
    expires String
    [string] The date and time at which the object is no longer cacheable.
    forceDestroy Boolean
    [bool] If true, the object will be destroyed if versioning is enabled then all versions will be destroyed. Default is false.
    metadata Map<String,String>
    [map] A map of metadata to store with the object in IONOS Object Storage. Metadata keys must be lowercase alphanumeric characters.
    metadataDirective String
    [string] Specifies whether the metadata is copied from the source object or replaced with metadata provided in the request. Valid values are COPY and REPLACE.
    objectLockLegalHold String
    [string] Indicates whether a legal hold is in effect for the object. Valid values are ON and OFF.
    objectLockMode String
    [string] The object lock mode that you want to apply to the object. Valid values are GOVERNANCE and COMPLIANCE.
    objectLockRetainUntilDate String
    [string] The date and time when the object lock retention expires.Must be in RFC3999 format
    serverSideEncryption String
    [string] The server-side encryption algorithm used when storing this object in IONOS Object Storage. Valid value is AES256.
    serverSideEncryptionCustomerAlgorithm String
    [string] Specifies the algorithm to use for encrypting the object. Valid value is AES256.
    serverSideEncryptionCustomerKey String
    [string] Specifies the 256-bit, base64-encoded encryption key to use to encrypt and decrypt your data.
    serverSideEncryptionCustomerKeyMd5 String
    [string] Specifies the 128-bit MD5 digest of the encryption key.
    sourceCustomerAlgorithm String
    [string] Specifies the algorithm used for source object encryption. Valid value is AES256.
    sourceCustomerKey String
    [string] Specifies the 256-bit, base64-encoded encryption key for source object encryption.
    sourceCustomerKeyMd5 String
    [string] Specifies the 128-bit MD5 digest of the encryption key for source object encryption.
    storageClass String
    [string] The storage class of the object. Valid value is STANDARD. Default is STANDARD.
    taggingDirective String
    [string] Specifies whether the object tag-set is copied from the source object or replaced with tag-set provided in the request. Valid values are COPY and REPLACE.
    tags Map<String,String>
    [map] The tag-set for the object.
    websiteRedirect String
    [string] Redirects requests for this object to another object in the same bucket or to an external URL.
    bucket string
    [string] The name of the bucket where the object will be stored. Must be between 3 and 63 characters.
    key string
    [string] The key of the object. Must be at least 1 character long.
    source string
    [string] The source of the object to be copied
    cacheControl string
    [string] Specifies caching behavior along the request/reply chain.
    contentDisposition string
    [string] Specifies presentational information for the object.
    contentEncoding string
    [string] Specifies what content encodings have been applied to the object.
    contentLanguage string
    [string] The natural language or languages of the intended audience for the object.
    contentType string
    [string] A standard MIME type describing the format of the contents.
    copyIfMatch string
    Copies the object if its entity tag (ETag) matches the specified tag
    copyIfModifiedSince string
    Copies the object if it has been modified since the specified time
    copyIfNoneMatch string
    Copies the object if its entity tag (ETag) is different than the specified ETag
    copyIfUnmodifiedSince string
    Copies the object if it hasn't been modified since the specified time
    expires string
    [string] The date and time at which the object is no longer cacheable.
    forceDestroy boolean
    [bool] If true, the object will be destroyed if versioning is enabled then all versions will be destroyed. Default is false.
    metadata {[key: string]: string}
    [map] A map of metadata to store with the object in IONOS Object Storage. Metadata keys must be lowercase alphanumeric characters.
    metadataDirective string
    [string] Specifies whether the metadata is copied from the source object or replaced with metadata provided in the request. Valid values are COPY and REPLACE.
    objectLockLegalHold string
    [string] Indicates whether a legal hold is in effect for the object. Valid values are ON and OFF.
    objectLockMode string
    [string] The object lock mode that you want to apply to the object. Valid values are GOVERNANCE and COMPLIANCE.
    objectLockRetainUntilDate string
    [string] The date and time when the object lock retention expires.Must be in RFC3999 format
    serverSideEncryption string
    [string] The server-side encryption algorithm used when storing this object in IONOS Object Storage. Valid value is AES256.
    serverSideEncryptionCustomerAlgorithm string
    [string] Specifies the algorithm to use for encrypting the object. Valid value is AES256.
    serverSideEncryptionCustomerKey string
    [string] Specifies the 256-bit, base64-encoded encryption key to use to encrypt and decrypt your data.
    serverSideEncryptionCustomerKeyMd5 string
    [string] Specifies the 128-bit MD5 digest of the encryption key.
    sourceCustomerAlgorithm string
    [string] Specifies the algorithm used for source object encryption. Valid value is AES256.
    sourceCustomerKey string
    [string] Specifies the 256-bit, base64-encoded encryption key for source object encryption.
    sourceCustomerKeyMd5 string
    [string] Specifies the 128-bit MD5 digest of the encryption key for source object encryption.
    storageClass string
    [string] The storage class of the object. Valid value is STANDARD. Default is STANDARD.
    taggingDirective string
    [string] Specifies whether the object tag-set is copied from the source object or replaced with tag-set provided in the request. Valid values are COPY and REPLACE.
    tags {[key: string]: string}
    [map] The tag-set for the object.
    websiteRedirect string
    [string] Redirects requests for this object to another object in the same bucket or to an external URL.
    bucket str
    [string] The name of the bucket where the object will be stored. Must be between 3 and 63 characters.
    key str
    [string] The key of the object. Must be at least 1 character long.
    source str
    [string] The source of the object to be copied
    cache_control str
    [string] Specifies caching behavior along the request/reply chain.
    content_disposition str
    [string] Specifies presentational information for the object.
    content_encoding str
    [string] Specifies what content encodings have been applied to the object.
    content_language str
    [string] The natural language or languages of the intended audience for the object.
    content_type str
    [string] A standard MIME type describing the format of the contents.
    copy_if_match str
    Copies the object if its entity tag (ETag) matches the specified tag
    copy_if_modified_since str
    Copies the object if it has been modified since the specified time
    copy_if_none_match str
    Copies the object if its entity tag (ETag) is different than the specified ETag
    copy_if_unmodified_since str
    Copies the object if it hasn't been modified since the specified time
    expires str
    [string] The date and time at which the object is no longer cacheable.
    force_destroy bool
    [bool] If true, the object will be destroyed if versioning is enabled then all versions will be destroyed. Default is false.
    metadata Mapping[str, str]
    [map] A map of metadata to store with the object in IONOS Object Storage. Metadata keys must be lowercase alphanumeric characters.
    metadata_directive str
    [string] Specifies whether the metadata is copied from the source object or replaced with metadata provided in the request. Valid values are COPY and REPLACE.
    object_lock_legal_hold str
    [string] Indicates whether a legal hold is in effect for the object. Valid values are ON and OFF.
    object_lock_mode str
    [string] The object lock mode that you want to apply to the object. Valid values are GOVERNANCE and COMPLIANCE.
    object_lock_retain_until_date str
    [string] The date and time when the object lock retention expires.Must be in RFC3999 format
    server_side_encryption str
    [string] The server-side encryption algorithm used when storing this object in IONOS Object Storage. Valid value is AES256.
    server_side_encryption_customer_algorithm str
    [string] Specifies the algorithm to use for encrypting the object. Valid value is AES256.
    server_side_encryption_customer_key str
    [string] Specifies the 256-bit, base64-encoded encryption key to use to encrypt and decrypt your data.
    server_side_encryption_customer_key_md5 str
    [string] Specifies the 128-bit MD5 digest of the encryption key.
    source_customer_algorithm str
    [string] Specifies the algorithm used for source object encryption. Valid value is AES256.
    source_customer_key str
    [string] Specifies the 256-bit, base64-encoded encryption key for source object encryption.
    source_customer_key_md5 str
    [string] Specifies the 128-bit MD5 digest of the encryption key for source object encryption.
    storage_class str
    [string] The storage class of the object. Valid value is STANDARD. Default is STANDARD.
    tagging_directive str
    [string] Specifies whether the object tag-set is copied from the source object or replaced with tag-set provided in the request. Valid values are COPY and REPLACE.
    tags Mapping[str, str]
    [map] The tag-set for the object.
    website_redirect str
    [string] Redirects requests for this object to another object in the same bucket or to an external URL.
    bucket String
    [string] The name of the bucket where the object will be stored. Must be between 3 and 63 characters.
    key String
    [string] The key of the object. Must be at least 1 character long.
    source String
    [string] The source of the object to be copied
    cacheControl String
    [string] Specifies caching behavior along the request/reply chain.
    contentDisposition String
    [string] Specifies presentational information for the object.
    contentEncoding String
    [string] Specifies what content encodings have been applied to the object.
    contentLanguage String
    [string] The natural language or languages of the intended audience for the object.
    contentType String
    [string] A standard MIME type describing the format of the contents.
    copyIfMatch String
    Copies the object if its entity tag (ETag) matches the specified tag
    copyIfModifiedSince String
    Copies the object if it has been modified since the specified time
    copyIfNoneMatch String
    Copies the object if its entity tag (ETag) is different than the specified ETag
    copyIfUnmodifiedSince String
    Copies the object if it hasn't been modified since the specified time
    expires String
    [string] The date and time at which the object is no longer cacheable.
    forceDestroy Boolean
    [bool] If true, the object will be destroyed if versioning is enabled then all versions will be destroyed. Default is false.
    metadata Map<String>
    [map] A map of metadata to store with the object in IONOS Object Storage. Metadata keys must be lowercase alphanumeric characters.
    metadataDirective String
    [string] Specifies whether the metadata is copied from the source object or replaced with metadata provided in the request. Valid values are COPY and REPLACE.
    objectLockLegalHold String
    [string] Indicates whether a legal hold is in effect for the object. Valid values are ON and OFF.
    objectLockMode String
    [string] The object lock mode that you want to apply to the object. Valid values are GOVERNANCE and COMPLIANCE.
    objectLockRetainUntilDate String
    [string] The date and time when the object lock retention expires.Must be in RFC3999 format
    serverSideEncryption String
    [string] The server-side encryption algorithm used when storing this object in IONOS Object Storage. Valid value is AES256.
    serverSideEncryptionCustomerAlgorithm String
    [string] Specifies the algorithm to use for encrypting the object. Valid value is AES256.
    serverSideEncryptionCustomerKey String
    [string] Specifies the 256-bit, base64-encoded encryption key to use to encrypt and decrypt your data.
    serverSideEncryptionCustomerKeyMd5 String
    [string] Specifies the 128-bit MD5 digest of the encryption key.
    sourceCustomerAlgorithm String
    [string] Specifies the algorithm used for source object encryption. Valid value is AES256.
    sourceCustomerKey String
    [string] Specifies the 256-bit, base64-encoded encryption key for source object encryption.
    sourceCustomerKeyMd5 String
    [string] Specifies the 128-bit MD5 digest of the encryption key for source object encryption.
    storageClass String
    [string] The storage class of the object. Valid value is STANDARD. Default is STANDARD.
    taggingDirective String
    [string] Specifies whether the object tag-set is copied from the source object or replaced with tag-set provided in the request. Valid values are COPY and REPLACE.
    tags Map<String>
    [map] The tag-set for the object.
    websiteRedirect String
    [string] Redirects requests for this object to another object in the same bucket or to an external URL.

    Outputs

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

    Etag string
    [string] An entity tag (ETag) is an opaque identifier assigned by a web server to a specific version of a resource found at a URL.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastModified string
    [string] The date and time at which the object was last modified.
    VersionId string
    [string] The version of the object.
    Etag string
    [string] An entity tag (ETag) is an opaque identifier assigned by a web server to a specific version of a resource found at a URL.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastModified string
    [string] The date and time at which the object was last modified.
    VersionId string
    [string] The version of the object.
    etag string
    [string] An entity tag (ETag) is an opaque identifier assigned by a web server to a specific version of a resource found at a URL.
    id string
    The provider-assigned unique ID for this managed resource.
    last_modified string
    [string] The date and time at which the object was last modified.
    version_id string
    [string] The version of the object.
    etag String
    [string] An entity tag (ETag) is an opaque identifier assigned by a web server to a specific version of a resource found at a URL.
    id String
    The provider-assigned unique ID for this managed resource.
    lastModified String
    [string] The date and time at which the object was last modified.
    versionId String
    [string] The version of the object.
    etag string
    [string] An entity tag (ETag) is an opaque identifier assigned by a web server to a specific version of a resource found at a URL.
    id string
    The provider-assigned unique ID for this managed resource.
    lastModified string
    [string] The date and time at which the object was last modified.
    versionId string
    [string] The version of the object.
    etag str
    [string] An entity tag (ETag) is an opaque identifier assigned by a web server to a specific version of a resource found at a URL.
    id str
    The provider-assigned unique ID for this managed resource.
    last_modified str
    [string] The date and time at which the object was last modified.
    version_id str
    [string] The version of the object.
    etag String
    [string] An entity tag (ETag) is an opaque identifier assigned by a web server to a specific version of a resource found at a URL.
    id String
    The provider-assigned unique ID for this managed resource.
    lastModified String
    [string] The date and time at which the object was last modified.
    versionId String
    [string] The version of the object.

    Look up Existing ObjectCopy Resource

    Get an existing ObjectCopy 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?: ObjectCopyState, opts?: CustomResourceOptions): ObjectCopy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            bucket: Optional[str] = None,
            cache_control: Optional[str] = None,
            content_disposition: Optional[str] = None,
            content_encoding: Optional[str] = None,
            content_language: Optional[str] = None,
            content_type: Optional[str] = None,
            copy_if_match: Optional[str] = None,
            copy_if_modified_since: Optional[str] = None,
            copy_if_none_match: Optional[str] = None,
            copy_if_unmodified_since: Optional[str] = None,
            etag: Optional[str] = None,
            expires: Optional[str] = None,
            force_destroy: Optional[bool] = None,
            key: Optional[str] = None,
            last_modified: Optional[str] = None,
            metadata: Optional[Mapping[str, str]] = None,
            metadata_directive: Optional[str] = None,
            object_lock_legal_hold: Optional[str] = None,
            object_lock_mode: Optional[str] = None,
            object_lock_retain_until_date: Optional[str] = None,
            server_side_encryption: Optional[str] = None,
            server_side_encryption_customer_algorithm: Optional[str] = None,
            server_side_encryption_customer_key: Optional[str] = None,
            server_side_encryption_customer_key_md5: Optional[str] = None,
            source: Optional[str] = None,
            source_customer_algorithm: Optional[str] = None,
            source_customer_key: Optional[str] = None,
            source_customer_key_md5: Optional[str] = None,
            storage_class: Optional[str] = None,
            tagging_directive: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            version_id: Optional[str] = None,
            website_redirect: Optional[str] = None) -> ObjectCopy
    func GetObjectCopy(ctx *Context, name string, id IDInput, state *ObjectCopyState, opts ...ResourceOption) (*ObjectCopy, error)
    public static ObjectCopy Get(string name, Input<string> id, ObjectCopyState? state, CustomResourceOptions? opts = null)
    public static ObjectCopy get(String name, Output<String> id, ObjectCopyState state, CustomResourceOptions options)
    resources:  _:    type: ionoscloud:objectstorage:ObjectCopy    get:      id: ${id}
    import {
      to = ionoscloud_objectstorage_objectcopy.example
      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.
    The following state arguments are supported:
    Bucket string
    [string] The name of the bucket where the object will be stored. Must be between 3 and 63 characters.
    CacheControl string
    [string] Specifies caching behavior along the request/reply chain.
    ContentDisposition string
    [string] Specifies presentational information for the object.
    ContentEncoding string
    [string] Specifies what content encodings have been applied to the object.
    ContentLanguage string
    [string] The natural language or languages of the intended audience for the object.
    ContentType string
    [string] A standard MIME type describing the format of the contents.
    CopyIfMatch string
    Copies the object if its entity tag (ETag) matches the specified tag
    CopyIfModifiedSince string
    Copies the object if it has been modified since the specified time
    CopyIfNoneMatch string
    Copies the object if its entity tag (ETag) is different than the specified ETag
    CopyIfUnmodifiedSince string
    Copies the object if it hasn't been modified since the specified time
    Etag string
    [string] An entity tag (ETag) is an opaque identifier assigned by a web server to a specific version of a resource found at a URL.
    Expires string
    [string] The date and time at which the object is no longer cacheable.
    ForceDestroy bool
    [bool] If true, the object will be destroyed if versioning is enabled then all versions will be destroyed. Default is false.
    Key string
    [string] The key of the object. Must be at least 1 character long.
    LastModified string
    [string] The date and time at which the object was last modified.
    Metadata Dictionary<string, string>
    [map] A map of metadata to store with the object in IONOS Object Storage. Metadata keys must be lowercase alphanumeric characters.
    MetadataDirective string
    [string] Specifies whether the metadata is copied from the source object or replaced with metadata provided in the request. Valid values are COPY and REPLACE.
    ObjectLockLegalHold string
    [string] Indicates whether a legal hold is in effect for the object. Valid values are ON and OFF.
    ObjectLockMode string
    [string] The object lock mode that you want to apply to the object. Valid values are GOVERNANCE and COMPLIANCE.
    ObjectLockRetainUntilDate string
    [string] The date and time when the object lock retention expires.Must be in RFC3999 format
    ServerSideEncryption string
    [string] The server-side encryption algorithm used when storing this object in IONOS Object Storage. Valid value is AES256.
    ServerSideEncryptionCustomerAlgorithm string
    [string] Specifies the algorithm to use for encrypting the object. Valid value is AES256.
    ServerSideEncryptionCustomerKey string
    [string] Specifies the 256-bit, base64-encoded encryption key to use to encrypt and decrypt your data.
    ServerSideEncryptionCustomerKeyMd5 string
    [string] Specifies the 128-bit MD5 digest of the encryption key.
    Source string
    [string] The source of the object to be copied
    SourceCustomerAlgorithm string
    [string] Specifies the algorithm used for source object encryption. Valid value is AES256.
    SourceCustomerKey string
    [string] Specifies the 256-bit, base64-encoded encryption key for source object encryption.
    SourceCustomerKeyMd5 string
    [string] Specifies the 128-bit MD5 digest of the encryption key for source object encryption.
    StorageClass string
    [string] The storage class of the object. Valid value is STANDARD. Default is STANDARD.
    TaggingDirective string
    [string] Specifies whether the object tag-set is copied from the source object or replaced with tag-set provided in the request. Valid values are COPY and REPLACE.
    Tags Dictionary<string, string>
    [map] The tag-set for the object.
    VersionId string
    [string] The version of the object.
    WebsiteRedirect string
    [string] Redirects requests for this object to another object in the same bucket or to an external URL.
    Bucket string
    [string] The name of the bucket where the object will be stored. Must be between 3 and 63 characters.
    CacheControl string
    [string] Specifies caching behavior along the request/reply chain.
    ContentDisposition string
    [string] Specifies presentational information for the object.
    ContentEncoding string
    [string] Specifies what content encodings have been applied to the object.
    ContentLanguage string
    [string] The natural language or languages of the intended audience for the object.
    ContentType string
    [string] A standard MIME type describing the format of the contents.
    CopyIfMatch string
    Copies the object if its entity tag (ETag) matches the specified tag
    CopyIfModifiedSince string
    Copies the object if it has been modified since the specified time
    CopyIfNoneMatch string
    Copies the object if its entity tag (ETag) is different than the specified ETag
    CopyIfUnmodifiedSince string
    Copies the object if it hasn't been modified since the specified time
    Etag string
    [string] An entity tag (ETag) is an opaque identifier assigned by a web server to a specific version of a resource found at a URL.
    Expires string
    [string] The date and time at which the object is no longer cacheable.
    ForceDestroy bool
    [bool] If true, the object will be destroyed if versioning is enabled then all versions will be destroyed. Default is false.
    Key string
    [string] The key of the object. Must be at least 1 character long.
    LastModified string
    [string] The date and time at which the object was last modified.
    Metadata map[string]string
    [map] A map of metadata to store with the object in IONOS Object Storage. Metadata keys must be lowercase alphanumeric characters.
    MetadataDirective string
    [string] Specifies whether the metadata is copied from the source object or replaced with metadata provided in the request. Valid values are COPY and REPLACE.
    ObjectLockLegalHold string
    [string] Indicates whether a legal hold is in effect for the object. Valid values are ON and OFF.
    ObjectLockMode string
    [string] The object lock mode that you want to apply to the object. Valid values are GOVERNANCE and COMPLIANCE.
    ObjectLockRetainUntilDate string
    [string] The date and time when the object lock retention expires.Must be in RFC3999 format
    ServerSideEncryption string
    [string] The server-side encryption algorithm used when storing this object in IONOS Object Storage. Valid value is AES256.
    ServerSideEncryptionCustomerAlgorithm string
    [string] Specifies the algorithm to use for encrypting the object. Valid value is AES256.
    ServerSideEncryptionCustomerKey string
    [string] Specifies the 256-bit, base64-encoded encryption key to use to encrypt and decrypt your data.
    ServerSideEncryptionCustomerKeyMd5 string
    [string] Specifies the 128-bit MD5 digest of the encryption key.
    Source string
    [string] The source of the object to be copied
    SourceCustomerAlgorithm string
    [string] Specifies the algorithm used for source object encryption. Valid value is AES256.
    SourceCustomerKey string
    [string] Specifies the 256-bit, base64-encoded encryption key for source object encryption.
    SourceCustomerKeyMd5 string
    [string] Specifies the 128-bit MD5 digest of the encryption key for source object encryption.
    StorageClass string
    [string] The storage class of the object. Valid value is STANDARD. Default is STANDARD.
    TaggingDirective string
    [string] Specifies whether the object tag-set is copied from the source object or replaced with tag-set provided in the request. Valid values are COPY and REPLACE.
    Tags map[string]string
    [map] The tag-set for the object.
    VersionId string
    [string] The version of the object.
    WebsiteRedirect string
    [string] Redirects requests for this object to another object in the same bucket or to an external URL.
    bucket string
    [string] The name of the bucket where the object will be stored. Must be between 3 and 63 characters.
    cache_control string
    [string] Specifies caching behavior along the request/reply chain.
    content_disposition string
    [string] Specifies presentational information for the object.
    content_encoding string
    [string] Specifies what content encodings have been applied to the object.
    content_language string
    [string] The natural language or languages of the intended audience for the object.
    content_type string
    [string] A standard MIME type describing the format of the contents.
    copy_if_match string
    Copies the object if its entity tag (ETag) matches the specified tag
    copy_if_modified_since string
    Copies the object if it has been modified since the specified time
    copy_if_none_match string
    Copies the object if its entity tag (ETag) is different than the specified ETag
    copy_if_unmodified_since string
    Copies the object if it hasn't been modified since the specified time
    etag string
    [string] An entity tag (ETag) is an opaque identifier assigned by a web server to a specific version of a resource found at a URL.
    expires string
    [string] The date and time at which the object is no longer cacheable.
    force_destroy bool
    [bool] If true, the object will be destroyed if versioning is enabled then all versions will be destroyed. Default is false.
    key string
    [string] The key of the object. Must be at least 1 character long.
    last_modified string
    [string] The date and time at which the object was last modified.
    metadata map(string)
    [map] A map of metadata to store with the object in IONOS Object Storage. Metadata keys must be lowercase alphanumeric characters.
    metadata_directive string
    [string] Specifies whether the metadata is copied from the source object or replaced with metadata provided in the request. Valid values are COPY and REPLACE.
    object_lock_legal_hold string
    [string] Indicates whether a legal hold is in effect for the object. Valid values are ON and OFF.
    object_lock_mode string
    [string] The object lock mode that you want to apply to the object. Valid values are GOVERNANCE and COMPLIANCE.
    object_lock_retain_until_date string
    [string] The date and time when the object lock retention expires.Must be in RFC3999 format
    server_side_encryption string
    [string] The server-side encryption algorithm used when storing this object in IONOS Object Storage. Valid value is AES256.
    server_side_encryption_customer_algorithm string
    [string] Specifies the algorithm to use for encrypting the object. Valid value is AES256.
    server_side_encryption_customer_key string
    [string] Specifies the 256-bit, base64-encoded encryption key to use to encrypt and decrypt your data.
    server_side_encryption_customer_key_md5 string
    [string] Specifies the 128-bit MD5 digest of the encryption key.
    source string
    [string] The source of the object to be copied
    source_customer_algorithm string
    [string] Specifies the algorithm used for source object encryption. Valid value is AES256.
    source_customer_key string
    [string] Specifies the 256-bit, base64-encoded encryption key for source object encryption.
    source_customer_key_md5 string
    [string] Specifies the 128-bit MD5 digest of the encryption key for source object encryption.
    storage_class string
    [string] The storage class of the object. Valid value is STANDARD. Default is STANDARD.
    tagging_directive string
    [string] Specifies whether the object tag-set is copied from the source object or replaced with tag-set provided in the request. Valid values are COPY and REPLACE.
    tags map(string)
    [map] The tag-set for the object.
    version_id string
    [string] The version of the object.
    website_redirect string
    [string] Redirects requests for this object to another object in the same bucket or to an external URL.
    bucket String
    [string] The name of the bucket where the object will be stored. Must be between 3 and 63 characters.
    cacheControl String
    [string] Specifies caching behavior along the request/reply chain.
    contentDisposition String
    [string] Specifies presentational information for the object.
    contentEncoding String
    [string] Specifies what content encodings have been applied to the object.
    contentLanguage String
    [string] The natural language or languages of the intended audience for the object.
    contentType String
    [string] A standard MIME type describing the format of the contents.
    copyIfMatch String
    Copies the object if its entity tag (ETag) matches the specified tag
    copyIfModifiedSince String
    Copies the object if it has been modified since the specified time
    copyIfNoneMatch String
    Copies the object if its entity tag (ETag) is different than the specified ETag
    copyIfUnmodifiedSince String
    Copies the object if it hasn't been modified since the specified time
    etag String
    [string] An entity tag (ETag) is an opaque identifier assigned by a web server to a specific version of a resource found at a URL.
    expires String
    [string] The date and time at which the object is no longer cacheable.
    forceDestroy Boolean
    [bool] If true, the object will be destroyed if versioning is enabled then all versions will be destroyed. Default is false.
    key String
    [string] The key of the object. Must be at least 1 character long.
    lastModified String
    [string] The date and time at which the object was last modified.
    metadata Map<String,String>
    [map] A map of metadata to store with the object in IONOS Object Storage. Metadata keys must be lowercase alphanumeric characters.
    metadataDirective String
    [string] Specifies whether the metadata is copied from the source object or replaced with metadata provided in the request. Valid values are COPY and REPLACE.
    objectLockLegalHold String
    [string] Indicates whether a legal hold is in effect for the object. Valid values are ON and OFF.
    objectLockMode String
    [string] The object lock mode that you want to apply to the object. Valid values are GOVERNANCE and COMPLIANCE.
    objectLockRetainUntilDate String
    [string] The date and time when the object lock retention expires.Must be in RFC3999 format
    serverSideEncryption String
    [string] The server-side encryption algorithm used when storing this object in IONOS Object Storage. Valid value is AES256.
    serverSideEncryptionCustomerAlgorithm String
    [string] Specifies the algorithm to use for encrypting the object. Valid value is AES256.
    serverSideEncryptionCustomerKey String
    [string] Specifies the 256-bit, base64-encoded encryption key to use to encrypt and decrypt your data.
    serverSideEncryptionCustomerKeyMd5 String
    [string] Specifies the 128-bit MD5 digest of the encryption key.
    source String
    [string] The source of the object to be copied
    sourceCustomerAlgorithm String
    [string] Specifies the algorithm used for source object encryption. Valid value is AES256.
    sourceCustomerKey String
    [string] Specifies the 256-bit, base64-encoded encryption key for source object encryption.
    sourceCustomerKeyMd5 String
    [string] Specifies the 128-bit MD5 digest of the encryption key for source object encryption.
    storageClass String
    [string] The storage class of the object. Valid value is STANDARD. Default is STANDARD.
    taggingDirective String
    [string] Specifies whether the object tag-set is copied from the source object or replaced with tag-set provided in the request. Valid values are COPY and REPLACE.
    tags Map<String,String>
    [map] The tag-set for the object.
    versionId String
    [string] The version of the object.
    websiteRedirect String
    [string] Redirects requests for this object to another object in the same bucket or to an external URL.
    bucket string
    [string] The name of the bucket where the object will be stored. Must be between 3 and 63 characters.
    cacheControl string
    [string] Specifies caching behavior along the request/reply chain.
    contentDisposition string
    [string] Specifies presentational information for the object.
    contentEncoding string
    [string] Specifies what content encodings have been applied to the object.
    contentLanguage string
    [string] The natural language or languages of the intended audience for the object.
    contentType string
    [string] A standard MIME type describing the format of the contents.
    copyIfMatch string
    Copies the object if its entity tag (ETag) matches the specified tag
    copyIfModifiedSince string
    Copies the object if it has been modified since the specified time
    copyIfNoneMatch string
    Copies the object if its entity tag (ETag) is different than the specified ETag
    copyIfUnmodifiedSince string
    Copies the object if it hasn't been modified since the specified time
    etag string
    [string] An entity tag (ETag) is an opaque identifier assigned by a web server to a specific version of a resource found at a URL.
    expires string
    [string] The date and time at which the object is no longer cacheable.
    forceDestroy boolean
    [bool] If true, the object will be destroyed if versioning is enabled then all versions will be destroyed. Default is false.
    key string
    [string] The key of the object. Must be at least 1 character long.
    lastModified string
    [string] The date and time at which the object was last modified.
    metadata {[key: string]: string}
    [map] A map of metadata to store with the object in IONOS Object Storage. Metadata keys must be lowercase alphanumeric characters.
    metadataDirective string
    [string] Specifies whether the metadata is copied from the source object or replaced with metadata provided in the request. Valid values are COPY and REPLACE.
    objectLockLegalHold string
    [string] Indicates whether a legal hold is in effect for the object. Valid values are ON and OFF.
    objectLockMode string
    [string] The object lock mode that you want to apply to the object. Valid values are GOVERNANCE and COMPLIANCE.
    objectLockRetainUntilDate string
    [string] The date and time when the object lock retention expires.Must be in RFC3999 format
    serverSideEncryption string
    [string] The server-side encryption algorithm used when storing this object in IONOS Object Storage. Valid value is AES256.
    serverSideEncryptionCustomerAlgorithm string
    [string] Specifies the algorithm to use for encrypting the object. Valid value is AES256.
    serverSideEncryptionCustomerKey string
    [string] Specifies the 256-bit, base64-encoded encryption key to use to encrypt and decrypt your data.
    serverSideEncryptionCustomerKeyMd5 string
    [string] Specifies the 128-bit MD5 digest of the encryption key.
    source string
    [string] The source of the object to be copied
    sourceCustomerAlgorithm string
    [string] Specifies the algorithm used for source object encryption. Valid value is AES256.
    sourceCustomerKey string
    [string] Specifies the 256-bit, base64-encoded encryption key for source object encryption.
    sourceCustomerKeyMd5 string
    [string] Specifies the 128-bit MD5 digest of the encryption key for source object encryption.
    storageClass string
    [string] The storage class of the object. Valid value is STANDARD. Default is STANDARD.
    taggingDirective string
    [string] Specifies whether the object tag-set is copied from the source object or replaced with tag-set provided in the request. Valid values are COPY and REPLACE.
    tags {[key: string]: string}
    [map] The tag-set for the object.
    versionId string
    [string] The version of the object.
    websiteRedirect string
    [string] Redirects requests for this object to another object in the same bucket or to an external URL.
    bucket str
    [string] The name of the bucket where the object will be stored. Must be between 3 and 63 characters.
    cache_control str
    [string] Specifies caching behavior along the request/reply chain.
    content_disposition str
    [string] Specifies presentational information for the object.
    content_encoding str
    [string] Specifies what content encodings have been applied to the object.
    content_language str
    [string] The natural language or languages of the intended audience for the object.
    content_type str
    [string] A standard MIME type describing the format of the contents.
    copy_if_match str
    Copies the object if its entity tag (ETag) matches the specified tag
    copy_if_modified_since str
    Copies the object if it has been modified since the specified time
    copy_if_none_match str
    Copies the object if its entity tag (ETag) is different than the specified ETag
    copy_if_unmodified_since str
    Copies the object if it hasn't been modified since the specified time
    etag str
    [string] An entity tag (ETag) is an opaque identifier assigned by a web server to a specific version of a resource found at a URL.
    expires str
    [string] The date and time at which the object is no longer cacheable.
    force_destroy bool
    [bool] If true, the object will be destroyed if versioning is enabled then all versions will be destroyed. Default is false.
    key str
    [string] The key of the object. Must be at least 1 character long.
    last_modified str
    [string] The date and time at which the object was last modified.
    metadata Mapping[str, str]
    [map] A map of metadata to store with the object in IONOS Object Storage. Metadata keys must be lowercase alphanumeric characters.
    metadata_directive str
    [string] Specifies whether the metadata is copied from the source object or replaced with metadata provided in the request. Valid values are COPY and REPLACE.
    object_lock_legal_hold str
    [string] Indicates whether a legal hold is in effect for the object. Valid values are ON and OFF.
    object_lock_mode str
    [string] The object lock mode that you want to apply to the object. Valid values are GOVERNANCE and COMPLIANCE.
    object_lock_retain_until_date str
    [string] The date and time when the object lock retention expires.Must be in RFC3999 format
    server_side_encryption str
    [string] The server-side encryption algorithm used when storing this object in IONOS Object Storage. Valid value is AES256.
    server_side_encryption_customer_algorithm str
    [string] Specifies the algorithm to use for encrypting the object. Valid value is AES256.
    server_side_encryption_customer_key str
    [string] Specifies the 256-bit, base64-encoded encryption key to use to encrypt and decrypt your data.
    server_side_encryption_customer_key_md5 str
    [string] Specifies the 128-bit MD5 digest of the encryption key.
    source str
    [string] The source of the object to be copied
    source_customer_algorithm str
    [string] Specifies the algorithm used for source object encryption. Valid value is AES256.
    source_customer_key str
    [string] Specifies the 256-bit, base64-encoded encryption key for source object encryption.
    source_customer_key_md5 str
    [string] Specifies the 128-bit MD5 digest of the encryption key for source object encryption.
    storage_class str
    [string] The storage class of the object. Valid value is STANDARD. Default is STANDARD.
    tagging_directive str
    [string] Specifies whether the object tag-set is copied from the source object or replaced with tag-set provided in the request. Valid values are COPY and REPLACE.
    tags Mapping[str, str]
    [map] The tag-set for the object.
    version_id str
    [string] The version of the object.
    website_redirect str
    [string] Redirects requests for this object to another object in the same bucket or to an external URL.
    bucket String
    [string] The name of the bucket where the object will be stored. Must be between 3 and 63 characters.
    cacheControl String
    [string] Specifies caching behavior along the request/reply chain.
    contentDisposition String
    [string] Specifies presentational information for the object.
    contentEncoding String
    [string] Specifies what content encodings have been applied to the object.
    contentLanguage String
    [string] The natural language or languages of the intended audience for the object.
    contentType String
    [string] A standard MIME type describing the format of the contents.
    copyIfMatch String
    Copies the object if its entity tag (ETag) matches the specified tag
    copyIfModifiedSince String
    Copies the object if it has been modified since the specified time
    copyIfNoneMatch String
    Copies the object if its entity tag (ETag) is different than the specified ETag
    copyIfUnmodifiedSince String
    Copies the object if it hasn't been modified since the specified time
    etag String
    [string] An entity tag (ETag) is an opaque identifier assigned by a web server to a specific version of a resource found at a URL.
    expires String
    [string] The date and time at which the object is no longer cacheable.
    forceDestroy Boolean
    [bool] If true, the object will be destroyed if versioning is enabled then all versions will be destroyed. Default is false.
    key String
    [string] The key of the object. Must be at least 1 character long.
    lastModified String
    [string] The date and time at which the object was last modified.
    metadata Map<String>
    [map] A map of metadata to store with the object in IONOS Object Storage. Metadata keys must be lowercase alphanumeric characters.
    metadataDirective String
    [string] Specifies whether the metadata is copied from the source object or replaced with metadata provided in the request. Valid values are COPY and REPLACE.
    objectLockLegalHold String
    [string] Indicates whether a legal hold is in effect for the object. Valid values are ON and OFF.
    objectLockMode String
    [string] The object lock mode that you want to apply to the object. Valid values are GOVERNANCE and COMPLIANCE.
    objectLockRetainUntilDate String
    [string] The date and time when the object lock retention expires.Must be in RFC3999 format
    serverSideEncryption String
    [string] The server-side encryption algorithm used when storing this object in IONOS Object Storage. Valid value is AES256.
    serverSideEncryptionCustomerAlgorithm String
    [string] Specifies the algorithm to use for encrypting the object. Valid value is AES256.
    serverSideEncryptionCustomerKey String
    [string] Specifies the 256-bit, base64-encoded encryption key to use to encrypt and decrypt your data.
    serverSideEncryptionCustomerKeyMd5 String
    [string] Specifies the 128-bit MD5 digest of the encryption key.
    source String
    [string] The source of the object to be copied
    sourceCustomerAlgorithm String
    [string] Specifies the algorithm used for source object encryption. Valid value is AES256.
    sourceCustomerKey String
    [string] Specifies the 256-bit, base64-encoded encryption key for source object encryption.
    sourceCustomerKeyMd5 String
    [string] Specifies the 128-bit MD5 digest of the encryption key for source object encryption.
    storageClass String
    [string] The storage class of the object. Valid value is STANDARD. Default is STANDARD.
    taggingDirective String
    [string] Specifies whether the object tag-set is copied from the source object or replaced with tag-set provided in the request. Valid values are COPY and REPLACE.
    tags Map<String>
    [map] The tag-set for the object.
    versionId String
    [string] The version of the object.
    websiteRedirect String
    [string] Redirects requests for this object to another object in the same bucket or to an external URL.

    Import

    Resource Object Copy can be imported using the bucket name and object copy key

    $ pulumi import ionoscloud:objectstorage/objectCopy:ObjectCopy example target/example
    

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

    Package Details

    Repository
    ionoscloud ionos-cloud/pulumi-ionoscloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ionoscloud Terraform Provider.
    ionoscloud logo
    Viewing docs for IonosCloud v0.3.0
    published on Wednesday, Apr 15, 2026 by ionos-cloud
      Try Pulumi Cloud free. Your team will thank you.