awspec 1.19.1 → 1.22.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/doc/_resource_types/cognito_identity_pool.md +7 -0
  3. data/doc/_resource_types/cognito_user_pool.md +7 -0
  4. data/doc/_resource_types/msk.md +15 -0
  5. data/doc/_resource_types/transit_gateway.md +24 -0
  6. data/doc/_resource_types/vpc_endpoints.md +70 -0
  7. data/doc/resource_types.md +180 -9
  8. data/lib/awspec/generator/doc/type/cognito_identity_pool.rb +17 -0
  9. data/lib/awspec/generator/doc/type/cognito_user_pool.rb +17 -0
  10. data/lib/awspec/generator/doc/type/msk.rb +17 -0
  11. data/lib/awspec/generator/doc/type/transit_gateway.rb +17 -0
  12. data/lib/awspec/generator/doc/type/vpc_endpoints.rb +17 -0
  13. data/lib/awspec/helper/finder.rb +12 -1
  14. data/lib/awspec/helper/finder/cognito_identity_pool.rb +15 -0
  15. data/lib/awspec/helper/finder/cognito_user_pool.rb +15 -0
  16. data/lib/awspec/helper/finder/ec2.rb +10 -1
  17. data/lib/awspec/helper/finder/ecr.rb +4 -0
  18. data/lib/awspec/helper/finder/msk.rb +15 -0
  19. data/lib/awspec/helper/finder/vpc_endpoints.rb +15 -0
  20. data/lib/awspec/helper/type.rb +1 -1
  21. data/lib/awspec/stub/cognito_identity_pool.rb +16 -0
  22. data/lib/awspec/stub/cognito_user_pool.rb +47 -0
  23. data/lib/awspec/stub/msk.rb +84 -0
  24. data/lib/awspec/stub/transit_gateway.rb +52 -0
  25. data/lib/awspec/stub/vpc_endpoints.rb +64 -0
  26. data/lib/awspec/type/cognito_identity_pool.rb +11 -0
  27. data/lib/awspec/type/cognito_user_pool.rb +11 -0
  28. data/lib/awspec/type/ecr_repository.rb +4 -0
  29. data/lib/awspec/type/msk.rb +27 -0
  30. data/lib/awspec/type/security_group.rb +44 -0
  31. data/lib/awspec/type/transit_gateway.rb +24 -0
  32. data/lib/awspec/type/vpc_endpoints.rb +43 -0
  33. data/lib/awspec/version.rb +1 -1
  34. metadata +26 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 18795d83f853defad01b4fba21d8c37adde28239a88695fc6092c9cd3c7bda52
4
- data.tar.gz: 4f1e5ca8c45bf66e2eef19db079c68930895b2f8cf4fee283bfb2d09138211e0
3
+ metadata.gz: 72446a05a02e4d6c9255030d19a09d9cd7d4adf1d98136b34e284572fac17cb2
4
+ data.tar.gz: 2c8a6d67dc3b90491b027acb0540d06feca5fa37347ece6310fe8e0d5e17400a
5
5
  SHA512:
6
- metadata.gz: 17ce9cd02aca06f1ce991448a4e74776d9c795242dfe4297d971cf2cdb97124c4009509c4f2927202081800a3c940aeae627d1548cbd18e9317659b2445ebd92
7
- data.tar.gz: e8a3945166922c258860cc332d802872b47c1dd8551165ec70520cdfaa92734edace4ad9a2b941688771b656a88db2de9bdd313ac75a5f1922d6cdb540a9fce4
6
+ metadata.gz: 42ea8b83ef2eaf477a485e7ec96b0309f5cf110fc78de87f5b161ea05ab4cdf31ba1652ae3863be2cb6bff3f89f6f0ca39f19433ddc0cb40322468042b8d61dd
7
+ data.tar.gz: cb901cca1c2a8041f1a3fec48cd9c44b77ad13a503fc41d559230d799bfb9f55c309b4c267b6af635b17c0c2c4e872a4b97ba10e2260ec5e5ad27201cbee6e4d
@@ -0,0 +1,7 @@
1
+ ### exist
2
+
3
+ ```ruby
4
+ describe cognito_identity_pool('my-cognito-identity-pool') do
5
+ it { should exist }
6
+ end
7
+ ```
@@ -0,0 +1,7 @@
1
+ ### exist
2
+
3
+ ```ruby
4
+ describe cognito_user_pool('my-cognito-user-pool') do
5
+ it { should exist }
6
+ end
7
+ ```
@@ -0,0 +1,15 @@
1
+ ### exist
2
+
3
+ ```ruby
4
+ describe msk('my-msk') do
5
+ it { should exist }
6
+ end
7
+ ```
8
+
9
+ ### should be_active, be_creating, be_updating, be_deleting, be_failed
10
+
11
+ ```ruby
12
+ describe msk('my-msk') do
13
+ it { should be_active }
14
+ end
15
+ ```
@@ -0,0 +1,24 @@
1
+ ### exist
2
+
3
+ ```ruby
4
+ describe transit_gateway('tgw-1234567890abcdefg') do
5
+ it { should exist }
6
+ it { should have_tag('Name').value('my-tgw') }
7
+ it { should have_attachment('tgw-attach-1234567890abcdefg') }
8
+ its('options.amazon_side_asn') { should eq 64_516 }
9
+ its('options.auto_accept_shared_attachments') { should eq 'enable' }
10
+ its('options.default_route_table_association') { should eq 'enable' }
11
+ its('options.default_route_table_propagation') { should eq 'enable' }
12
+ its('options.dns_support') { should eq 'enable' }
13
+ its('options.vpn_ecmp_support') { should eq 'enable' }
14
+ its('options.association_default_route_table_id') { should eq 'tgw-rtb-0123456789abcdefg' }
15
+ its('options.propagation_default_route_table_id') { should eq 'tgw-rtb-0123456789abcdefg' }
16
+ end
17
+ ```
18
+
19
+ ```ruby
20
+ describe transit_gateway('my-tgw') do
21
+ it { should exist }
22
+ its(:transit_gateway_id) { should eq 'tgw-1234567890abcdefg' }
23
+ end
24
+ ```
@@ -0,0 +1,70 @@
1
+ ### exist
2
+
3
+ ```ruby
4
+ describe vpc_endpoints('my-vpc-endpoint') do
5
+ it { should exist }
6
+ end
7
+ ```
8
+
9
+ describe vpc_endpoints('vpce-05907f23265b25f20'), region: $tfvars["region"]["value"] do
10
+ it { should exist }
11
+ it { should be_available }
12
+ it { should have_subnet('subnet-040e19eabf3226f99') }
13
+ it { should belong_to_vpc('vpc-00af9dcc0134b48e0') }
14
+ its(:private_dns_enabled) { should eq true }
15
+ its(:vpc_endpoint_type) { should eq 'Interface' }
16
+ its(:service_name) { should eq 'com.amazonaws.eu-west-1.codebuild' }
17
+ end
18
+
19
+ ### be_pendingacceptance, be_pending, be_available, be_deleting, be_deleted, be_rejected, be_failed, be_expired
20
+
21
+ ```ruby
22
+ describe ami('my-ami') do
23
+ it { should be_available }
24
+ end
25
+ ```
26
+
27
+ ### belong_to_vpc
28
+
29
+ ```ruby
30
+ describe vpc_endpoints('my-vpc-endpoint') do
31
+ it { should belong_to_vpc('my-vpc') }
32
+ end
33
+ ```
34
+
35
+ ### have_route_table
36
+
37
+ ```ruby
38
+ describe vpc_endpoints('my-vpc-endpoint') do
39
+ it { should have_route_table('rtb-abc123') }
40
+ end
41
+ ```
42
+
43
+ ### have_subnet
44
+
45
+ ```ruby
46
+ describe vpc_endpoints('my-vpc-endpoint') do
47
+ it { should have_subnet('subnet-abc123') }
48
+ end
49
+ ```
50
+
51
+ ### have_tag
52
+
53
+ ```ruby
54
+ describe vpc_endpoints('my-vpc-endpoint') do
55
+ it { should have_tag('env').value('dev') }
56
+ end
57
+ ```
58
+
59
+ ### advanced
60
+
61
+ `vpc_endpoints` can use `Aws::EC2::Types::VpcEndpoint` resource (see https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Types/VpcEndpoint.html).
62
+
63
+ ```ruby
64
+ describe vpc_endpoints('my-vpc-endpoint') do
65
+ its(:private_dns_enabled) { should eq true }
66
+ its(:vpc_endpoint_type) { should eq 'Interface' }
67
+ its(:service_name) { should eq 'com.amazonaws.eu-west-1.codebuild' }
68
+ end
69
+ ```
70
+
@@ -19,6 +19,8 @@
19
19
  | [codebuild](#codebuild)
20
20
  | [codedeploy](#codedeploy)
21
21
  | [codedeploy_deployment_group](#codedeploy_deployment_group)
22
+ | [cognito_identity_pool](#cognito_identity_pool)
23
+ | [cognito_user_pool](#cognito_user_pool)
22
24
  | [customer_gateway](#customer_gateway)
23
25
  | [directconnect_virtual_interface](#directconnect_virtual_interface)
24
26
  | [dynamodb_table](#dynamodb_table)
@@ -50,6 +52,7 @@
50
52
  | [launch_configuration](#launch_configuration)
51
53
  | [launch_template](#launch_template)
52
54
  | [mq](#mq)
55
+ | [msk](#msk)
53
56
  | [nat_gateway](#nat_gateway)
54
57
  | [network_acl](#network_acl)
55
58
  | [network_interface](#network_interface)
@@ -71,7 +74,9 @@
71
74
  | [sqs](#sqs)
72
75
  | [ssm_parameter](#ssm_parameter)
73
76
  | [subnet](#subnet)
77
+ | [transit_gateway](#transit_gateway)
74
78
  | [vpc](#vpc)
79
+ | [vpc_endpoints](#vpc_endpoints)
75
80
  | [vpn_connection](#vpn_connection)
76
81
  | [vpn_gateway](#vpn_gateway)
77
82
  | [waf_web_acl](#waf_web_acl)
@@ -198,7 +203,7 @@ describe alb_listener('arn:aws:elasticloadbalancing:ap-northeast-1:1234567890:li
198
203
  end
199
204
  ```
200
205
 
201
- ### its(:listener_arn), its(:load_balancer_arn), its(:port), its(:protocol), its(:certificates), its(:ssl_policy)
206
+ ### its(:listener_arn), its(:load_balancer_arn), its(:port), its(:protocol), its(:certificates), its(:ssl_policy), its(:alpn_policy)
202
207
  ## <a name="alb_target_group">alb_target_group</a>
203
208
 
204
209
  AlbTargetGroup resource type.
@@ -739,6 +744,30 @@ end
739
744
  ```
740
745
 
741
746
  ### its(:application_name), its(:deployment_group_id), its(:deployment_group_name), its(:deployment_config_name), its(:on_premises_instance_tag_filters), its(:service_role_arn), its(:target_revision), its(:trigger_configurations), its(:alarm_configuration), its(:deployment_style), its(:load_balancer_info), its(:last_successful_deployment), its(:last_attempted_deployment), its(:ec2_tag_set), its(:on_premises_tag_set), its(:compute_platform), its(:ecs_services)
747
+ ## <a name="cognito_identity_pool">cognito_identity_pool</a>
748
+
749
+ CognitoIdentityPool resource type.
750
+
751
+ ### exist
752
+
753
+ ```ruby
754
+ describe cognito_identity_pool('my-cognito-identity-pool') do
755
+ it { should exist }
756
+ end
757
+ ```
758
+ ### its(:identity_pool_id), its(:identity_pool_name)
759
+ ## <a name="cognito_user_pool">cognito_user_pool</a>
760
+
761
+ CognitoUserPool resource type.
762
+
763
+ ### exist
764
+
765
+ ```ruby
766
+ describe cognito_user_pool('my-cognito-user-pool') do
767
+ it { should exist }
768
+ end
769
+ ```
770
+ ### its(:id), its(:name), its(:status), its(:last_modified_date), its(:creation_date)
742
771
  ## <a name="customer_gateway">customer_gateway</a>
743
772
 
744
773
  CustomerGateway resource type.
@@ -1275,7 +1304,7 @@ describe efs('my-efs') do
1275
1304
  end
1276
1305
  ```
1277
1306
 
1278
- ### its(:owner_id), its(:creation_token), its(:file_system_id), its(:creation_time), its(:life_cycle_state), its(:name), its(:number_of_mount_targets), its(:performance_mode), its(:encrypted), its(:kms_key_id), its(:throughput_mode), its(:provisioned_throughput_in_mibps)
1307
+ ### its(:owner_id), its(:creation_token), its(:file_system_id), its(:file_system_arn), its(:creation_time), its(:life_cycle_state), its(:name), its(:number_of_mount_targets), its(:performance_mode), its(:encrypted), its(:kms_key_id), its(:throughput_mode), its(:provisioned_throughput_in_mibps)
1279
1308
  ## <a name="elastic_ip">elastic_ip</a>
1280
1309
 
1281
1310
  Elastic IP resource type.
@@ -1620,7 +1649,7 @@ describe emr('my-emr') do
1620
1649
  end
1621
1650
  ```
1622
1651
 
1623
- ### its(:id), its(:name), its(:instance_collection_type), its(:log_uri), its(:requested_ami_version), its(:running_ami_version), its(:release_label), its(:auto_terminate), its(:termination_protected), its(:visible_to_all_users), its(:service_role), its(:normalized_instance_hours), its(:master_public_dns_name), its(:configurations), its(:security_configuration), its(:auto_scaling_role), its(:scale_down_behavior), its(:custom_ami_id), its(:ebs_root_volume_size), its(:repo_upgrade_on_boot), its(:cluster_arn), its(:outpost_arn), its(:step_concurrency_level)
1652
+ ### its(:id), its(:name), its(:instance_collection_type), its(:log_uri), its(:log_encryption_kms_key_id), its(:requested_ami_version), its(:running_ami_version), its(:release_label), its(:auto_terminate), its(:termination_protected), its(:visible_to_all_users), its(:service_role), its(:normalized_instance_hours), its(:master_public_dns_name), its(:configurations), its(:security_configuration), its(:auto_scaling_role), its(:scale_down_behavior), its(:custom_ami_id), its(:ebs_root_volume_size), its(:repo_upgrade_on_boot), its(:cluster_arn), its(:outpost_arn), its(:step_concurrency_level)
1624
1653
  ## <a name="firehose">firehose</a>
1625
1654
 
1626
1655
  Firehose resource type.
@@ -2182,7 +2211,7 @@ end
2182
2211
 
2183
2212
  This matcher does not support Amazon S3 event sources ([see SDK doc](http://docs.aws.amazon.com/sdkforruby/api/Aws/Lambda/Client.html#list_event_source_mappings-instance_method)).
2184
2213
 
2185
- ### its(:function_name), its(:function_arn), its(:runtime), its(:role), its(:handler), its(:code_size), its(:description), its(:timeout), its(:memory_size), its(:last_modified), its(:code_sha_256), its(:version), its(:vpc_config), its(:dead_letter_config), its(:kms_key_arn), its(:master_arn), its(:revision_id), its(:layers), its(:state), its(:state_reason), its(:state_reason_code), its(:last_update_status), its(:last_update_status_reason), its(:last_update_status_reason_code)
2214
+ ### its(:function_name), its(:function_arn), its(:runtime), its(:role), its(:handler), its(:code_size), its(:description), its(:timeout), its(:memory_size), its(:last_modified), its(:code_sha_256), its(:version), its(:vpc_config), its(:dead_letter_config), its(:kms_key_arn), its(:master_arn), its(:revision_id), its(:layers), its(:state), its(:state_reason), its(:state_reason_code), its(:last_update_status), its(:last_update_status_reason), its(:last_update_status_reason_code), its(:file_system_configs)
2186
2215
  ## <a name="launch_configuration">launch_configuration</a>
2187
2216
 
2188
2217
  LaunchConfiguration resource type.
@@ -2206,7 +2235,7 @@ describe launch_configuration('my-lc') do
2206
2235
  end
2207
2236
  ```
2208
2237
 
2209
- ### its(:launch_configuration_name), its(:launch_configuration_arn), its(:image_id), its(:key_name), its(:security_groups), its(:classic_link_vpc_id), its(:classic_link_vpc_security_groups), its(:user_data), its(:instance_type), its(:kernel_id), its(:ramdisk_id), its(:spot_price), its(:iam_instance_profile), its(:created_time), its(:ebs_optimized), its(:associate_public_ip_address), its(:placement_tenancy)
2238
+ ### its(:launch_configuration_name), its(:launch_configuration_arn), its(:image_id), its(:key_name), its(:security_groups), its(:classic_link_vpc_id), its(:classic_link_vpc_security_groups), its(:user_data), its(:instance_type), its(:kernel_id), its(:ramdisk_id), its(:spot_price), its(:iam_instance_profile), its(:created_time), its(:ebs_optimized), its(:associate_public_ip_address), its(:placement_tenancy), its(:metadata_options)
2210
2239
  ## <a name="launch_template">launch_template</a>
2211
2240
 
2212
2241
  LaunchTemplate resource type.
@@ -2304,7 +2333,31 @@ describe mq('my-mq') do
2304
2333
  end
2305
2334
  ```
2306
2335
 
2307
- ### its(:vpc_id), its(:auto_minor_version_upgrade), its(:broker_arn), its(:broker_id), its(:broker_name), its(:broker_state), its(:created), its(:deployment_mode), its(:encryption_options), its(:engine_type), its(:engine_version), its(:host_instance_type), its(:pending_engine_version), its(:pending_host_instance_type), its(:pending_security_groups), its(:publicly_accessible), its(:security_groups), its(:storage_type), its(:subnet_ids)
2336
+ ### its(:vpc_id), its(:authentication_strategy), its(:auto_minor_version_upgrade), its(:broker_arn), its(:broker_id), its(:broker_name), its(:broker_state), its(:created), its(:deployment_mode), its(:encryption_options), its(:engine_type), its(:engine_version), its(:host_instance_type), its(:ldap_server_metadata), its(:pending_authentication_strategy), its(:pending_engine_version), its(:pending_host_instance_type), its(:pending_ldap_server_metadata), its(:pending_security_groups), its(:publicly_accessible), its(:security_groups), its(:storage_type), its(:subnet_ids)
2337
+ ## <a name="msk">msk</a>
2338
+
2339
+ Msk resource type.
2340
+
2341
+ ### exist
2342
+
2343
+ ```ruby
2344
+ describe msk('my-msk') do
2345
+ it { should exist }
2346
+ end
2347
+ ```
2348
+
2349
+
2350
+ ### be_active
2351
+
2352
+ ### be_creating
2353
+
2354
+ ### be_deleting
2355
+
2356
+ ### be_failed
2357
+
2358
+ ### be_updating
2359
+
2360
+ ### its(:active_operation_arn), its(:client_authentication), its(:cluster_arn), its(:cluster_name), its(:creation_time), its(:current_version), its(:enhanced_monitoring), its(:number_of_broker_nodes), its(:state), its(:zookeeper_connect_string)
2308
2361
  ## <a name="nat_gateway">nat_gateway</a>
2309
2362
 
2310
2363
  NatGateway resource type.
@@ -2591,7 +2644,7 @@ describe nlb_listener('arn:aws:elasticloadbalancing:ap-northeast-1:1234567890:li
2591
2644
  end
2592
2645
  ```
2593
2646
 
2594
- ### its(:listener_arn), its(:load_balancer_arn), its(:port), its(:protocol), its(:certificates), its(:ssl_policy)
2647
+ ### its(:listener_arn), its(:load_balancer_arn), its(:port), its(:protocol), its(:certificates), its(:ssl_policy), its(:alpn_policy)
2595
2648
  ## <a name="nlb_target_group">nlb_target_group</a>
2596
2649
 
2597
2650
  NlbTargetGroup resource type.
@@ -2732,7 +2785,7 @@ end
2732
2785
  ```
2733
2786
 
2734
2787
 
2735
- ### its(:vpc_id), its(:db_instance_identifier), its(:db_instance_class), its(:engine), its(:db_instance_status), its(:master_username), its(:db_name), its(:endpoint), its(:allocated_storage), its(:instance_create_time), its(:preferred_backup_window), its(:backup_retention_period), its(:db_security_groups), its(:availability_zone), its(:preferred_maintenance_window), its(:pending_modified_values), its(:latest_restorable_time), its(:multi_az), its(:engine_version), its(:auto_minor_version_upgrade), its(:read_replica_source_db_instance_identifier), its(:read_replica_db_instance_identifiers), its(:read_replica_db_cluster_identifiers), its(:license_model), its(:iops), its(:character_set_name), its(:secondary_availability_zone), its(:publicly_accessible), its(:status_infos), its(:storage_type), its(:tde_credential_arn), its(:db_instance_port), its(:db_cluster_identifier), its(:storage_encrypted), its(:kms_key_id), its(:dbi_resource_id), its(:ca_certificate_identifier), its(:domain_memberships), its(:copy_tags_to_snapshot), its(:monitoring_interval), its(:enhanced_monitoring_resource_arn), its(:monitoring_role_arn), its(:promotion_tier), its(:db_instance_arn), its(:timezone), its(:iam_database_authentication_enabled), its(:performance_insights_enabled), its(:performance_insights_kms_key_id), its(:performance_insights_retention_period), its(:enabled_cloudwatch_logs_exports), its(:processor_features), its(:deletion_protection), its(:associated_roles), its(:listener_endpoint), its(:max_allocated_storage)
2788
+ ### its(:vpc_id), its(:db_instance_identifier), its(:db_instance_class), its(:engine), its(:db_instance_status), its(:master_username), its(:db_name), its(:endpoint), its(:allocated_storage), its(:instance_create_time), its(:preferred_backup_window), its(:backup_retention_period), its(:db_security_groups), its(:availability_zone), its(:preferred_maintenance_window), its(:pending_modified_values), its(:latest_restorable_time), its(:multi_az), its(:engine_version), its(:auto_minor_version_upgrade), its(:read_replica_source_db_instance_identifier), its(:read_replica_db_instance_identifiers), its(:read_replica_db_cluster_identifiers), its(:replica_mode), its(:license_model), its(:iops), its(:character_set_name), its(:secondary_availability_zone), its(:publicly_accessible), its(:status_infos), its(:storage_type), its(:tde_credential_arn), its(:db_instance_port), its(:db_cluster_identifier), its(:storage_encrypted), its(:kms_key_id), its(:dbi_resource_id), its(:ca_certificate_identifier), its(:domain_memberships), its(:copy_tags_to_snapshot), its(:monitoring_interval), its(:enhanced_monitoring_resource_arn), its(:monitoring_role_arn), its(:promotion_tier), its(:db_instance_arn), its(:timezone), its(:iam_database_authentication_enabled), its(:performance_insights_enabled), its(:performance_insights_kms_key_id), its(:performance_insights_retention_period), its(:enabled_cloudwatch_logs_exports), its(:processor_features), its(:deletion_protection), its(:associated_roles), its(:listener_endpoint), its(:max_allocated_storage)
2736
2789
  ### :unlock: Advanced use
2737
2790
 
2738
2791
  `rds` can use `Aws::RDS::DBInstance` resource (see http://docs.aws.amazon.com/sdkforruby/api/Aws/RDS/DBInstance.html).
@@ -3180,7 +3233,7 @@ describe secretsmanager('my-secret') do
3180
3233
  end
3181
3234
  ```
3182
3235
 
3183
- ### its(:arn), its(:name), its(:description), its(:kms_key_id), its(:rotation_enabled), its(:rotation_lambda_arn), its(:last_rotated_date), its(:last_changed_date), its(:last_accessed_date), its(:deleted_date), its(:owning_service)
3236
+ ### its(:arn), its(:name), its(:description), its(:kms_key_id), its(:rotation_enabled), its(:rotation_lambda_arn), its(:last_rotated_date), its(:last_changed_date), its(:last_accessed_date), its(:deleted_date), its(:owning_service), its(:created_date)
3184
3237
  ## <a name="security_group">security_group</a>
3185
3238
 
3186
3239
  SecurityGroup resource type.
@@ -3200,6 +3253,10 @@ end
3200
3253
 
3201
3254
  ### be_outbound_opened_only
3202
3255
 
3256
+ ### have_inbound_rule
3257
+
3258
+ ### have_outbound_rule
3259
+
3203
3260
  ### have_tag
3204
3261
 
3205
3262
  ```ruby
@@ -3452,6 +3509,40 @@ describe subnet('my-subnet') do
3452
3509
  end
3453
3510
  ```
3454
3511
 
3512
+ ## <a name="transit_gateway">transit_gateway</a>
3513
+
3514
+ TransitGateway resource type.
3515
+
3516
+ ### exist
3517
+
3518
+ ```ruby
3519
+ describe transit_gateway('tgw-1234567890abcdefg') do
3520
+ it { should exist }
3521
+ it { should have_tag('Name').value('my-tgw') }
3522
+ it { should have_attachment('tgw-attach-1234567890abcdefg') }
3523
+ its('options.amazon_side_asn') { should eq 64_516 }
3524
+ its('options.auto_accept_shared_attachments') { should eq 'enable' }
3525
+ its('options.default_route_table_association') { should eq 'enable' }
3526
+ its('options.default_route_table_propagation') { should eq 'enable' }
3527
+ its('options.dns_support') { should eq 'enable' }
3528
+ its('options.vpn_ecmp_support') { should eq 'enable' }
3529
+ its('options.association_default_route_table_id') { should eq 'tgw-rtb-0123456789abcdefg' }
3530
+ its('options.propagation_default_route_table_id') { should eq 'tgw-rtb-0123456789abcdefg' }
3531
+ end
3532
+ ```
3533
+
3534
+ ```ruby
3535
+ describe transit_gateway('my-tgw') do
3536
+ it { should exist }
3537
+ its(:transit_gateway_id) { should eq 'tgw-1234567890abcdefg' }
3538
+ end
3539
+ ```
3540
+
3541
+ ### have_attachment
3542
+
3543
+ ### have_tag
3544
+
3545
+ ### its(:transit_gateway_id), its(:transit_gateway_arn), its(:state), its(:owner_id), its(:description), its(:creation_time)
3455
3546
  ## <a name="vpc">vpc</a>
3456
3547
 
3457
3548
  VPC resource type.
@@ -3554,6 +3645,86 @@ describe vpc('my-vpc') do
3554
3645
  end
3555
3646
  ```
3556
3647
 
3648
+ ## <a name="vpc_endpoints">vpc_endpoints</a>
3649
+
3650
+ VpcEndpoints resource type.
3651
+
3652
+ ### exist
3653
+
3654
+ ```ruby
3655
+ describe vpc_endpoints('my-vpc-endpoint') do
3656
+ it { should exist }
3657
+ end
3658
+ ```
3659
+
3660
+ describe vpc_endpoints('vpce-05907f23265b25f20'), region: $tfvars["region"]["value"] do
3661
+ it { should exist }
3662
+ it { should be_available }
3663
+ it { should have_subnet('subnet-040e19eabf3226f99') }
3664
+ it { should belong_to_vpc('vpc-00af9dcc0134b48e0') }
3665
+ its(:private_dns_enabled) { should eq true }
3666
+ its(:vpc_endpoint_type) { should eq 'Interface' }
3667
+ its(:service_name) { should eq 'com.amazonaws.eu-west-1.codebuild' }
3668
+ end
3669
+
3670
+
3671
+ ### be_available
3672
+
3673
+ ### be_deleted
3674
+
3675
+ ### be_deleting
3676
+
3677
+ ### be_expired
3678
+
3679
+ ### be_failed
3680
+
3681
+ ### be_pending
3682
+
3683
+ ### be_pendingacceptance
3684
+
3685
+ ### be_rejected
3686
+
3687
+ ### have_route_table
3688
+
3689
+ ```ruby
3690
+ describe vpc_endpoints('my-vpc-endpoint') do
3691
+ it { should have_route_table('rtb-abc123') }
3692
+ end
3693
+ ```
3694
+
3695
+
3696
+ ### have_subnet
3697
+
3698
+ ```ruby
3699
+ describe vpc_endpoints('my-vpc-endpoint') do
3700
+ it { should have_subnet('subnet-abc123') }
3701
+ end
3702
+ ```
3703
+
3704
+
3705
+ ### have_tag
3706
+
3707
+ ```ruby
3708
+ describe vpc_endpoints('my-vpc-endpoint') do
3709
+ it { should have_tag('env').value('dev') }
3710
+ end
3711
+ ```
3712
+
3713
+
3714
+
3715
+ ### :unlock: Advanced use
3716
+
3717
+ `vpc_endpoints` can use `Aws::EC2::Types::VpcEndpoint` resource (see https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Types/VpcEndpoint.html).
3718
+
3719
+ ```ruby
3720
+ describe vpc_endpoints('my-vpc-endpoint') do
3721
+ its(:private_dns_enabled) { should eq true }
3722
+ its(:vpc_endpoint_type) { should eq 'Interface' }
3723
+ its(:service_name) { should eq 'com.amazonaws.eu-west-1.codebuild' }
3724
+ end
3725
+ ```
3726
+
3727
+
3557
3728
  ## <a name="vpn_connection">vpn_connection</a>
3558
3729
 
3559
3730
  VpnConnection resource type.
@@ -0,0 +1,17 @@
1
+ module Awspec::Generator
2
+ module Doc
3
+ module Type
4
+ class CognitoIdentityPool < Base
5
+ def initialize
6
+ super
7
+ @type_name = 'CognitoIdentityPool'
8
+ @type = Awspec::Type::CognitoIdentityPool.new('my-cognito-identity-pool')
9
+ @ret = @type.resource_via_client
10
+ @matchers = []
11
+ @ignore_matchers = []
12
+ @describes = []
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end