예제 #1
0
 public MyStack()
 {
     var testBucket = new Aws.S3.Bucket("testBucket", new Aws.S3.BucketArgs
     {
     });
     var inventory = new Aws.S3.Bucket("inventory", new Aws.S3.BucketArgs
     {
     });
     var testInventory = new Aws.S3.Inventory("testInventory", new Aws.S3.InventoryArgs
     {
         Bucket      = testBucket.Id,
         Destination = new Aws.S3.Inputs.InventoryDestinationArgs
         {
             Bucket = new Aws.S3.Inputs.InventoryDestinationBucketArgs
             {
                 BucketArn = inventory.Arn,
                 Format    = "ORC",
             },
         },
         IncludedObjectVersions = "All",
         Schedule = new Aws.S3.Inputs.InventoryScheduleArgs
         {
             Frequency = "Daily",
         },
     });
 }
예제 #2
0
 public MyStack()
 {
     var test = new Aws.S3.Bucket("test", new Aws.S3.BucketArgs
     {
     });
     var inventory = new Aws.S3.Bucket("inventory", new Aws.S3.BucketArgs
     {
     });
     var test_prefix = new Aws.S3.Inventory("test-prefix", new Aws.S3.InventoryArgs
     {
         Bucket      = test.Id,
         Destination = new Aws.S3.Inputs.InventoryDestinationArgs
         {
             Bucket = new Aws.S3.Inputs.InventoryDestinationBucketArgs
             {
                 BucketArn = inventory.Arn,
                 Format    = "ORC",
                 Prefix    = "inventory",
             },
         },
         Filter = new Aws.S3.Inputs.InventoryFilterArgs
         {
             Prefix = "documents/",
         },
         IncludedObjectVersions = "All",
         Schedule = new Aws.S3.Inputs.InventoryScheduleArgs
         {
             Frequency = "Daily",
         },
     });
 }