AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

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.

Note:

For .NET Core this operation is only available in asynchronous form. Please refer to CreateStorageLensGroupAsync.

Namespace: Amazon.S3Control
Assembly: AWSSDK.S3Control.dll
Version: 3.x.y.z

Syntax

C#
public abstract CreateStorageLensGroupResponse CreateStorageLensGroup(
         CreateStorageLensGroupRequest request
)

Parameters

request
Type: Amazon.S3Control.Model.CreateStorageLensGroupRequest

Container for the necessary parameters to execute the CreateStorageLensGroup service method.

Return Value


The response from the CreateStorageLensGroup service method, as returned by S3Control.

Version Information

.NET Framework:
Supported in: 4.5 and newer, 3.5

See Also