published on Wednesday, Apr 15, 2026 by ionos-cloud
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}
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.
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"),
})
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
- 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 stringMatch - Copies the object if its entity tag (ETag) matches the specified tag
- Copy
If stringModified Since - Copies the object if it has been modified since the specified time
- Copy
If stringNone Match - Copies the object if its entity tag (ETag) is different than the specified ETag
- Copy
If stringUnmodified Since - 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 Dictionary<string, 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
COPYandREPLACE. - Object
Lock stringLegal Hold - [string] Indicates whether a legal hold is in effect for the object. Valid values are
ONandOFF. - Object
Lock stringMode - [string] The object lock mode that you want to apply to the object. Valid values are
GOVERNANCEandCOMPLIANCE. - Object
Lock stringRetain Until Date - [string] The date and time when the object lock retention expires.Must be in RFC3999 format
- Server
Side stringEncryption - [string] The server-side encryption algorithm used when storing this object in IONOS Object Storage. Valid value is AES256.
- Server
Side stringEncryption Customer Algorithm - [string] Specifies the algorithm to use for encrypting the object. Valid value is AES256.
- Server
Side stringEncryption Customer Key - [string] Specifies the 256-bit, base64-encoded encryption key to use to encrypt and decrypt your data.
- Server
Side stringEncryption Customer Key Md5 - [string] Specifies the 128-bit MD5 digest of the encryption key.
- Source
Customer stringAlgorithm - [string] Specifies the algorithm used for source object encryption. Valid value is AES256.
- Source
Customer stringKey - [string] Specifies the 256-bit, base64-encoded encryption key for source object encryption.
- Source
Customer stringKey Md5 - [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
COPYandREPLACE. - Dictionary<string, 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
- 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 stringMatch - Copies the object if its entity tag (ETag) matches the specified tag
- Copy
If stringModified Since - Copies the object if it has been modified since the specified time
- Copy
If stringNone Match - Copies the object if its entity tag (ETag) is different than the specified ETag
- Copy
If stringUnmodified Since - 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]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
COPYandREPLACE. - Object
Lock stringLegal Hold - [string] Indicates whether a legal hold is in effect for the object. Valid values are
ONandOFF. - Object
Lock stringMode - [string] The object lock mode that you want to apply to the object. Valid values are
GOVERNANCEandCOMPLIANCE. - Object
Lock stringRetain Until Date - [string] The date and time when the object lock retention expires.Must be in RFC3999 format
- Server
Side stringEncryption - [string] The server-side encryption algorithm used when storing this object in IONOS Object Storage. Valid value is AES256.
- Server
Side stringEncryption Customer Algorithm - [string] Specifies the algorithm to use for encrypting the object. Valid value is AES256.
- Server
Side stringEncryption Customer Key - [string] Specifies the 256-bit, base64-encoded encryption key to use to encrypt and decrypt your data.
- Server
Side stringEncryption Customer Key Md5 - [string] Specifies the 128-bit MD5 digest of the encryption key.
- Source
Customer stringAlgorithm - [string] Specifies the algorithm used for source object encryption. Valid value is AES256.
- Source
Customer stringKey - [string] Specifies the 256-bit, base64-encoded encryption key for source object encryption.
- Source
Customer stringKey Md5 - [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
COPYandREPLACE. - map[string]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
- 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 StringMatch - Copies the object if its entity tag (ETag) matches the specified tag
- copy
If StringModified Since - Copies the object if it has been modified since the specified time
- copy
If StringNone Match - Copies the object if its entity tag (ETag) is different than the specified ETag
- copy
If StringUnmodified Since - 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 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.
- 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
COPYandREPLACE. - object
Lock StringLegal Hold - [string] Indicates whether a legal hold is in effect for the object. Valid values are
ONandOFF. - object
Lock StringMode - [string] The object lock mode that you want to apply to the object. Valid values are
GOVERNANCEandCOMPLIANCE. - object
Lock StringRetain Until Date - [string] The date and time when the object lock retention expires.Must be in RFC3999 format
- server
Side StringEncryption - [string] The server-side encryption algorithm used when storing this object in IONOS Object Storage. Valid value is AES256.
- server
Side StringEncryption Customer Algorithm - [string] Specifies the algorithm to use for encrypting the object. Valid value is AES256.
- server
Side StringEncryption Customer Key - [string] Specifies the 256-bit, base64-encoded encryption key to use to encrypt and decrypt your data.
- server
Side StringEncryption Customer Key Md5 - [string] Specifies the 128-bit MD5 digest of the encryption key.
- source
Customer StringAlgorithm - [string] Specifies the algorithm used for source object encryption. Valid value is AES256.
- source
Customer StringKey - [string] Specifies the 256-bit, base64-encoded encryption key for source object encryption.
- source
Customer StringKey Md5 - [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
COPYandREPLACE. - Map<String,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
- 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 stringMatch - Copies the object if its entity tag (ETag) matches the specified tag
- copy
If stringModified Since - Copies the object if it has been modified since the specified time
- copy
If stringNone Match - Copies the object if its entity tag (ETag) is different than the specified ETag
- copy
If stringUnmodified Since - 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 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.
- 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
COPYandREPLACE. - object
Lock stringLegal Hold - [string] Indicates whether a legal hold is in effect for the object. Valid values are
ONandOFF. - object
Lock stringMode - [string] The object lock mode that you want to apply to the object. Valid values are
GOVERNANCEandCOMPLIANCE. - object
Lock stringRetain Until Date - [string] The date and time when the object lock retention expires.Must be in RFC3999 format
- server
Side stringEncryption - [string] The server-side encryption algorithm used when storing this object in IONOS Object Storage. Valid value is AES256.
- server
Side stringEncryption Customer Algorithm - [string] Specifies the algorithm to use for encrypting the object. Valid value is AES256.
- server
Side stringEncryption Customer Key - [string] Specifies the 256-bit, base64-encoded encryption key to use to encrypt and decrypt your data.
- server
Side stringEncryption Customer Key Md5 - [string] Specifies the 128-bit MD5 digest of the encryption key.
- source
Customer stringAlgorithm - [string] Specifies the algorithm used for source object encryption. Valid value is AES256.
- source
Customer stringKey - [string] Specifies the 256-bit, base64-encoded encryption key for source object encryption.
- source
Customer stringKey Md5 - [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
COPYandREPLACE. - {[key: string]: 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 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_ strmatch - Copies the object if its entity tag (ETag) matches the specified tag
- copy_
if_ strmodified_ since - Copies the object if it has been modified since the specified time
- copy_
if_ strnone_ match - Copies the object if its entity tag (ETag) is different than the specified ETag
- copy_
if_ strunmodified_ since - 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
COPYandREPLACE. - object_
lock_ strlegal_ hold - [string] Indicates whether a legal hold is in effect for the object. Valid values are
ONandOFF. - object_
lock_ strmode - [string] The object lock mode that you want to apply to the object. Valid values are
GOVERNANCEandCOMPLIANCE. - object_
lock_ strretain_ until_ date - [string] The date and time when the object lock retention expires.Must be in RFC3999 format
- server_
side_ strencryption - [string] The server-side encryption algorithm used when storing this object in IONOS Object Storage. Valid value is AES256.
- server_
side_ strencryption_ customer_ algorithm - [string] Specifies the algorithm to use for encrypting the object. Valid value is AES256.
- server_
side_ strencryption_ customer_ key - [string] Specifies the 256-bit, base64-encoded encryption key to use to encrypt and decrypt your data.
- server_
side_ strencryption_ customer_ key_ md5 - [string] Specifies the 128-bit MD5 digest of the encryption key.
- source_
customer_ stralgorithm - [string] Specifies the algorithm used for source object encryption. Valid value is AES256.
- source_
customer_ strkey - [string] Specifies the 256-bit, base64-encoded encryption key for source object encryption.
- source_
customer_ strkey_ md5 - [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
COPYandREPLACE. - 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
- 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 StringMatch - Copies the object if its entity tag (ETag) matches the specified tag
- copy
If StringModified Since - Copies the object if it has been modified since the specified time
- copy
If StringNone Match - Copies the object if its entity tag (ETag) is different than the specified ETag
- copy
If StringUnmodified Since - 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 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.
- 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
COPYandREPLACE. - object
Lock StringLegal Hold - [string] Indicates whether a legal hold is in effect for the object. Valid values are
ONandOFF. - object
Lock StringMode - [string] The object lock mode that you want to apply to the object. Valid values are
GOVERNANCEandCOMPLIANCE. - object
Lock StringRetain Until Date - [string] The date and time when the object lock retention expires.Must be in RFC3999 format
- server
Side StringEncryption - [string] The server-side encryption algorithm used when storing this object in IONOS Object Storage. Valid value is AES256.
- server
Side StringEncryption Customer Algorithm - [string] Specifies the algorithm to use for encrypting the object. Valid value is AES256.
- server
Side StringEncryption Customer Key - [string] Specifies the 256-bit, base64-encoded encryption key to use to encrypt and decrypt your data.
- server
Side StringEncryption Customer Key Md5 - [string] Specifies the 128-bit MD5 digest of the encryption key.
- source
Customer StringAlgorithm - [string] Specifies the algorithm used for source object encryption. Valid value is AES256.
- source
Customer StringKey - [string] Specifies the 256-bit, base64-encoded encryption key for source object encryption.
- source
Customer StringKey Md5 - [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
COPYandREPLACE. - 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.
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.
- 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.
- 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.
- 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.
- 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 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.
- last
Modified String - [string] The date and time at which the object was last modified.
- version
Id 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) -> ObjectCopyfunc 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}- 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.
- 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 stringMatch - Copies the object if its entity tag (ETag) matches the specified tag
- Copy
If stringModified Since - Copies the object if it has been modified since the specified time
- Copy
If stringNone Match - Copies the object if its entity tag (ETag) is different than the specified ETag
- Copy
If stringUnmodified Since - 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 Dictionary<string, 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
COPYandREPLACE. - Object
Lock stringLegal Hold - [string] Indicates whether a legal hold is in effect for the object. Valid values are
ONandOFF. - Object
Lock stringMode - [string] The object lock mode that you want to apply to the object. Valid values are
GOVERNANCEandCOMPLIANCE. - Object
Lock stringRetain Until Date - [string] The date and time when the object lock retention expires.Must be in RFC3999 format
- Server
Side stringEncryption - [string] The server-side encryption algorithm used when storing this object in IONOS Object Storage. Valid value is AES256.
- Server
Side stringEncryption Customer Algorithm - [string] Specifies the algorithm to use for encrypting the object. Valid value is AES256.
- Server
Side stringEncryption Customer Key - [string] Specifies the 256-bit, base64-encoded encryption key to use to encrypt and decrypt your data.
- Server
Side stringEncryption Customer Key Md5 - [string] Specifies the 128-bit MD5 digest of the encryption key.
- Source string
- [string] The source of the object to be copied
- Source
Customer stringAlgorithm - [string] Specifies the algorithm used for source object encryption. Valid value is AES256.
- Source
Customer stringKey - [string] Specifies the 256-bit, base64-encoded encryption key for source object encryption.
- Source
Customer stringKey Md5 - [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
COPYandREPLACE. - Dictionary<string, 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.
- 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 stringMatch - Copies the object if its entity tag (ETag) matches the specified tag
- Copy
If stringModified Since - Copies the object if it has been modified since the specified time
- Copy
If stringNone Match - Copies the object if its entity tag (ETag) is different than the specified ETag
- Copy
If stringUnmodified Since - 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]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
COPYandREPLACE. - Object
Lock stringLegal Hold - [string] Indicates whether a legal hold is in effect for the object. Valid values are
ONandOFF. - Object
Lock stringMode - [string] The object lock mode that you want to apply to the object. Valid values are
GOVERNANCEandCOMPLIANCE. - Object
Lock stringRetain Until Date - [string] The date and time when the object lock retention expires.Must be in RFC3999 format
- Server
Side stringEncryption - [string] The server-side encryption algorithm used when storing this object in IONOS Object Storage. Valid value is AES256.
- Server
Side stringEncryption Customer Algorithm - [string] Specifies the algorithm to use for encrypting the object. Valid value is AES256.
- Server
Side stringEncryption Customer Key - [string] Specifies the 256-bit, base64-encoded encryption key to use to encrypt and decrypt your data.
- Server
Side stringEncryption Customer Key Md5 - [string] Specifies the 128-bit MD5 digest of the encryption key.
- Source string
- [string] The source of the object to be copied
- Source
Customer stringAlgorithm - [string] Specifies the algorithm used for source object encryption. Valid value is AES256.
- Source
Customer stringKey - [string] Specifies the 256-bit, base64-encoded encryption key for source object encryption.
- Source
Customer stringKey Md5 - [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
COPYandREPLACE. - map[string]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.
- 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 StringMatch - Copies the object if its entity tag (ETag) matches the specified tag
- copy
If StringModified Since - Copies the object if it has been modified since the specified time
- copy
If StringNone Match - Copies the object if its entity tag (ETag) is different than the specified ETag
- copy
If StringUnmodified Since - 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 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.
- last
Modified 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.
- 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
COPYandREPLACE. - object
Lock StringLegal Hold - [string] Indicates whether a legal hold is in effect for the object. Valid values are
ONandOFF. - object
Lock StringMode - [string] The object lock mode that you want to apply to the object. Valid values are
GOVERNANCEandCOMPLIANCE. - object
Lock StringRetain Until Date - [string] The date and time when the object lock retention expires.Must be in RFC3999 format
- server
Side StringEncryption - [string] The server-side encryption algorithm used when storing this object in IONOS Object Storage. Valid value is AES256.
- server
Side StringEncryption Customer Algorithm - [string] Specifies the algorithm to use for encrypting the object. Valid value is AES256.
- server
Side StringEncryption Customer Key - [string] Specifies the 256-bit, base64-encoded encryption key to use to encrypt and decrypt your data.
- server
Side StringEncryption Customer Key Md5 - [string] Specifies the 128-bit MD5 digest of the encryption key.
- source String
- [string] The source of the object to be copied
- source
Customer StringAlgorithm - [string] Specifies the algorithm used for source object encryption. Valid value is AES256.
- source
Customer StringKey - [string] Specifies the 256-bit, base64-encoded encryption key for source object encryption.
- source
Customer StringKey Md5 - [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
COPYandREPLACE. - Map<String,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.
- 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 stringMatch - Copies the object if its entity tag (ETag) matches the specified tag
- copy
If stringModified Since - Copies the object if it has been modified since the specified time
- copy
If stringNone Match - Copies the object if its entity tag (ETag) is different than the specified ETag
- copy
If stringUnmodified Since - 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 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.
- last
Modified 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.
- 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
COPYandREPLACE. - object
Lock stringLegal Hold - [string] Indicates whether a legal hold is in effect for the object. Valid values are
ONandOFF. - object
Lock stringMode - [string] The object lock mode that you want to apply to the object. Valid values are
GOVERNANCEandCOMPLIANCE. - object
Lock stringRetain Until Date - [string] The date and time when the object lock retention expires.Must be in RFC3999 format
- server
Side stringEncryption - [string] The server-side encryption algorithm used when storing this object in IONOS Object Storage. Valid value is AES256.
- server
Side stringEncryption Customer Algorithm - [string] Specifies the algorithm to use for encrypting the object. Valid value is AES256.
- server
Side stringEncryption Customer Key - [string] Specifies the 256-bit, base64-encoded encryption key to use to encrypt and decrypt your data.
- server
Side stringEncryption Customer Key Md5 - [string] Specifies the 128-bit MD5 digest of the encryption key.
- source string
- [string] The source of the object to be copied
- source
Customer stringAlgorithm - [string] Specifies the algorithm used for source object encryption. Valid value is AES256.
- source
Customer stringKey - [string] Specifies the 256-bit, base64-encoded encryption key for source object encryption.
- source
Customer stringKey Md5 - [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
COPYandREPLACE. - {[key: string]: 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 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_ strmatch - Copies the object if its entity tag (ETag) matches the specified tag
- copy_
if_ strmodified_ since - Copies the object if it has been modified since the specified time
- copy_
if_ strnone_ match - Copies the object if its entity tag (ETag) is different than the specified ETag
- copy_
if_ strunmodified_ since - 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
COPYandREPLACE. - object_
lock_ strlegal_ hold - [string] Indicates whether a legal hold is in effect for the object. Valid values are
ONandOFF. - object_
lock_ strmode - [string] The object lock mode that you want to apply to the object. Valid values are
GOVERNANCEandCOMPLIANCE. - object_
lock_ strretain_ until_ date - [string] The date and time when the object lock retention expires.Must be in RFC3999 format
- server_
side_ strencryption - [string] The server-side encryption algorithm used when storing this object in IONOS Object Storage. Valid value is AES256.
- server_
side_ strencryption_ customer_ algorithm - [string] Specifies the algorithm to use for encrypting the object. Valid value is AES256.
- server_
side_ strencryption_ customer_ key - [string] Specifies the 256-bit, base64-encoded encryption key to use to encrypt and decrypt your data.
- server_
side_ strencryption_ customer_ key_ md5 - [string] Specifies the 128-bit MD5 digest of the encryption key.
- source str
- [string] The source of the object to be copied
- source_
customer_ stralgorithm - [string] Specifies the algorithm used for source object encryption. Valid value is AES256.
- source_
customer_ strkey - [string] Specifies the 256-bit, base64-encoded encryption key for source object encryption.
- source_
customer_ strkey_ md5 - [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
COPYandREPLACE. - 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.
- 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 StringMatch - Copies the object if its entity tag (ETag) matches the specified tag
- copy
If StringModified Since - Copies the object if it has been modified since the specified time
- copy
If StringNone Match - Copies the object if its entity tag (ETag) is different than the specified ETag
- copy
If StringUnmodified Since - 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 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.
- 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
COPYandREPLACE. - object
Lock StringLegal Hold - [string] Indicates whether a legal hold is in effect for the object. Valid values are
ONandOFF. - object
Lock StringMode - [string] The object lock mode that you want to apply to the object. Valid values are
GOVERNANCEandCOMPLIANCE. - object
Lock StringRetain Until Date - [string] The date and time when the object lock retention expires.Must be in RFC3999 format
- server
Side StringEncryption - [string] The server-side encryption algorithm used when storing this object in IONOS Object Storage. Valid value is AES256.
- server
Side StringEncryption Customer Algorithm - [string] Specifies the algorithm to use for encrypting the object. Valid value is AES256.
- server
Side StringEncryption Customer Key - [string] Specifies the 256-bit, base64-encoded encryption key to use to encrypt and decrypt your data.
- server
Side StringEncryption Customer Key Md5 - [string] Specifies the 128-bit MD5 digest of the encryption key.
- source String
- [string] The source of the object to be copied
- source
Customer StringAlgorithm - [string] Specifies the algorithm used for source object encryption. Valid value is AES256.
- source
Customer StringKey - [string] Specifies the 256-bit, base64-encoded encryption key for source object encryption.
- source
Customer StringKey Md5 - [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
COPYandREPLACE. - 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.
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
ionoscloudTerraform Provider.
published on Wednesday, Apr 15, 2026 by ionos-cloud
