public static final class UpdateLogStoreEncryptionRequest.UserCmkInfo.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
UpdateLogStoreEncryptionRequest.UserCmkInfo |
build() |
UpdateLogStoreEncryptionRequest.UserCmkInfo.Builder |
keyId(String keyId)
The ID of the CMK to which the BYOK key belongs.
|
UpdateLogStoreEncryptionRequest.UserCmkInfo.Builder |
regionId(String regionId)
The region ID.
|
UpdateLogStoreEncryptionRequest.UserCmkInfo.Builder |
roleArn(String roleArn)
The Alibaba Cloud Resource Name (ARN) of the Resource Access Management (RAM) role.The value is in the acs:ram::12344***:role/xxxxx format.
|
public UpdateLogStoreEncryptionRequest.UserCmkInfo.Builder keyId(String keyId)
The ID of the CMK to which the BYOK key belongs. You can create a CMK in KMS. The CMK must be in the same region as the endpoint of Simple Log Service.
example:f5136b95-2420-ab31-xxxxxxxxx
public UpdateLogStoreEncryptionRequest.UserCmkInfo.Builder regionId(String regionId)
The region ID. Example: cn-hangzhou.
example:cn-hangzhou
public UpdateLogStoreEncryptionRequest.UserCmkInfo.Builder roleArn(String roleArn)
The Alibaba Cloud Resource Name (ARN) of the Resource Access Management (RAM) role.The value is in the acs:ram::12344***:role/xxxxx format. To use a BYOK key to encrypt logs, you must create a RAM role and grant the AliyunKMSReadOnlyAccess and AliyunKMSCryptoUserAccess permissions to the RAM role. You must grant the API caller the PassRole permission on the RAM role.
example:acs:ram::12344***:role/xxxxx
public UpdateLogStoreEncryptionRequest.UserCmkInfo build()
Copyright © 2025. All rights reserved.