Help Center> Object Storage Service> SDK Reference> Go> Data Types> Request Parameters for Setting Bucket Encryption

Request Parameters for Setting Bucket Encryption

Type Definition

type SetBucketEncryptionInput struct

Parameter Description

Field

Type

Optional or Mandatory

Description

Bucket

string

Mandatory

Bucket name

SSEAlgorithm

string

Mandatory

Server-side encryption algorithm used for the default encryption configuration of a bucket. The valid value is kms.

KMSMasterKeyID

string

Optional

Customer master key (CMK) used in SSE-KMS encryption. If this header is not specified, the default master key will be used.

ProjectID

string

Optional

ID of the project where the KMS master key belongs in the SSE-KMS mode

Valid values:

  1. Project ID that matches KMSMasterKeyID
  2. Leave the project ID blank if KMSMasterKeyID is not specified.