transit_gateway_route_table_id = input(:transit_gateway_route_table_id, value: '', description: 'The ID of the transit gateway route table.')
transit_gateway_id = input(:transit_gateway_id, value: '', description: 'The ID of the transit gateway.')
state = input(:state, value: '', description: 'The state of the route table (available | deleting | deleted | pending).')
default_association_route_table = input(:default_association_route_table, value: '', description: 'Indicates whether this is the default association route table for the transit gateway (true | false).')
default_propagation_route_table = input(:default_propagation_route_table, value: '', description: 'Indicates whether this is the default propagation route table for the transit gateway (true | false)')
creation_time = input(:creation_time, value: '', description: 'The creation time of the transit gateway route table.')
tags = input(:tags, value: '', description: 'The tags of the transit gateway route table.')

control 'aws-transit-gateway-route-tables-1.0' do
      title 'Describes one or more transit gateway route tables. By default, all transit gateway route tables are described. Alternatively, you can filter the results.'
    
    describe aws_ec2_transit_gateway_route_tables do
        it { should exist }
        its('count') { should be <= 100 }
        its('transit_gateway_route_table_ids') {should include transit_gateway_route_table_id }
        its('transit_gateway_ids') {should include transit_gateway_id }
        its('states') {should include state }
        its('default_association_route_tables') {should include default_association_route_table }
        its('default_propagation_route_tables') {should include default_propagation_route_table }
        its('tags') { should_not be_empty }
    end
end
