awspec 1.25.2 → 1.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 02cc903214e73de4d0d6ed6bee30b9bf987e9f5ef11387b17686ecb92675aae8
4
- data.tar.gz: e890b372efb87f544a31a91caa358a6a313293edebb7fb66a24dd29fa636b34e
3
+ metadata.gz: 2b09fcc32e566dab95cb91a15aeebfc830f78e251faa9d35301cf6f9ee1bdbed
4
+ data.tar.gz: 716542189697ce5194df4fb4ea4089a4a04ab673dd9e55a301e13f5811559dea
5
5
  SHA512:
6
- metadata.gz: db38f329352a2488a4fafc1c3f324f6653addb8e05585c90cf0644cacb64e75712cb14ac9095f7ca85c465606e9460f262e2438613ff844d99a5aaee79d3b3d8
7
- data.tar.gz: 4655fa571461a651b73c6afd85aabff2c26ccdad639609b6f51a12df3fe09f8df3330d7b7909a67cfafc5c3dd8a89d85be118e17cf2c13ed4d575c95c54ba0de
6
+ metadata.gz: 74e05e9c7fa42a71b976303d3bca7ce40b4f09a405c90154eef6bca0bb0414b8f0e2f11d1365fa4804b236b5cae9c94c8db2230dba9f6f66c33078655028ffb6
7
+ data.tar.gz: a93291cfbe411970f28e3d51a73bb13b68955194a35f4ac8c51def81ad25ceb9609fe99247024ff6e1212294d6b795e649b59ff65a886ee315e507fd8c31deed
@@ -2,7 +2,8 @@ name: CI
2
2
 
3
3
  on:
4
4
  push:
5
- branches: [ master ]
5
+ branches:
6
+ - master
6
7
  pull_request:
7
8
 
8
9
  jobs:
@@ -64,4 +65,4 @@ jobs:
64
65
  run: bundle exec bin/toolbox docgen > doc/resource_types.md
65
66
 
66
67
  - name: Run tests
67
- run: bundle exec rake spec
68
+ run: bundle exec rake spec:parallel
data/Rakefile CHANGED
@@ -6,7 +6,8 @@ begin
6
6
  require 'rspec'
7
7
  require 'rspec/core'
8
8
  require 'rspec/core/rake_task'
9
- require 'octorelease'
9
+ require 'octorelease' unless ENV['CI']
10
+ require 'parallel'
10
11
  require 'rubocop/rake_task'
11
12
  rescue LoadError
12
13
  end
@@ -20,6 +21,18 @@ end
20
21
  if defined?(RSpec)
21
22
  task spec: 'spec:all'
22
23
  namespace :spec do
24
+ task :parallel do
25
+ Parallel.each(types.concat([
26
+ 'spec:account',
27
+ 'spec:core',
28
+ 'spec:generator_spec',
29
+ 'spec:generator_doc',
30
+ 'spec:helper'
31
+ ])) do |t|
32
+ puts ''
33
+ Rake::Task[t].execute
34
+ end
35
+ end
23
36
  task all: ['spec:type',
24
37
  'spec:account',
25
38
  'spec:core',
data/awspec.gemspec CHANGED
@@ -32,6 +32,7 @@ Gem::Specification.new do |spec|
32
32
  spec.add_runtime_dependency 'thor'
33
33
  spec.add_development_dependency 'bundler', '>= 1.9', '< 3.0'
34
34
  spec.add_development_dependency 'octorelease'
35
+ spec.add_development_dependency 'parallel'
35
36
  spec.add_development_dependency 'pry'
36
37
  spec.add_development_dependency 'rake', '~> 12.0'
37
38
  spec.add_development_dependency 'rubocop'
@@ -0,0 +1,23 @@
1
+ ### exist
2
+
3
+ ```ruby
4
+ describe transfer_server('s-4dc0a424f0154fa89') do
5
+ it { should exist }
6
+ end
7
+ ```
8
+
9
+ ### be_offline, be_online, be_starting, be_stopping, be_start_failed, be_stop_failed
10
+
11
+ ```ruby
12
+ describe transfer_server('s-4dc0a424f0154fa89') do
13
+ it { should be_online }
14
+ end
15
+ ```
16
+
17
+ ### have_tag
18
+ ```
19
+ describe transfer_server('s-4dc0a424f0154fa89') do
20
+ it { should have_tag('env').value('dev') }
21
+ end
22
+ ```
23
+
@@ -75,6 +75,7 @@
75
75
  | [sqs](#sqs)
76
76
  | [ssm_parameter](#ssm_parameter)
77
77
  | [subnet](#subnet)
78
+ | [transfer_server](#transfer_server)
78
79
  | [transit_gateway](#transit_gateway)
79
80
  | [vpc](#vpc)
80
81
  | [vpc_endpoints](#vpc_endpoints)
@@ -273,7 +274,7 @@ end
273
274
 
274
275
  ### have_tag
275
276
 
276
- ### its(:architecture), its(:creation_date), its(:image_id), its(:image_location), its(:image_type), its(:public), its(:kernel_id), its(:owner_id), its(:platform), its(:platform_details), its(:usage_operation), its(:ramdisk_id), its(:state), its(:description), its(:ena_support), its(:hypervisor), its(:image_owner_alias), its(:name), its(:root_device_name), its(:root_device_type), its(:sriov_net_support), its(:state_reason), its(:virtualization_type), its(:boot_mode), its(:deprecation_time)
277
+ ### its(:architecture), its(:creation_date), its(:image_id), its(:image_location), its(:image_type), its(:public), its(:kernel_id), its(:owner_id), its(:platform), its(:platform_details), its(:usage_operation), its(:ramdisk_id), its(:state), its(:description), its(:ena_support), its(:hypervisor), its(:image_owner_alias), its(:name), its(:root_device_name), its(:root_device_type), its(:sriov_net_support), its(:state_reason), its(:virtualization_type), its(:boot_mode), its(:tpm_support), its(:deprecation_time)
277
278
  ### :unlock: Advanced use
278
279
 
279
280
  `ami` can use `Aws::EC2::Image` resource (see http://docs.aws.amazon.com/sdkforruby/api/Aws/EC2/Image.html).
@@ -360,7 +361,7 @@ describe autoscaling_group('my-auto-scaling-group') do
360
361
  end
361
362
  ```
362
363
 
363
- ### its(:auto_scaling_group_name), its(:auto_scaling_group_arn), its(:launch_configuration_name), its(:launch_template), its(:mixed_instances_policy), its(:min_size), its(:max_size), its(:desired_capacity), its(:predicted_capacity), its(:default_cooldown), its(:availability_zones), its(:load_balancer_names), its(:target_group_arns), its(:health_check_type), its(:health_check_grace_period), its(:created_time), its(:placement_group), its(:vpc_zone_identifier), its(:enabled_metrics), its(:status), its(:termination_policies), its(:new_instances_protected_from_scale_in), its(:service_linked_role_arn), its(:max_instance_lifetime), its(:capacity_rebalance), its(:warm_pool_configuration), its(:warm_pool_size), its(:context), its(:desired_capacity_type)
364
+ ### its(:auto_scaling_group_name), its(:auto_scaling_group_arn), its(:launch_configuration_name), its(:launch_template), its(:mixed_instances_policy), its(:min_size), its(:max_size), its(:desired_capacity), its(:predicted_capacity), its(:default_cooldown), its(:availability_zones), its(:load_balancer_names), its(:target_group_arns), its(:health_check_type), its(:health_check_grace_period), its(:created_time), its(:placement_group), its(:vpc_zone_identifier), its(:enabled_metrics), its(:status), its(:termination_policies), its(:new_instances_protected_from_scale_in), its(:service_linked_role_arn), its(:max_instance_lifetime), its(:capacity_rebalance), its(:warm_pool_configuration), its(:warm_pool_size), its(:context), its(:desired_capacity_type), its(:default_instance_warmup)
364
365
  ## <a name="batch_compute_environment">batch_compute_environment</a>
365
366
 
366
367
  BatchComputeEnvironment resource type.
@@ -399,7 +400,7 @@ end
399
400
 
400
401
  ### be_unmanaged
401
402
 
402
- ### its(:compute_environment_name), its(:compute_environment_arn), its(:unmanagedv_cpus), its(:ecs_cluster_arn), its(:tags), its(:type), its(:state), its(:status), its(:status_reason), its(:service_role)
403
+ ### its(:compute_environment_name), its(:compute_environment_arn), its(:unmanagedv_cpus), its(:ecs_cluster_arn), its(:tags), its(:type), its(:state), its(:status), its(:status_reason), its(:service_role), its(:update_policy)
403
404
  ## <a name="batch_job_definition">batch_job_definition</a>
404
405
 
405
406
  BatchJobDefinition resource type.
@@ -1127,7 +1128,7 @@ end
1127
1128
  ```
1128
1129
 
1129
1130
 
1130
- ### its(:ami_launch_index), its(:image_id), its(:instance_id), its(:instance_type), its(:kernel_id), its(:key_name), its(:launch_time), its(:monitoring), its(:placement), its(:platform), its(:private_dns_name), its(:private_ip_address), its(:product_codes), its(:public_dns_name), its(:public_ip_address), its(:ramdisk_id), its(:state_transition_reason), its(:subnet_id), its(:vpc_id), its(:architecture), its(:client_token), its(:ebs_optimized), its(:ena_support), its(:hypervisor), its(:instance_lifecycle), its(:elastic_gpu_associations), its(:elastic_inference_accelerator_associations), its(:outpost_arn), its(:root_device_name), its(:root_device_type), its(:source_dest_check), its(:spot_instance_request_id), its(:sriov_net_support), its(:state_reason), its(:virtualization_type), its(:cpu_options), its(:capacity_reservation_id), its(:capacity_reservation_specification), its(:hibernation_options), its(:licenses), its(:metadata_options), its(:enclave_options), its(:boot_mode), its(:platform_details), its(:usage_operation), its(:usage_operation_update_time), its(:private_dns_name_options), its(:ipv_6_address)
1131
+ ### its(:ami_launch_index), its(:image_id), its(:instance_id), its(:instance_type), its(:kernel_id), its(:key_name), its(:launch_time), its(:monitoring), its(:placement), its(:platform), its(:private_dns_name), its(:private_ip_address), its(:product_codes), its(:public_dns_name), its(:public_ip_address), its(:ramdisk_id), its(:state_transition_reason), its(:subnet_id), its(:vpc_id), its(:architecture), its(:client_token), its(:ebs_optimized), its(:ena_support), its(:hypervisor), its(:instance_lifecycle), its(:elastic_gpu_associations), its(:elastic_inference_accelerator_associations), its(:outpost_arn), its(:root_device_name), its(:root_device_type), its(:source_dest_check), its(:spot_instance_request_id), its(:sriov_net_support), its(:state_reason), its(:virtualization_type), its(:cpu_options), its(:capacity_reservation_id), its(:capacity_reservation_specification), its(:hibernation_options), its(:licenses), its(:metadata_options), its(:enclave_options), its(:boot_mode), its(:platform_details), its(:usage_operation), its(:usage_operation_update_time), its(:private_dns_name_options), its(:ipv_6_address), its(:tpm_support), its(:maintenance_options)
1131
1132
  ### :unlock: Advanced use
1132
1133
 
1133
1134
  `ec2` can use `Aws::EC2::Instance` resource (see http://docs.aws.amazon.com/sdkforruby/api/Aws/EC2/Instance.html).
@@ -1573,7 +1574,7 @@ end
1573
1574
  ```
1574
1575
 
1575
1576
 
1576
- ### its(:domain_id), its(:domain_name), its(:arn), its(:created), its(:deleted), its(:endpoint), its(:endpoints), its(:processing), its(:upgrade_processing), its(:elasticsearch_version), its(:access_policies), its(:snapshot_options), its(:vpc_options), its(:cognito_options), its(:encryption_at_rest_options), its(:node_to_node_encryption_options), its(:advanced_options), its(:log_publishing_options), its(:service_software_options), its(:domain_endpoint_options), its(:advanced_security_options), its(:auto_tune_options)
1577
+ ### its(:domain_id), its(:domain_name), its(:arn), its(:created), its(:deleted), its(:endpoint), its(:endpoints), its(:processing), its(:upgrade_processing), its(:elasticsearch_version), its(:access_policies), its(:snapshot_options), its(:vpc_options), its(:cognito_options), its(:encryption_at_rest_options), its(:node_to_node_encryption_options), its(:advanced_options), its(:log_publishing_options), its(:service_software_options), its(:domain_endpoint_options), its(:advanced_security_options), its(:auto_tune_options), its(:change_progress_details)
1577
1578
  ## <a name="elastictranscoder_pipeline">elastictranscoder_pipeline</a>
1578
1579
 
1579
1580
  ElastictranscoderPipeline resource type.
@@ -1718,7 +1719,7 @@ describe emr('my-emr') do
1718
1719
  end
1719
1720
  ```
1720
1721
 
1721
- ### 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), its(:placement_groups)
1722
+ ### 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), its(:placement_groups), its(:os_release_label)
1722
1723
  ## <a name="firehose">firehose</a>
1723
1724
 
1724
1725
  Firehose resource type.
@@ -2231,7 +2232,7 @@ DOC
2231
2232
  end
2232
2233
  ```
2233
2234
 
2234
- ### its(:aws_account_id), its(:key_id), its(:arn), its(:creation_date), its(:enabled), its(:description), its(:key_usage), its(:key_state), its(:deletion_date), its(:valid_to), its(:origin), its(:custom_key_store_id), its(:cloud_hsm_cluster_id), its(:expiration_model), its(:key_manager), its(:customer_master_key_spec), its(:key_spec), its(:encryption_algorithms), its(:signing_algorithms), its(:multi_region), its(:multi_region_configuration), its(:pending_deletion_window_in_days)
2235
+ ### its(:aws_account_id), its(:key_id), its(:arn), its(:creation_date), its(:enabled), its(:description), its(:key_usage), its(:key_state), its(:deletion_date), its(:valid_to), its(:origin), its(:custom_key_store_id), its(:cloud_hsm_cluster_id), its(:expiration_model), its(:key_manager), its(:customer_master_key_spec), its(:key_spec), its(:encryption_algorithms), its(:signing_algorithms), its(:multi_region), its(:multi_region_configuration), its(:pending_deletion_window_in_days), its(:mac_algorithms)
2235
2236
  ## <a name="lambda">lambda</a>
2236
2237
 
2237
2238
  Lambda resource type.
@@ -2280,7 +2281,7 @@ end
2280
2281
 
2281
2282
  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)).
2282
2283
 
2283
- ### 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), its(:package_type), its(:image_config_response), its(:signing_profile_version_arn), its(:signing_job_arn), its(:architectures)
2284
+ ### 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), its(:package_type), its(:image_config_response), its(:signing_profile_version_arn), its(:signing_job_arn), its(:architectures), its(:ephemeral_storage)
2284
2285
  ## <a name="launch_configuration">launch_configuration</a>
2285
2286
 
2286
2287
  LaunchConfiguration resource type.
@@ -2402,7 +2403,7 @@ describe mq('my-mq') do
2402
2403
  end
2403
2404
  ```
2404
2405
 
2405
- ### 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)
2406
+ ### its(:vpc_id), its(:actions_required), 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)
2406
2407
  ## <a name="msk">msk</a>
2407
2408
 
2408
2409
  Msk resource type.
@@ -2854,7 +2855,7 @@ end
2854
2855
  ```
2855
2856
 
2856
2857
 
2857
- ### its(:vpc_id), its(:db_instance_identifier), its(:db_instance_class), its(:engine), its(:db_instance_status), its(:automatic_restart_time), 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(:nchar_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), its(:tag_list), its(:db_instance_automated_backups_replications), its(:customer_owned_ip_enabled), its(:aws_backup_recovery_point_arn), its(:activity_stream_status), its(:activity_stream_kms_key_id), its(:activity_stream_kinesis_stream_name), its(:activity_stream_mode), its(:activity_stream_engine_native_audit_fields_included), its(:automation_mode), its(:resume_full_automation_mode_time), its(:custom_iam_instance_profile), its(:backup_target)
2858
+ ### its(:vpc_id), its(:db_instance_identifier), its(:db_instance_class), its(:engine), its(:db_instance_status), its(:automatic_restart_time), 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(:nchar_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), its(:tag_list), its(:db_instance_automated_backups_replications), its(:customer_owned_ip_enabled), its(:aws_backup_recovery_point_arn), its(:activity_stream_status), its(:activity_stream_kms_key_id), its(:activity_stream_kinesis_stream_name), its(:activity_stream_mode), its(:activity_stream_engine_native_audit_fields_included), its(:automation_mode), its(:resume_full_automation_mode_time), its(:custom_iam_instance_profile), its(:backup_target), its(:network_type)
2858
2859
  ### :unlock: Advanced use
2859
2860
 
2860
2861
  `rds` can use `Aws::RDS::DBInstance` resource (see http://docs.aws.amazon.com/sdkforruby/api/Aws/RDS/DBInstance.html).
@@ -3587,6 +3588,37 @@ describe subnet('my-subnet') do
3587
3588
  end
3588
3589
  ```
3589
3590
 
3591
+ ## <a name="transfer_server">transfer_server</a>
3592
+
3593
+ TransferServer resource type.
3594
+
3595
+ ### exist
3596
+
3597
+ ```ruby
3598
+ describe transfer_server('s-4dc0a424f0154fa89') do
3599
+ it { should exist }
3600
+ end
3601
+ ```
3602
+
3603
+
3604
+ ### be_offline, be_online, be_starting, be_stopping, be_start_failed, be_stop_failed
3605
+
3606
+ ```ruby
3607
+ describe transfer_server('s-4dc0a424f0154fa89') do
3608
+ it { should be_online }
3609
+ end
3610
+ ```
3611
+
3612
+
3613
+ ### have_tag
3614
+ ```
3615
+ describe transfer_server('s-4dc0a424f0154fa89') do
3616
+ it { should have_tag('env').value('dev') }
3617
+ end
3618
+ ```
3619
+
3620
+
3621
+ ### its(:arn), its(:certificate), its(:protocol_details), its(:domain), its(:endpoint_type), its(:host_key_fingerprint), its(:identity_provider_details), its(:identity_provider_type), its(:logging_role), its(:post_authentication_login_banner), its(:pre_authentication_login_banner), its(:protocols), its(:security_policy_name), its(:server_id), its(:state), its(:user_count), its(:workflow_details)
3590
3622
  ## <a name="transit_gateway">transit_gateway</a>
3591
3623
 
3592
3624
  TransitGateway resource type.
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Awspec::Generator
4
+ module Doc
5
+ module Type
6
+ class TransferServer < Base
7
+ def initialize
8
+ super
9
+ @type_name = 'TransferServer'
10
+ @type = Awspec::Type::TransferServer.new('s-4dc0a424f0154fa89')
11
+ @ret = @type.resource_via_client
12
+ @matchers = [
13
+ Awspec::Type::TransferServer::STATES.map { |state| "be_#{state.downcase.tr('-', '_')}" }.join(', ')
14
+ ]
15
+ @ignore_matchers = Awspec::Type::TransferServer::STATES.map { |state| "be_#{state.downcase.tr('-', '_')}" }
16
+ @describes = []
17
+ end
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Awspec::Helper
4
+ module Finder
5
+ module Transfer
6
+ def find_transfer_server(id)
7
+ res = transfer_client.describe_server(server_id: id)
8
+ res.server
9
+ end
10
+ end
11
+ end
12
+ end
@@ -4,12 +4,27 @@ module Awspec::Helper
4
4
  module Finder
5
5
  module VpcEndpoints
6
6
  def find_vpc_endpoint(id)
7
- res = ec2_client.describe_vpc_endpoints({ vpc_endpoint_ids: [id] })
7
+ res = ec2_client.describe_vpc_endpoints({
8
+ filters: [{ name: 'vpc-endpoint-id', values: [id] }]
9
+ })
8
10
 
9
11
  ret = res.vpc_endpoints.select do |vpce|
10
12
  vpce.vpc_endpoint_id == id
11
13
  end
12
14
 
15
+ resource = ret.single_resource(id)
16
+ return resource if resource
17
+
18
+ res = ec2_client.describe_vpc_endpoints({
19
+ filters: [{ name: 'tag:Name', values: [id] }]
20
+ })
21
+
22
+ ret = res.vpc_endpoints.select do |vpce|
23
+ vpce.tags.find do |tag|
24
+ tag.key == 'Name' && tag.value == id
25
+ end
26
+ end
27
+
13
28
  ret.single_resource(id)
14
29
  end
15
30
  end
@@ -53,6 +53,7 @@ require 'awspec/helper/finder/secretsmanager'
53
53
  require 'awspec/helper/finder/cognito_user_pool'
54
54
  require 'awspec/helper/finder/msk'
55
55
  require 'awspec/helper/finder/cognito_identity_pool'
56
+ require 'awspec/helper/finder/transfer'
56
57
 
57
58
  require 'awspec/helper/finder/account_attributes'
58
59
 
@@ -113,6 +114,7 @@ module Awspec::Helper
113
114
  include Awspec::Helper::Finder::CognitoUserPool
114
115
  include Awspec::Helper::Finder::Msk
115
116
  include Awspec::Helper::Finder::CognitoIdentityPool
117
+ include Awspec::Helper::Finder::Transfer
116
118
 
117
119
  CLIENTS = {
118
120
  ec2_client: Aws::EC2::Client,
@@ -160,7 +162,8 @@ module Awspec::Helper
160
162
  secretsmanager_client: Aws::SecretsManager::Client,
161
163
  msk_client: Aws::Kafka::Client,
162
164
  cognito_identity_client: Aws::CognitoIdentity::Client,
163
- cognito_identity_provider_client: Aws::CognitoIdentityProvider::Client
165
+ cognito_identity_provider_client: Aws::CognitoIdentityProvider::Client,
166
+ transfer_client: Aws::Transfer::Client
164
167
  }
165
168
 
166
169
  CLIENT_OPTIONS = {
@@ -23,6 +23,7 @@ module Awspec
23
23
  internet_gateway acm cloudwatch_logs dynamodb_table eip sqs ssm_parameter cloudformation_stack
24
24
  codebuild sns_topic redshift redshift_cluster_parameter_group codedeploy codedeploy_deployment_group
25
25
  secretsmanager msk transit_gateway cognito_identity_pool cognito_user_pool vpc_endpoints
26
+ transfer_server
26
27
  ]
27
28
 
28
29
  ACCOUNT_ATTRIBUTES = %w[
@@ -0,0 +1,41 @@
1
+ # frozen_string_literal: true
2
+
3
+ Aws.config[:transfer] = {
4
+ stub_responses: {
5
+ describe_server: {
6
+ server: Aws::Transfer::Types::DescribedServer.new(
7
+ arn: 'arn:aws:transfer:us-east-1:1234567890:server/s-4dc0a424f0154fa89',
8
+ domain: 'S3',
9
+ endpoint_details: Aws::Transfer::Types::EndpointDetails.new(
10
+ address_allocation_ids: %w[
11
+ eipalloc-00000000000000001
12
+ eipalloc-00000000000000002
13
+ eipalloc-00000000000000003
14
+ ],
15
+ subnet_ids: %w[
16
+ subnet-0000000000000000a
17
+ subnet-0000000000000000b
18
+ subnet-0000000000000000c
19
+ ],
20
+ vpc_endpoint_id: 'vpce-00000000000000001',
21
+ vpc_id: 'vpc-0123456789abcdefg'
22
+ ),
23
+ endpoint_type: 'VPC',
24
+ host_key_fingerprint: 'SHA256:0pj2UnuoFAKEfHrCZwfPwuFinG3RJEVir/m8bPRINTo=',
25
+ identity_provider_type: 'SERVICE_MANAGED',
26
+ logging_role: 'arn:aws:iam::1234567890:role/service-role/AWSTransferLoggingAccess',
27
+ protocols: ['SFTP'],
28
+ security_policy_name: 'TransferSecurityPolicy-2018-11',
29
+ server_id: 's-4dc0a424f0154fa89',
30
+ state: 'ONLINE',
31
+ tags: [
32
+ Aws::Transfer::Types::Tag.new(
33
+ key: 'env',
34
+ value: 'dev'
35
+ )
36
+ ],
37
+ user_count: 13
38
+ )
39
+ }
40
+ }
41
+ }
@@ -0,0 +1,28 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Awspec::Type
4
+ class TransferServer < ResourceBase
5
+ attr_reader :id
6
+
7
+ tags_allowed
8
+
9
+ def initialize(id)
10
+ super
11
+ @id = id
12
+ end
13
+
14
+ def resource_via_client
15
+ @resource_via_client ||= find_transfer_server(@id)
16
+ end
17
+
18
+ STATES = %w[
19
+ OFFLINE ONLINE STARTING STOPPING START_FAILED STOP_FAILED
20
+ ]
21
+
22
+ STATES.each do |state|
23
+ define_method "#{state.downcase.tr('-', '_')}?" do
24
+ resource_via_client.state == state
25
+ end
26
+ end
27
+ end
28
+ end
@@ -27,6 +27,11 @@ module Awspec::Type
27
27
  def has_route_table?(route_table_id)
28
28
  rts = resource_via_client.route_table_ids
29
29
 
30
+ ret = find_route_table(route_table_id)
31
+ if ret && rts.include?(ret.route_table_id)
32
+ return true
33
+ end
34
+
30
35
  ret = rts.find do |rt|
31
36
  rt == route_table_id
32
37
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Awspec
4
- VERSION = '1.25.2'
4
+ VERSION = '1.26.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.25.2
4
+ version: 1.26.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - k1LoW
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-01-25 00:00:00.000000000 Z
11
+ date: 2022-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -170,6 +170,20 @@ dependencies:
170
170
  - - ">="
171
171
  - !ruby/object:Gem::Version
172
172
  version: '0'
173
+ - !ruby/object:Gem::Dependency
174
+ name: parallel
175
+ requirement: !ruby/object:Gem::Requirement
176
+ requirements:
177
+ - - ">="
178
+ - !ruby/object:Gem::Version
179
+ version: '0'
180
+ type: :development
181
+ prerelease: false
182
+ version_requirements: !ruby/object:Gem::Requirement
183
+ requirements:
184
+ - - ">="
185
+ - !ruby/object:Gem::Version
186
+ version: '0'
173
187
  - !ruby/object:Gem::Dependency
174
188
  name: pry
175
189
  requirement: !ruby/object:Gem::Requirement
@@ -310,6 +324,7 @@ files:
310
324
  - doc/_resource_types/sqs.md
311
325
  - doc/_resource_types/ssm_parameter.md
312
326
  - doc/_resource_types/subnet.md
327
+ - doc/_resource_types/transfer_server.md
313
328
  - doc/_resource_types/transit_gateway.md
314
329
  - doc/_resource_types/vpc.md
315
330
  - doc/_resource_types/vpc_endpoints.md
@@ -415,6 +430,7 @@ files:
415
430
  - lib/awspec/generator/doc/type/sqs.rb
416
431
  - lib/awspec/generator/doc/type/ssm_parameter.rb
417
432
  - lib/awspec/generator/doc/type/subnet.rb
433
+ - lib/awspec/generator/doc/type/transfer_server.rb
418
434
  - lib/awspec/generator/doc/type/transit_gateway.rb
419
435
  - lib/awspec/generator/doc/type/vpc.rb
420
436
  - lib/awspec/generator/doc/type/vpc_endpoints.rb
@@ -515,6 +531,7 @@ files:
515
531
  - lib/awspec/helper/finder/sqs.rb
516
532
  - lib/awspec/helper/finder/ssm_parameter.rb
517
533
  - lib/awspec/helper/finder/subnet.rb
534
+ - lib/awspec/helper/finder/transfer.rb
518
535
  - lib/awspec/helper/finder/vpc.rb
519
536
  - lib/awspec/helper/finder/vpc_endpoints.rb
520
537
  - lib/awspec/helper/finder/waf.rb
@@ -649,6 +666,7 @@ files:
649
666
  - lib/awspec/stub/sqs.rb
650
667
  - lib/awspec/stub/ssm_parameter.rb
651
668
  - lib/awspec/stub/subnet.rb
669
+ - lib/awspec/stub/transfer_server.rb
652
670
  - lib/awspec/stub/transit_gateway.rb
653
671
  - lib/awspec/stub/vpc.rb
654
672
  - lib/awspec/stub/vpc_endpoints.rb
@@ -741,6 +759,7 @@ files:
741
759
  - lib/awspec/type/sqs.rb
742
760
  - lib/awspec/type/ssm_parameter.rb
743
761
  - lib/awspec/type/subnet.rb
762
+ - lib/awspec/type/transfer_server.rb
744
763
  - lib/awspec/type/transit_gateway.rb
745
764
  - lib/awspec/type/vpc.rb
746
765
  - lib/awspec/type/vpc_endpoints.rb