UpdateStorageLensGroup
Updates the existing Storage Lens group.
To use this operation, you must have the permission to perform the
s3:UpdateStorageLensGroup
action. For more information about the required Storage Lens
Groups permissions, see Setting account permissions to use S3 Storage Lens groups.
For information about Storage Lens groups errors, see List of Amazon S3 Storage Lens error codes.
Request Syntax
PUT /v20180820/storagelensgroup/name
HTTP/1.1
Host: s3-control.amazonaws.com.cn
x-amz-account-id: AccountId
<?xml version="1.0" encoding="UTF-8"?>
<UpdateStorageLensGroupRequest xmlns="http://awss3control.amazonaws.com/doc/2018-08-20/">
<StorageLensGroup>
<Filter>
<And>
<MatchAnyPrefix>
<Prefix>string
</Prefix>
</MatchAnyPrefix>
<MatchAnySuffix>
<Suffix>string
</Suffix>
</MatchAnySuffix>
<MatchAnyTag>
<Tag>
<Key>string
</Key>
<Value>string
</Value>
</Tag>
</MatchAnyTag>
<MatchObjectAge>
<DaysGreaterThan>integer
</DaysGreaterThan>
<DaysLessThan>integer
</DaysLessThan>
</MatchObjectAge>
<MatchObjectSize>
<BytesGreaterThan>long
</BytesGreaterThan>
<BytesLessThan>long
</BytesLessThan>
</MatchObjectSize>
</And>
<MatchAnyPrefix>
<Prefix>string
</Prefix>
</MatchAnyPrefix>
<MatchAnySuffix>
<Suffix>string
</Suffix>
</MatchAnySuffix>
<MatchAnyTag>
<Tag>
<Key>string
</Key>
<Value>string
</Value>
</Tag>
</MatchAnyTag>
<MatchObjectAge>
<DaysGreaterThan>integer
</DaysGreaterThan>
<DaysLessThan>integer
</DaysLessThan>
</MatchObjectAge>
<MatchObjectSize>
<BytesGreaterThan>long
</BytesGreaterThan>
<BytesLessThan>long
</BytesLessThan>
</MatchObjectSize>
<Or>
<MatchAnyPrefix>
<Prefix>string
</Prefix>
</MatchAnyPrefix>
<MatchAnySuffix>
<Suffix>string
</Suffix>
</MatchAnySuffix>
<MatchAnyTag>
<Tag>
<Key>string
</Key>
<Value>string
</Value>
</Tag>
</MatchAnyTag>
<MatchObjectAge>
<DaysGreaterThan>integer
</DaysGreaterThan>
<DaysLessThan>integer
</DaysLessThan>
</MatchObjectAge>
<MatchObjectSize>
<BytesGreaterThan>long
</BytesGreaterThan>
<BytesLessThan>long
</BytesLessThan>
</MatchObjectSize>
</Or>
</Filter>
<Name>string
</Name>
<StorageLensGroupArn>string
</StorageLensGroupArn>
</StorageLensGroup>
</UpdateStorageLensGroupRequest>
URI Request Parameters
The request uses the following URI parameters.
- name
-
The name of the Storage Lens group that you want to update.
Length Constraints: Minimum length of 1. Maximum length of 64.
Pattern:
[a-zA-Z0-9\-\_]+
Required: Yes
- x-amz-account-id
-
The Amazon account ID of the Storage Lens group owner.
Length Constraints: Maximum length of 64.
Pattern:
^\d{12}$
Required: Yes
Request Body
The request accepts the following data in XML format.
- UpdateStorageLensGroupRequest
-
Root level tag for the UpdateStorageLensGroupRequest parameters.
Required: Yes
- StorageLensGroup
-
The JSON file that contains the Storage Lens group configuration.
Type: StorageLensGroup data type
Required: Yes
Response Syntax
HTTP/1.1 204
Response Elements
If the action is successful, the service sends back an HTTP 204 response with an empty HTTP body.
See Also
For more information about using this API in one of the language-specific Amazon SDKs, see the following: