Sha256: 4c3584744cde115898c22e8f395ed4ca9c17a07c26926391607f6a8ea3e09aa7
Contents?: true
Size: 1.5 KB
Versions: 1
Compression:
Stored size: 1.5 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 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 ``` ### 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
awspec-1.4.0 | doc/_resource_types/cloudfront_distribution.md |