Create Storage Lens Group
s3control_create_storage_lens_group | R Documentation |
Creates a new S3 Storage Lens group and associates it with the specified Amazon Web Services account ID¶
Description¶
Creates a new S3 Storage Lens group and associates it with the specified Amazon Web Services account ID. An S3 Storage Lens group is a custom grouping of objects based on prefix, suffix, object tags, object size, object age, or a combination of these filters. For each Storage Lens group that you’ve created, you can also optionally add Amazon Web Services resource tags. For more information about S3 Storage Lens groups, see Working with S3 Storage Lens groups.
To use this operation, you must have the permission to perform the
s3:CreateStorageLensGroup
action. If you’re trying to create a Storage
Lens group with Amazon Web Services resource tags, you must also have
permission to perform the s3:TagResource
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.
Usage¶
Arguments¶
AccountId
[required] The Amazon Web Services account ID that the Storage Lens group is created from and associated with.
StorageLensGroup
[required] The Storage Lens group configuration.
Tags
The Amazon Web Services resource tags that you're adding to your Storage Lens group. This parameter is optional.
Value¶
An empty list.
Request syntax¶
svc$create_storage_lens_group(
AccountId = "string",
StorageLensGroup = list(
Name = "string",
Filter = list(
MatchAnyPrefix = list(
"string"
),
MatchAnySuffix = list(
"string"
),
MatchAnyTag = list(
list(
Key = "string",
Value = "string"
)
),
MatchObjectAge = list(
DaysGreaterThan = 123,
DaysLessThan = 123
),
MatchObjectSize = list(
BytesGreaterThan = 123,
BytesLessThan = 123
),
And = list(
MatchAnyPrefix = list(
"string"
),
MatchAnySuffix = list(
"string"
),
MatchAnyTag = list(
list(
Key = "string",
Value = "string"
)
),
MatchObjectAge = list(
DaysGreaterThan = 123,
DaysLessThan = 123
),
MatchObjectSize = list(
BytesGreaterThan = 123,
BytesLessThan = 123
)
),
Or = list(
MatchAnyPrefix = list(
"string"
),
MatchAnySuffix = list(
"string"
),
MatchAnyTag = list(
list(
Key = "string",
Value = "string"
)
),
MatchObjectAge = list(
DaysGreaterThan = 123,
DaysLessThan = 123
),
MatchObjectSize = list(
BytesGreaterThan = 123,
BytesLessThan = 123
)
)
),
StorageLensGroupArn = "string"
),
Tags = list(
list(
Key = "string",
Value = "string"
)
)
)