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.30.0 doc/_resource_types/cloudfront_distribution.md
awspec-1.29.3 doc/_resource_types/cloudfront_distribution.md
awspec-1.29.2 doc/_resource_types/cloudfront_distribution.md
awspec-1.29.1 doc/_resource_types/cloudfront_distribution.md
awspec-1.29.0 doc/_resource_types/cloudfront_distribution.md
awspec-1.28.2 doc/_resource_types/cloudfront_distribution.md
awspec-1.28.1 doc/_resource_types/cloudfront_distribution.md
awspec-1.28.0 doc/_resource_types/cloudfront_distribution.md
awspec-1.27.1 doc/_resource_types/cloudfront_distribution.md
awspec-1.27.0 doc/_resource_types/cloudfront_distribution.md
awspec-1.26.0 doc/_resource_types/cloudfront_distribution.md
awspec-1.25.2 doc/_resource_types/cloudfront_distribution.md
awspec-1.25.1 doc/_resource_types/cloudfront_distribution.md
awspec-1.25.0 doc/_resource_types/cloudfront_distribution.md
awspec-1.24.4 doc/_resource_types/cloudfront_distribution.md
awspec-1.24.3 doc/_resource_types/cloudfront_distribution.md
awspec-1.24.2 doc/_resource_types/cloudfront_distribution.md
awspec-1.24.1 doc/_resource_types/cloudfront_distribution.md
awspec-1.24.0 doc/_resource_types/cloudfront_distribution.md
awspec-1.23.0 doc/_resource_types/cloudfront_distribution.md