更改AWS CLI的S3存储桶对象的显示名称和ID
我有一个具有两个可能的所有者(Kafka和DataWare)的对象的水桶。 当我运行某些对象的get-object-acl时,它会像这样。
{
"Owner": {
"DisplayName": "dataware",
"ID": "123456abc"
},
"Grants": [
{
"Grantee": {
"DisplayName": "dataware",
"ID": "123456abc",
"Type": "CanonicalUser"
},
"Permission": "FULL_CONTROL"
}
]
}
通过AWS CLI,是否有可能手动将显示名称更改为Kafka及其ID(或相反的ID)?这样的东西?
{
"Owner": {
"DisplayName": "kafka",
"ID": "987654aaa"
},
"Grants": [
{
"Grantee": {
"DisplayName": "kafka",
"ID": "987654aaa",
"Type": "CanonicalUser"
},
"Permission": "FULL_CONTROL"
}
]
}
任何建议将被赞赏。
I have a bucket that has objects with two possible owners (kafka and dataware).
When I run a get-object-acl of some object, it comes like this.
{
"Owner": {
"DisplayName": "dataware",
"ID": "123456abc"
},
"Grants": [
{
"Grantee": {
"DisplayName": "dataware",
"ID": "123456abc",
"Type": "CanonicalUser"
},
"Permission": "FULL_CONTROL"
}
]
}
Is it possible, through AWS CLI, to manually change the display name to kafka and its ID (or the opposite)? Something like this?
{
"Owner": {
"DisplayName": "kafka",
"ID": "987654aaa"
},
"Grants": [
{
"Grantee": {
"DisplayName": "kafka",
"ID": "987654aaa",
"Type": "CanonicalUser"
},
"Permission": "FULL_CONTROL"
}
]
}
Any suggestion is appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论