import * as pulumi from "@pulumi/pulumi"; /** * Set server-side encryption for the bucket. After server-side encryption is set for the bucket, if you upload a file to this bucket without specifying a server-side encryption method for the file, the file will inherit the bucket's server-side encryption method by default * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcenginecc from "@volcengine/pulumi-volcenginecc"; * * const tOSBucketEncryptionDemo = new volcenginecc.tos.BucketEncryption("TOSBucketEncryptionDemo", { * kmsMasterKeyId: "trn:kms:cn-beijing:21xxxxxxxxxxx:keyrings/ccapi-text/keys/terratest-kms-key-u-xxxxx", * name: "ccapi-test", * sseAlgorithm: "kms", * }); * ``` * * ## Import * * ```sh * $ pulumi import volcenginecc:tos/bucketEncryption:BucketEncryption example "name" * ``` */ export declare class BucketEncryption extends pulumi.CustomResource { /** * Get an existing BucketEncryption resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: BucketEncryptionState, opts?: pulumi.CustomResourceOptions): BucketEncryption; /** * Returns true if the given object is an instance of BucketEncryption. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is BucketEncryption; /** * The master key used for SSE-KMS encryption */ readonly kmsMasterKeyId: pulumi.Output; /** * Bucket name */ readonly name: pulumi.Output; /** * Default server-side encryption method. The values are explained as follows: kms: uses SSE-KMS encryption. AES256: uses SSE-TOS encryption with the AES256 algorithm. SM4: uses SSE-TOS encryption with the SM4 algorithm */ readonly sseAlgorithm: pulumi.Output; /** * Create a BucketEncryption resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: BucketEncryptionArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering BucketEncryption resources. */ export interface BucketEncryptionState { /** * The master key used for SSE-KMS encryption */ kmsMasterKeyId?: pulumi.Input; /** * Bucket name */ name?: pulumi.Input; /** * Default server-side encryption method. The values are explained as follows: kms: uses SSE-KMS encryption. AES256: uses SSE-TOS encryption with the AES256 algorithm. SM4: uses SSE-TOS encryption with the SM4 algorithm */ sseAlgorithm?: pulumi.Input; } /** * The set of arguments for constructing a BucketEncryption resource. */ export interface BucketEncryptionArgs { /** * The master key used for SSE-KMS encryption */ kmsMasterKeyId?: pulumi.Input; /** * Bucket name */ name: pulumi.Input; /** * Default server-side encryption method. The values are explained as follows: kms: uses SSE-KMS encryption. AES256: uses SSE-TOS encryption with the AES256 algorithm. SM4: uses SSE-TOS encryption with the SM4 algorithm */ sseAlgorithm?: pulumi.Input; }