Class CfnStorageLens
The AWS::S3::StorageLens resource creates an Amazon S3 Storage Lens configuration.
Inherited Members
Namespace: Amazon.CDK.AWS.S3
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnStorageLens : CfnResource, IInspectable, ITaggable
Syntax (vb)
Public Class CfnStorageLens
Inherits CfnResource
Implements IInspectable, ITaggable
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-s3-storagelens.html
CloudformationResource: AWS::S3::StorageLens
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 sses3;
var cfnStorageLens = new CfnStorageLens(this, "MyCfnStorageLens", new CfnStorageLensProps {
StorageLensConfiguration = new StorageLensConfigurationProperty {
AccountLevel = new AccountLevelProperty {
BucketLevel = new BucketLevelProperty {
ActivityMetrics = new ActivityMetricsProperty {
IsEnabled = false
},
AdvancedCostOptimizationMetrics = new AdvancedCostOptimizationMetricsProperty {
IsEnabled = false
},
AdvancedDataProtectionMetrics = new AdvancedDataProtectionMetricsProperty {
IsEnabled = false
},
DetailedStatusCodesMetrics = new DetailedStatusCodesMetricsProperty {
IsEnabled = false
},
PrefixLevel = new PrefixLevelProperty {
StorageMetrics = new PrefixLevelStorageMetricsProperty {
IsEnabled = false,
SelectionCriteria = new SelectionCriteriaProperty {
Delimiter = "delimiter",
MaxDepth = 123,
MinStorageBytesPercentage = 123
}
}
}
},
// the properties below are optional
ActivityMetrics = new ActivityMetricsProperty {
IsEnabled = false
},
AdvancedCostOptimizationMetrics = new AdvancedCostOptimizationMetricsProperty {
IsEnabled = false
},
AdvancedDataProtectionMetrics = new AdvancedDataProtectionMetricsProperty {
IsEnabled = false
},
DetailedStatusCodesMetrics = new DetailedStatusCodesMetricsProperty {
IsEnabled = false
},
StorageLensGroupLevel = new StorageLensGroupLevelProperty {
StorageLensGroupSelectionCriteria = new StorageLensGroupSelectionCriteriaProperty {
Exclude = new [] { "exclude" },
Include = new [] { "include" }
}
}
},
Id = "id",
IsEnabled = false,
// the properties below are optional
AwsOrg = new AwsOrgProperty {
Arn = "arn"
},
DataExport = new DataExportProperty {
CloudWatchMetrics = new CloudWatchMetricsProperty {
IsEnabled = false
},
S3BucketDestination = new S3BucketDestinationProperty {
AccountId = "accountId",
Arn = "arn",
Format = "format",
OutputSchemaVersion = "outputSchemaVersion",
// the properties below are optional
Encryption = new EncryptionProperty {
Ssekms = new SSEKMSProperty {
KeyId = "keyId"
},
Sses3 = sses3
},
Prefix = "prefix"
}
},
Exclude = new BucketsAndRegionsProperty {
Buckets = new [] { "buckets" },
Regions = new [] { "regions" }
},
Include = new BucketsAndRegionsProperty {
Buckets = new [] { "buckets" },
Regions = new [] { "regions" }
},
StorageLensArn = "storageLensArn"
},
// the properties below are optional
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
});
Synopsis
Constructors
CfnStorageLens(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnStorageLens(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnStorageLens(Construct, String, ICfnStorageLensProps) |
Properties
AttrStorageLensConfigurationStorageLensArn | This property contains the details of the ARN of the S3 Storage Lens configuration. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
StorageLensConfiguration | This resource contains the details Amazon S3 Storage Lens configuration. |
Tags | Tag Manager which manages the tags for this resource. |
TagsRaw | A set of tags (key–value pairs) to associate with the Storage Lens configuration. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnStorageLens(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnStorageLens(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnStorageLens(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnStorageLens(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnStorageLens(Construct, String, ICfnStorageLensProps)
public CfnStorageLens(Construct scope, string id, ICfnStorageLensProps 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 ICfnStorageLensProps
Resource properties.
Properties
AttrStorageLensConfigurationStorageLensArn
This property contains the details of the ARN of the S3 Storage Lens configuration.
public virtual string AttrStorageLensConfigurationStorageLensArn { get; }
Property Value
System.String
Remarks
This property is read-only.
CloudformationAttribute: StorageLensConfiguration.StorageLensArn
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
StorageLensConfiguration
This resource contains the details Amazon S3 Storage Lens configuration.
public virtual object StorageLensConfiguration { get; set; }
Property Value
System.Object
Tags
Tag Manager which manages the tags for this resource.
public virtual TagManager Tags { get; }
Property Value
TagsRaw
A set of tags (key–value pairs) to associate with the Storage Lens configuration.
public virtual ICfnTag[] TagsRaw { get; set; }
Property Value
ICfnTag[]
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
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.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>