如何使用.net sdk设置存储桶的默认服务器端加密?

时间:2018-03-02 14:47:03

标签: .net amazon-web-services amazon-s3

我希望s3存储桶默认加密的属性为aes256,但我不知道我可以用.net sdk做到这一点

1 个答案:

答案 0 :(得分:2)

您可以使用以下方法:

<hmd:emailAddresses>
    <hmd:emailAddress>someone@example.org</hmd:emailAddress>
</hmd:emailAddresses>
<hmd:mailstop>88 ui</hmd:mailstop>
<hmd:description>
    <hmd:aboutMe></hmd:aboutMe>
</hmd:description>
<hmd:names>
    <hmd:fullName>Person Username Name</hmd:fullName>
    <hmd:firstAndMiddleName>UserMiddlename UserName</hmd:firstAndMiddleName>
    <hmd:firstName>Name person</hmd:firstName>
    <hmd:middleName/>
    <hmd:lastName>Lastname</hmd:lastName>
    <hmd:alternateNames>
        <hmd:alternateName type="">Some alt name person</hmd:alternateName>
    </hmd:alternateNames>
</hmd:names>
</hmd:person>

来源:https://docs.aws.amazon.com/sdkfornet/v3/apidocs/items/S3/MS3PutBucketEncryptionPutBucketEncryptionRequest.html