Esempio n. 1
0
 public MyStack()
 {
     var example = new Aws.S3.Bucket("example", new Aws.S3.BucketArgs
     {
     });
     var example_entire_bucket = new Aws.S3.BucketMetric("example-entire-bucket", new Aws.S3.BucketMetricArgs
     {
         Bucket = example.BucketName,
     });
 }
Esempio n. 2
0
 public MyStack()
 {
     var example = new Aws.S3.Bucket("example", new Aws.S3.BucketArgs
     {
     });
     var example_filtered = new Aws.S3.BucketMetric("example-filtered", new Aws.S3.BucketMetricArgs
     {
         Bucket = example.BucketName,
         Filter = new Aws.S3.Inputs.BucketMetricFilterArgs
         {
             Prefix = "documents/",
             Tags   =
             {
                 { "class",    "blue" },
                 { "priority", "high" },
             },
         },
     });
 }