Sha256: 6f98ba2c01e13126a0dbb9d716d2de9c80f4ce7659d110bc22c76c8cdbb76390

Contents?: true

Size: 1.57 KB

Versions: 81

Compression:

Stored size: 1.57 KB

Contents

### exist

```ruby
describe cloudfront_distribution('123456789zyxw.cloudfront.net') do
  it { should exist }
end
```

### be_in_progress, be_deployed

```ruby
describe cloudfront_distribution('123456789zyxw.cloudfront.net') do
  it { should be_deployed }
end
```

### have_custom_response_error_code

```ruby
describe cloudfront_distribution('123456789zyxw.cloudfront.net') do
  it do
    should have_custom_response_error_code(400)
      .error_caching_min_ttl(60)
      .response_page_path('/path/to/400.html')
      .response_code(400)
  end
  it do
    should have_custom_response_error_code(403)
      .error_caching_min_ttl(60)
      .response_page_path('/path/to/403.html')
      .response_code('403')
  end
  it do
    should have_custom_response_error_code(500)
      .error_caching_min_ttl(60)
  end
end
```

### have_origin

```ruby
describe cloudfront_distribution('E2CLOUDFRONTXX') do
  it do
    should have_origin('cf-s3-origin-hosting.dev.example.com')
      .domain_name('cf-s3-origin-hosting.dev.example.com.s3.amazonaws.com')
      .origin_path('/img')
      .origin_access_identity('origin-access-identity/cloudfront/E2VVVVVVVVVVVV')
  end
end
```

### have_origin_domain_name

```ruby
describe cloudfront_distribution('123456789zyxw.cloudfront.net') do
  it { should have_origin_domain_name('cf-s3-origin-hosting.dev.example.com.s3.amazonaws.com') }
end
```

### have_origin_domain_name_and_path

```ruby
describe cloudfront_distribution('123456789zyxw.cloudfront.net') do
  it { should have_origin_domain_name_and_path('cf-s3-origin-hosting.dev.example.com.s3.amazonaws.com/img') }
end
```

Version data entries

81 entries across 81 versions & 3 rubygems

Version Path
awspec-1.18.2 doc/_resource_types/cloudfront_distribution.md
awspec-1.18.1 doc/_resource_types/cloudfront_distribution.md
awspec-1.18.0 doc/_resource_types/cloudfront_distribution.md
awspec-1.17.4 doc/_resource_types/cloudfront_distribution.md
awspec-1.17.3 doc/_resource_types/cloudfront_distribution.md
awspec-1.17.2 doc/_resource_types/cloudfront_distribution.md
awspec-1.17.1 doc/_resource_types/cloudfront_distribution.md
awspec-1.17.0 doc/_resource_types/cloudfront_distribution.md
awspec-1.16.1 doc/_resource_types/cloudfront_distribution.md
awspec-1.16.0 doc/_resource_types/cloudfront_distribution.md
awspec-1.15.3 doc/_resource_types/cloudfront_distribution.md
awspec-1.15.2 doc/_resource_types/cloudfront_distribution.md
awspec-1.15.1 doc/_resource_types/cloudfront_distribution.md
awspec-1.15.0 doc/_resource_types/cloudfront_distribution.md
awspec-1.14.1 doc/_resource_types/cloudfront_distribution.md
awspec-1.14.0 doc/_resource_types/cloudfront_distribution.md
awspec-1.13.0 doc/_resource_types/cloudfront_distribution.md
awspec-1.12.7 doc/_resource_types/cloudfront_distribution.md
awspec-1.12.6 doc/_resource_types/cloudfront_distribution.md
awspec-1.12.5 doc/_resource_types/cloudfront_distribution.md