Sha256: 973010d701801759dec97c945c65e0bd60206693688348e1d0eb02a70b7b1a0c

Contents?: true

Size: 1.05 KB

Versions: 10

Compression:

Stored size: 1.05 KB

Contents

CloudFormation {
  S3_Bucket('Bucket') {
    BucketName 'MyBucket'
    VersioningConfiguration(Status: 'Enabled')
    NotificationConfiguration(
      LambdaConfigurations: [ 
        {
          Function: 'MyLambdaFunction',
          Event: 'S3:ObjectCreated:*'
        },
        {
          Function: 'MyLambdaFunction',
          Event: 's3:ObjectRemoved:*'
        }
      ],
      QueueConfigurations: [ 
        {
          Queue: 'SQSQueue',
          Event: 'S3:ObjectCreated:*'
        }
      ],
      TopicConfigurations: [ 
        {
          Topic: 'SNSTopic',
          Event: 'S3:ObjectCreated:*'
        }
      ]
    )
    WebsiteConfiguration(
      ErrorDocument: 'error.htm',
      IndexDocument: 'index.htm',
      RoutingRules: [
        {
          RoutingRuleCondition: {
            HttpErrorCodeReturnedEquals: "404",
            KeyPrefixEquals: "out1/"
          },
          RedirectRule: {
            HostName: "ec2-11-22-333-44.compute-1.amazonaws.com",
            ReplaceKeyPrefixWith: "report-404/"
          }
        }
      ]
    )
  }
}

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
cfndsl-0.4.4 sample/s3.rb
cfndsl-0.4.3 sample/s3.rb
cfndsl-0.4.2 sample/s3.rb
cfndsl-0.4.1 sample/s3.rb
cfndsl-0.4.0 sample/s3.rb
cfndsl-0.3.6 sample/s3.rb
cfndsl-0.3.5 sample/s3.rb
cfndsl-0.3.4 sample/s3.rb
cfndsl-0.3.3 sample/s3.rb
cfndsl-0.3.2 sample/s3.rb