Sha256: 2a8c6d36a1e44faea94b38087148ccb3d46a734d9538d0802bbdaa895eceea3d
Contents?: true
Size: 1.4 KB
Versions: 3
Compression:
Stored size: 1.4 KB
Contents
### exist ```ruby describe transit_gateway('tgw-1234567890abcdefg') do it { should exist } it { should have_tag('Name').value('my-tgw') } it { should have_attachment('tgw-attach-1234567890abcdefg') } its('options.amazon_side_asn') { should eq 64_516 } its('options.auto_accept_shared_attachments') { should eq 'enable' } its('options.default_route_table_association') { should eq 'enable' } its('options.default_route_table_propagation') { should eq 'enable' } its('options.dns_support') { should eq 'enable' } its('options.vpn_ecmp_support') { should eq 'enable' } its('options.association_default_route_table_id') { should eq 'tgw-rtb-0123456789abcdefg' } its('options.propagation_default_route_table_id') { should eq 'tgw-rtb-0123456789abcdefg' } end ``` ```ruby describe transit_gateway('my-tgw') do it { should exist } its(:transit_gateway_id) { should eq 'tgw-1234567890abcdefg' } end ``` ### have_attachment #### using attachment id ```ruby describe transit_gateway('tgw-1234567890abcdefg') do it { should have_attachment('tgw-attach-1234567890abcdefg') } end ``` #### using attachment name ```ruby describe transit_gateway('tgw-1234567890abcdefg') do it { should have_attachment('my-prod-tgw-attachment') } end ``` #### using regular expression attachment name ```ruby describe transit_gateway('tgw-1234567890abcdefg') do it { should have_attachment(/^my-\w+-tgw-attachment$/) } end ```
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
awspec-1.32.0 | doc/_resource_types/transit_gateway.md |
awspec-1.31.0 | doc/_resource_types/transit_gateway.md |
awspec-1.30.0 | doc/_resource_types/transit_gateway.md |