1. Packages
  2. Ionoscloud Provider
  3. API Docs
  4. S3BucketServerSideEncryptionConfiguration
ionoscloud 6.7.6 published on Monday, Apr 14, 2025 by ionos-cloud

ionoscloud.S3BucketServerSideEncryptionConfiguration

Explore with Pulumi AI

ionoscloud logo
ionoscloud 6.7.6 published on Monday, Apr 14, 2025 by ionos-cloud

    Example Usage

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ionoscloud.S3Bucket;
    import com.pulumi.ionoscloud.S3BucketServerSideEncryptionConfiguration;
    import com.pulumi.ionoscloud.S3BucketServerSideEncryptionConfigurationArgs;
    import com.pulumi.ionoscloud.inputs.S3BucketServerSideEncryptionConfigurationRuleArgs;
    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 exampleS3Bucket = new S3Bucket("exampleS3Bucket");
    
            var exampleS3BucketServerSideEncryptionConfiguration = new S3BucketServerSideEncryptionConfiguration("exampleS3BucketServerSideEncryptionConfiguration", S3BucketServerSideEncryptionConfigurationArgs.builder()
                .bucket(exampleS3Bucket.name())
                .rules(S3BucketServerSideEncryptionConfigurationRuleArgs.builder()
                    .applyServerSideEncryptionByDefault(S3BucketServerSideEncryptionConfigurationRuleApplyServerSideEncryptionByDefaultArgs.builder()
                        .sseAlgorithm("AES256")
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      exampleS3Bucket:
        type: ionoscloud:S3Bucket
      exampleS3BucketServerSideEncryptionConfiguration:
        type: ionoscloud:S3BucketServerSideEncryptionConfiguration
        properties:
          bucket: ${exampleS3Bucket.name}
          rules:
            - applyServerSideEncryptionByDefault:
                - sseAlgorithm: AES256
    

    Create S3BucketServerSideEncryptionConfiguration Resource

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

    Constructor syntax

    new S3BucketServerSideEncryptionConfiguration(name: string, args: S3BucketServerSideEncryptionConfigurationArgs, opts?: CustomResourceOptions);
    @overload
    def S3BucketServerSideEncryptionConfiguration(resource_name: str,
                                                  args: S3BucketServerSideEncryptionConfigurationArgs,
                                                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def S3BucketServerSideEncryptionConfiguration(resource_name: str,
                                                  opts: Optional[ResourceOptions] = None,
                                                  bucket: Optional[str] = None,
                                                  rules: Optional[Sequence[S3BucketServerSideEncryptionConfigurationRuleArgs]] = None)
    func NewS3BucketServerSideEncryptionConfiguration(ctx *Context, name string, args S3BucketServerSideEncryptionConfigurationArgs, opts ...ResourceOption) (*S3BucketServerSideEncryptionConfiguration, error)
    public S3BucketServerSideEncryptionConfiguration(string name, S3BucketServerSideEncryptionConfigurationArgs args, CustomResourceOptions? opts = null)
    public S3BucketServerSideEncryptionConfiguration(String name, S3BucketServerSideEncryptionConfigurationArgs args)
    public S3BucketServerSideEncryptionConfiguration(String name, S3BucketServerSideEncryptionConfigurationArgs args, CustomResourceOptions options)
    
    type: ionoscloud:S3BucketServerSideEncryptionConfiguration
    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 S3BucketServerSideEncryptionConfigurationArgs
    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 S3BucketServerSideEncryptionConfigurationArgs
    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 S3BucketServerSideEncryptionConfigurationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args S3BucketServerSideEncryptionConfigurationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args S3BucketServerSideEncryptionConfigurationArgs
    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 s3bucketServerSideEncryptionConfigurationResource = new Ionoscloud.S3BucketServerSideEncryptionConfiguration("s3bucketServerSideEncryptionConfigurationResource", new()
    {
        Bucket = "string",
        Rules = new[]
        {
            new Ionoscloud.Inputs.S3BucketServerSideEncryptionConfigurationRuleArgs
            {
                ApplyServerSideEncryptionByDefault = new Ionoscloud.Inputs.S3BucketServerSideEncryptionConfigurationRuleApplyServerSideEncryptionByDefaultArgs
                {
                    SseAlgorithm = "string",
                },
            },
        },
    });
    
    example, err := ionoscloud.NewS3BucketServerSideEncryptionConfiguration(ctx, "s3bucketServerSideEncryptionConfigurationResource", &ionoscloud.S3BucketServerSideEncryptionConfigurationArgs{
    	Bucket: pulumi.String("string"),
    	Rules: ionoscloud.S3BucketServerSideEncryptionConfigurationRuleArray{
    		&ionoscloud.S3BucketServerSideEncryptionConfigurationRuleArgs{
    			ApplyServerSideEncryptionByDefault: &ionoscloud.S3BucketServerSideEncryptionConfigurationRuleApplyServerSideEncryptionByDefaultArgs{
    				SseAlgorithm: pulumi.String("string"),
    			},
    		},
    	},
    })
    
    var s3bucketServerSideEncryptionConfigurationResource = new S3BucketServerSideEncryptionConfiguration("s3bucketServerSideEncryptionConfigurationResource", S3BucketServerSideEncryptionConfigurationArgs.builder()
        .bucket("string")
        .rules(S3BucketServerSideEncryptionConfigurationRuleArgs.builder()
            .applyServerSideEncryptionByDefault(S3BucketServerSideEncryptionConfigurationRuleApplyServerSideEncryptionByDefaultArgs.builder()
                .sseAlgorithm("string")
                .build())
            .build())
        .build());
    
    s3bucket_server_side_encryption_configuration_resource = ionoscloud.S3BucketServerSideEncryptionConfiguration("s3bucketServerSideEncryptionConfigurationResource",
        bucket="string",
        rules=[{
            "apply_server_side_encryption_by_default": {
                "sse_algorithm": "string",
            },
        }])
    
    const s3bucketServerSideEncryptionConfigurationResource = new ionoscloud.S3BucketServerSideEncryptionConfiguration("s3bucketServerSideEncryptionConfigurationResource", {
        bucket: "string",
        rules: [{
            applyServerSideEncryptionByDefault: {
                sseAlgorithm: "string",
            },
        }],
    });
    
    type: ionoscloud:S3BucketServerSideEncryptionConfiguration
    properties:
        bucket: string
        rules:
            - applyServerSideEncryptionByDefault:
                sseAlgorithm: string
    

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

    Bucket string
    [string] The name of the bucket where the object will be stored.
    Rules List<S3BucketServerSideEncryptionConfigurationRule>
    [block] A block of rule as defined below.
    Bucket string
    [string] The name of the bucket where the object will be stored.
    Rules []S3BucketServerSideEncryptionConfigurationRuleArgs
    [block] A block of rule as defined below.
    bucket String
    [string] The name of the bucket where the object will be stored.
    rules List<S3BucketServerSideEncryptionConfigurationRule>
    [block] A block of rule as defined below.
    bucket string
    [string] The name of the bucket where the object will be stored.
    rules S3BucketServerSideEncryptionConfigurationRule[]
    [block] A block of rule as defined below.
    bucket str
    [string] The name of the bucket where the object will be stored.
    rules Sequence[S3BucketServerSideEncryptionConfigurationRuleArgs]
    [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 S3BucketServerSideEncryptionConfiguration 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 S3BucketServerSideEncryptionConfiguration Resource

    Get an existing S3BucketServerSideEncryptionConfiguration 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?: S3BucketServerSideEncryptionConfigurationState, opts?: CustomResourceOptions): S3BucketServerSideEncryptionConfiguration
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            bucket: Optional[str] = None,
            rules: Optional[Sequence[S3BucketServerSideEncryptionConfigurationRuleArgs]] = None) -> S3BucketServerSideEncryptionConfiguration
    func GetS3BucketServerSideEncryptionConfiguration(ctx *Context, name string, id IDInput, state *S3BucketServerSideEncryptionConfigurationState, opts ...ResourceOption) (*S3BucketServerSideEncryptionConfiguration, error)
    public static S3BucketServerSideEncryptionConfiguration Get(string name, Input<string> id, S3BucketServerSideEncryptionConfigurationState? state, CustomResourceOptions? opts = null)
    public static S3BucketServerSideEncryptionConfiguration get(String name, Output<String> id, S3BucketServerSideEncryptionConfigurationState state, CustomResourceOptions options)
    resources:  _:    type: ionoscloud:S3BucketServerSideEncryptionConfiguration    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.
    The following state arguments are supported:
    Bucket string
    [string] The name of the bucket where the object will be stored.
    Rules List<S3BucketServerSideEncryptionConfigurationRule>
    [block] A block of rule as defined below.
    Bucket string
    [string] The name of the bucket where the object will be stored.
    Rules []S3BucketServerSideEncryptionConfigurationRuleArgs
    [block] A block of rule as defined below.
    bucket String
    [string] The name of the bucket where the object will be stored.
    rules List<S3BucketServerSideEncryptionConfigurationRule>
    [block] A block of rule as defined below.
    bucket string
    [string] The name of the bucket where the object will be stored.
    rules S3BucketServerSideEncryptionConfigurationRule[]
    [block] A block of rule as defined below.
    bucket str
    [string] The name of the bucket where the object will be stored.
    rules Sequence[S3BucketServerSideEncryptionConfigurationRuleArgs]
    [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

    S3BucketServerSideEncryptionConfigurationRule, S3BucketServerSideEncryptionConfigurationRuleArgs

    applyServerSideEncryptionByDefault Property Map
    [block] Defines the default encryption settings.

    S3BucketServerSideEncryptionConfigurationRuleApplyServerSideEncryptionByDefault, S3BucketServerSideEncryptionConfigurationRuleApplyServerSideEncryptionByDefaultArgs

    SseAlgorithm string
    [string] Server-side encryption algorithm to use. Valid values are 'AES256'
    SseAlgorithm string
    [string] Server-side encryption algorithm to use. Valid values are 'AES256'
    sseAlgorithm String
    [string] Server-side encryption algorithm to use. Valid values are 'AES256'
    sseAlgorithm 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'
    sseAlgorithm 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:index/s3BucketServerSideEncryptionConfiguration:S3BucketServerSideEncryptionConfiguration example example
    

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

    Package Details

    Repository
    ionoscloud ionos-cloud/terraform-provider-ionoscloud
    License
    Notes
    This Pulumi package is based on the ionoscloud Terraform Provider.
    ionoscloud logo
    ionoscloud 6.7.6 published on Monday, Apr 14, 2025 by ionos-cloud