published on Wednesday, Apr 15, 2026 by ionos-cloud
published on Wednesday, Apr 15, 2026 by ionos-cloud
Manages Server Side Encryption Configuration for Buckets on IonosCloud.
⚠️ 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 example = new ionoscloud.objectstorage.Bucket("example", {name: "example"});
const exampleBucketServerSideEncryptionConfiguration = new ionoscloud.objectstorage.BucketServerSideEncryptionConfiguration("example", {
bucket: example.name,
rules: [{
applyServerSideEncryptionByDefault: [{
sseAlgorithm: "AES256",
}],
}],
});
import pulumi
import pulumi_ionoscloud as ionoscloud
example = ionoscloud.objectstorage.Bucket("example", name="example")
example_bucket_server_side_encryption_configuration = ionoscloud.objectstorage.BucketServerSideEncryptionConfiguration("example",
bucket=example.name,
rules=[{
"apply_server_side_encryption_by_default": [{
"sseAlgorithm": "AES256",
}],
}])
package main
import (
"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 {
example, err := objectstorage.NewBucket(ctx, "example", &objectstorage.BucketArgs{
Name: pulumi.String("example"),
})
if err != nil {
return err
}
_, err = objectstorage.NewBucketServerSideEncryptionConfiguration(ctx, "example", &objectstorage.BucketServerSideEncryptionConfigurationArgs{
Bucket: example.Name,
Rules: objectstorage.BucketServerSideEncryptionConfigurationRuleArray{
&objectstorage.BucketServerSideEncryptionConfigurationRuleArgs{
ApplyServerSideEncryptionByDefault: objectstorage.BucketServerSideEncryptionConfigurationRuleApplyServerSideEncryptionByDefaultArgs{
map[string]interface{}{
"sseAlgorithm": "AES256",
},
},
},
},
})
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 example = new Ionoscloud.Objectstorage.Bucket("example", new()
{
Name = "example",
});
var exampleBucketServerSideEncryptionConfiguration = new Ionoscloud.Objectstorage.BucketServerSideEncryptionConfiguration("example", new()
{
Bucket = example.Name,
Rules = new[]
{
new Ionoscloud.Objectstorage.Inputs.BucketServerSideEncryptionConfigurationRuleArgs
{
ApplyServerSideEncryptionByDefault = new[]
{
{
{ "sseAlgorithm", "AES256" },
},
},
},
},
});
});
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.BucketServerSideEncryptionConfiguration;
import com.ionoscloud.pulumi.ionoscloud.objectstorage.BucketServerSideEncryptionConfigurationArgs;
import com.pulumi.ionoscloud.objectstorage.inputs.BucketServerSideEncryptionConfigurationRuleArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Bucket("example", BucketArgs.builder()
.name("example")
.build());
var exampleBucketServerSideEncryptionConfiguration = new BucketServerSideEncryptionConfiguration("exampleBucketServerSideEncryptionConfiguration", BucketServerSideEncryptionConfigurationArgs.builder()
.bucket(example.name())
.rules(BucketServerSideEncryptionConfigurationRuleArgs.builder()
.applyServerSideEncryptionByDefault(BucketServerSideEncryptionConfigurationRuleApplyServerSideEncryptionByDefaultArgs.builder()
.sseAlgorithm("AES256")
.build())
.build())
.build());
}
}
resources:
example:
type: ionoscloud:objectstorage:Bucket
properties:
name: example
exampleBucketServerSideEncryptionConfiguration:
type: ionoscloud:objectstorage:BucketServerSideEncryptionConfiguration
name: example
properties:
bucket: ${example.name}
rules:
- applyServerSideEncryptionByDefault:
- sseAlgorithm: AES256
Create BucketServerSideEncryptionConfiguration Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new BucketServerSideEncryptionConfiguration(name: string, args: BucketServerSideEncryptionConfigurationArgs, opts?: CustomResourceOptions);@overload
def BucketServerSideEncryptionConfiguration(resource_name: str,
args: BucketServerSideEncryptionConfigurationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def BucketServerSideEncryptionConfiguration(resource_name: str,
opts: Optional[ResourceOptions] = None,
bucket: Optional[str] = None,
rules: Optional[Sequence[BucketServerSideEncryptionConfigurationRuleArgs]] = None)func NewBucketServerSideEncryptionConfiguration(ctx *Context, name string, args BucketServerSideEncryptionConfigurationArgs, opts ...ResourceOption) (*BucketServerSideEncryptionConfiguration, error)public BucketServerSideEncryptionConfiguration(string name, BucketServerSideEncryptionConfigurationArgs args, CustomResourceOptions? opts = null)
public BucketServerSideEncryptionConfiguration(String name, BucketServerSideEncryptionConfigurationArgs args)
public BucketServerSideEncryptionConfiguration(String name, BucketServerSideEncryptionConfigurationArgs args, CustomResourceOptions options)
type: ionoscloud:objectstorage:BucketServerSideEncryptionConfiguration
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 BucketServerSideEncryptionConfigurationArgs
- 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 BucketServerSideEncryptionConfigurationArgs
- 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 BucketServerSideEncryptionConfigurationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BucketServerSideEncryptionConfigurationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BucketServerSideEncryptionConfigurationArgs
- 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 bucketServerSideEncryptionConfigurationResource = new Ionoscloud.Objectstorage.BucketServerSideEncryptionConfiguration("bucketServerSideEncryptionConfigurationResource", new()
{
Bucket = "string",
Rules = new[]
{
new Ionoscloud.Objectstorage.Inputs.BucketServerSideEncryptionConfigurationRuleArgs
{
ApplyServerSideEncryptionByDefault = new Ionoscloud.Objectstorage.Inputs.BucketServerSideEncryptionConfigurationRuleApplyServerSideEncryptionByDefaultArgs
{
SseAlgorithm = "string",
},
},
},
});
example, err := objectstorage.NewBucketServerSideEncryptionConfiguration(ctx, "bucketServerSideEncryptionConfigurationResource", &objectstorage.BucketServerSideEncryptionConfigurationArgs{
Bucket: pulumi.String("string"),
Rules: objectstorage.BucketServerSideEncryptionConfigurationRuleArray{
&objectstorage.BucketServerSideEncryptionConfigurationRuleArgs{
ApplyServerSideEncryptionByDefault: &objectstorage.BucketServerSideEncryptionConfigurationRuleApplyServerSideEncryptionByDefaultArgs{
SseAlgorithm: pulumi.String("string"),
},
},
},
})
var bucketServerSideEncryptionConfigurationResource = new BucketServerSideEncryptionConfiguration("bucketServerSideEncryptionConfigurationResource", BucketServerSideEncryptionConfigurationArgs.builder()
.bucket("string")
.rules(BucketServerSideEncryptionConfigurationRuleArgs.builder()
.applyServerSideEncryptionByDefault(BucketServerSideEncryptionConfigurationRuleApplyServerSideEncryptionByDefaultArgs.builder()
.sseAlgorithm("string")
.build())
.build())
.build());
bucket_server_side_encryption_configuration_resource = ionoscloud.objectstorage.BucketServerSideEncryptionConfiguration("bucketServerSideEncryptionConfigurationResource",
bucket="string",
rules=[{
"apply_server_side_encryption_by_default": {
"sse_algorithm": "string",
},
}])
const bucketServerSideEncryptionConfigurationResource = new ionoscloud.objectstorage.BucketServerSideEncryptionConfiguration("bucketServerSideEncryptionConfigurationResource", {
bucket: "string",
rules: [{
applyServerSideEncryptionByDefault: {
sseAlgorithm: "string",
},
}],
});
type: ionoscloud:objectstorage:BucketServerSideEncryptionConfiguration
properties:
bucket: string
rules:
- applyServerSideEncryptionByDefault:
sseAlgorithm: string
BucketServerSideEncryptionConfiguration 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 BucketServerSideEncryptionConfiguration resource accepts the following input properties:
- Bucket string
- [string] The name of the bucket where the object will be stored.
- Rules
List<Ionoscloud.
Bucket Server Side Encryption Configuration Rule> - [block] A block of rule as defined below.
- Bucket string
- [string] The name of the bucket where the object will be stored.
- Rules
[]Bucket
Server Side Encryption Configuration Rule Args - [block] A block of rule as defined below.
- bucket String
- [string] The name of the bucket where the object will be stored.
- rules
List<Bucket
Server Side Encryption Configuration Rule> - [block] A block of rule as defined below.
- bucket string
- [string] The name of the bucket where the object will be stored.
- rules
Bucket
Server Side Encryption Configuration Rule[] - [block] A block of rule as defined below.
- bucket str
- [string] The name of the bucket where the object will be stored.
- rules
Sequence[Bucket
Server Side Encryption Configuration Rule Args] - [block] A block of rule as defined below.
- bucket String
- [string] The name of the bucket where the object will be stored.
- rules List<Property Map>
- [block] A block of rule as defined below.
Outputs
All input properties are implicitly available as output properties. Additionally, the BucketServerSideEncryptionConfiguration resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing BucketServerSideEncryptionConfiguration Resource
Get an existing BucketServerSideEncryptionConfiguration 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?: BucketServerSideEncryptionConfigurationState, opts?: CustomResourceOptions): BucketServerSideEncryptionConfiguration@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
bucket: Optional[str] = None,
rules: Optional[Sequence[BucketServerSideEncryptionConfigurationRuleArgs]] = None) -> BucketServerSideEncryptionConfigurationfunc GetBucketServerSideEncryptionConfiguration(ctx *Context, name string, id IDInput, state *BucketServerSideEncryptionConfigurationState, opts ...ResourceOption) (*BucketServerSideEncryptionConfiguration, error)public static BucketServerSideEncryptionConfiguration Get(string name, Input<string> id, BucketServerSideEncryptionConfigurationState? state, CustomResourceOptions? opts = null)public static BucketServerSideEncryptionConfiguration get(String name, Output<String> id, BucketServerSideEncryptionConfigurationState state, CustomResourceOptions options)resources: _: type: ionoscloud:objectstorage:BucketServerSideEncryptionConfiguration 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.
- Rules
List<Ionoscloud.
Bucket Server Side Encryption Configuration Rule> - [block] A block of rule as defined below.
- Bucket string
- [string] The name of the bucket where the object will be stored.
- Rules
[]Bucket
Server Side Encryption Configuration Rule Args - [block] A block of rule as defined below.
- bucket String
- [string] The name of the bucket where the object will be stored.
- rules
List<Bucket
Server Side Encryption Configuration Rule> - [block] A block of rule as defined below.
- bucket string
- [string] The name of the bucket where the object will be stored.
- rules
Bucket
Server Side Encryption Configuration Rule[] - [block] A block of rule as defined below.
- bucket str
- [string] The name of the bucket where the object will be stored.
- rules
Sequence[Bucket
Server Side Encryption Configuration Rule Args] - [block] A block of rule as defined below.
- bucket String
- [string] The name of the bucket where the object will be stored.
- rules List<Property Map>
- [block] A block of rule as defined below.
Supporting Types
BucketServerSideEncryptionConfigurationRule, BucketServerSideEncryptionConfigurationRuleArgs
- Apply
Server Ionoscloud.Side Encryption By Default Bucket Server Side Encryption Configuration Rule Apply Server Side Encryption By Default - [block] Defines the default encryption settings.
- Apply
Server BucketSide Encryption By Default Server Side Encryption Configuration Rule Apply Server Side Encryption By Default - [block] Defines the default encryption settings.
- apply
Server BucketSide Encryption By Default Server Side Encryption Configuration Rule Apply Server Side Encryption By Default - [block] Defines the default encryption settings.
- apply
Server BucketSide Encryption By Default Server Side Encryption Configuration Rule Apply Server Side Encryption By Default - [block] Defines the default encryption settings.
- apply_
server_ Bucketside_ encryption_ by_ default Server Side Encryption Configuration Rule Apply Server Side Encryption By Default - [block] Defines the default encryption settings.
- apply
Server Property MapSide Encryption By Default - [block] Defines the default encryption settings.
BucketServerSideEncryptionConfigurationRuleApplyServerSideEncryptionByDefault, BucketServerSideEncryptionConfigurationRuleApplyServerSideEncryptionByDefaultArgs
- Sse
Algorithm string - [string] Server-side encryption algorithm to use. Valid values are 'AES256'
- Sse
Algorithm string - [string] Server-side encryption algorithm to use. Valid values are 'AES256'
- sse
Algorithm String - [string] Server-side encryption algorithm to use. Valid values are 'AES256'
- sse
Algorithm string - [string] Server-side encryption algorithm to use. Valid values are 'AES256'
- sse_
algorithm str - [string] Server-side encryption algorithm to use. Valid values are 'AES256'
- sse
Algorithm String - [string] Server-side encryption algorithm to use. Valid values are 'AES256'
Import
IONOS Object Storage Bucket server side encryption configuration can be imported using the bucket name.
$ pulumi import ionoscloud:objectstorage/bucketServerSideEncryptionConfiguration:BucketServerSideEncryptionConfiguration example 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
