Class CfnStorageLensGroup
The AWS::S3::StorageLensGroup
resource creates an S3 Storage Lens group.
Inherited Members
Namespace: Amazon.CDK.AWS.S3
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnStorageLensGroup : CfnResource, IInspectable, ITaggableV2
Syntax (vb)
Public Class CfnStorageLensGroup
Inherits CfnResource
Implements IInspectable, ITaggableV2
Remarks
A Storage Lens group is a custom grouping of objects that include filters for prefixes, suffixes, object tags, object size, or object age. You can create an S3 Storage Lens group that includes a single filter or multiple filter conditions. To specify multiple filter conditions, you use AND
or OR
logical operators. For more information about S3 Storage Lens groups, see Working with S3 Storage Lens groups .
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-s3-storagelensgroup.html
CloudformationResource: AWS::S3::StorageLensGroup
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.S3;
var cfnStorageLensGroup = new CfnStorageLensGroup(this, "MyCfnStorageLensGroup", new CfnStorageLensGroupProps {
Filter = new FilterProperty {
And = new AndProperty {
MatchAnyPrefix = new [] { "matchAnyPrefix" },
MatchAnySuffix = new [] { "matchAnySuffix" },
MatchAnyTag = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
MatchObjectAge = new MatchObjectAgeProperty {
DaysGreaterThan = 123,
DaysLessThan = 123
},
MatchObjectSize = new MatchObjectSizeProperty {
BytesGreaterThan = 123,
BytesLessThan = 123
}
},
MatchAnyPrefix = new [] { "matchAnyPrefix" },
MatchAnySuffix = new [] { "matchAnySuffix" },
MatchAnyTag = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
MatchObjectAge = new MatchObjectAgeProperty {
DaysGreaterThan = 123,
DaysLessThan = 123
},
MatchObjectSize = new MatchObjectSizeProperty {
BytesGreaterThan = 123,
BytesLessThan = 123
},
Or = new OrProperty {
MatchAnyPrefix = new [] { "matchAnyPrefix" },
MatchAnySuffix = new [] { "matchAnySuffix" },
MatchAnyTag = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
MatchObjectAge = new MatchObjectAgeProperty {
DaysGreaterThan = 123,
DaysLessThan = 123
},
MatchObjectSize = new MatchObjectSizeProperty {
BytesGreaterThan = 123,
BytesLessThan = 123
}
}
},
Name = "name",
// the properties below are optional
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
});
Synopsis
Constructors
Cfn |
Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Cfn |
Used by jsii to construct an instance of this class from DeputyProps |
Cfn |
Properties
Attr |
The ARN for the Amazon S3 Storage Lens Group. |
Cdk |
Tag Manager which manages the tags for this resource. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
Cfn |
|
Filter | This property contains the criteria for the Storage Lens group data that is displayed. |
Name | This property contains the Storage Lens group name. |
Tags | This property contains the AWS resource tags that you're adding to your Storage Lens group. |
Methods
Inspect(Tree |
Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnStorageLensGroup(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnStorageLensGroup(ByRefValue reference)
Parameters
- reference Amazon.
JSII. Runtime. Deputy. By Ref Value The Javascript-owned object reference
CfnStorageLensGroup(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnStorageLensGroup(DeputyBase.DeputyProps props)
Parameters
- props Amazon.
JSII. Runtime. Deputy. Deputy Base. Deputy Props The deputy props
CfnStorageLensGroup(Construct, String, ICfnStorageLensGroupProps)
public CfnStorageLensGroup(Construct scope, string id, ICfnStorageLensGroupProps props)
Parameters
- scope Constructs.
Construct Scope in which this resource is defined.
- id System.
String Construct identifier for this resource (unique in its scope).
- props ICfn
Storage Lens Group Props Resource properties.
Properties
AttrStorageLensGroupArn
The ARN for the Amazon S3 Storage Lens Group.
public virtual string AttrStorageLensGroupArn { get; }
Property Value
System.
Remarks
CloudformationAttribute: StorageLensGroupArn
CdkTagManager
Tag Manager which manages the tags for this resource.
public virtual TagManager CdkTagManager { get; }
Property Value
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.
Overrides
Filter
This property contains the criteria for the Storage Lens group data that is displayed.
public virtual object Filter { get; set; }
Property Value
System.
Name
This property contains the Storage Lens group name.
public virtual string Name { get; set; }
Property Value
System.
Tags
This property contains the AWS resource tags that you're adding to your Storage Lens group.
public virtual ICfnTag[] Tags { get; set; }
Property Value
ICfn
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector Tree
Inspector tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.
Collections. <System.Generic. IDictionary String , System.Object >
Returns
System.