awspec 1.22.1 → 1.23.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/_resource_types/s3_bucket.md +8 -0
- data/doc/resource_types.md +25 -16
- data/lib/awspec/generator/spec/iam_group.rb +1 -1
- data/lib/awspec/generator/spec/iam_role.rb +1 -1
- data/lib/awspec/generator/spec/iam_user.rb +1 -1
- data/lib/awspec/generator/spec/s3_bucket.rb +4 -0
- data/lib/awspec/helper/finder/s3.rb +7 -0
- data/lib/awspec/stub/s3_bucket.rb +3 -0
- data/lib/awspec/type/iam_group.rb +1 -1
- data/lib/awspec/type/iam_role.rb +1 -1
- data/lib/awspec/type/iam_user.rb +1 -1
- data/lib/awspec/type/kms.rb +1 -1
- data/lib/awspec/type/s3_bucket.rb +5 -0
- data/lib/awspec/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3683e20703611775885296492d8176db1f32dab524629c7b8fd1fd382eaf93ae
|
4
|
+
data.tar.gz: 749defc0394a9f10122b69eed8a5dcc1c3c9441027d09ebd7e5415512b4d34cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce3ac75c16d6f9892fe947dea6b485dbf706e49e707ad501c24abf25d529f7c08c6cb6998b9578e2fef0f12bfe4633ab4f35bcd4af138d205214fa892b011f7d
|
7
|
+
data.tar.gz: e78e2c6a3a1ca859f88e53ff22bb4a64d482b7b22e54420c3bc364a80b59a1a718f1ab0066ceabb73253f5aab424ac666cb8fb83fac1a03021844b25d7878f23
|
data/doc/resource_types.md
CHANGED
@@ -272,7 +272,7 @@ end
|
|
272
272
|
|
273
273
|
### have_tag
|
274
274
|
|
275
|
-
### 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)
|
275
|
+
### 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)
|
276
276
|
### :unlock: Advanced use
|
277
277
|
|
278
278
|
`ami` can use `Aws::EC2::Image` resource (see http://docs.aws.amazon.com/sdkforruby/api/Aws/EC2/Image.html).
|
@@ -359,7 +359,7 @@ describe autoscaling_group('my-auto-scaling-group') do
|
|
359
359
|
end
|
360
360
|
```
|
361
361
|
|
362
|
-
### 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(: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)
|
362
|
+
### 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(: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)
|
363
363
|
## <a name="batch_compute_environment">batch_compute_environment</a>
|
364
364
|
|
365
365
|
BatchComputeEnvironment resource type.
|
@@ -411,7 +411,7 @@ describe batch_job_definition('my-batch-job-definition') do
|
|
411
411
|
end
|
412
412
|
```
|
413
413
|
|
414
|
-
### its(:job_definition_name), its(:job_definition_arn), its(:revision), its(:status), its(:type), its(:parameters), its(:retry_strategy), its(:timeout), its(:node_properties), its(:tags)
|
414
|
+
### its(:job_definition_name), its(:job_definition_arn), its(:revision), its(:status), its(:type), its(:parameters), its(:retry_strategy), its(:timeout), its(:node_properties), its(:tags), its(:propagate_tags), its(:platform_capabilities)
|
415
415
|
## <a name="batch_job_queue">batch_job_queue</a>
|
416
416
|
|
417
417
|
BatchJobQueue resource type.
|
@@ -743,7 +743,7 @@ describe codedeploy_deployment_group('my-codedeploy-deployment-group'), applicat
|
|
743
743
|
end
|
744
744
|
```
|
745
745
|
|
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)
|
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(:outdated_instances_strategy), 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
747
|
## <a name="cognito_identity_pool">cognito_identity_pool</a>
|
748
748
|
|
749
749
|
CognitoIdentityPool resource type.
|
@@ -931,7 +931,7 @@ end
|
|
931
931
|
```
|
932
932
|
|
933
933
|
|
934
|
-
### its(:availability_zone), its(:create_time), its(:encrypted), its(:kms_key_id), its(:outpost_arn), its(:size), its(:snapshot_id), its(:state), its(:volume_id), its(:iops), its(:volume_type), its(:fast_restored), its(:multi_attach_enabled)
|
934
|
+
### its(:availability_zone), its(:create_time), its(:encrypted), its(:kms_key_id), its(:outpost_arn), its(:size), its(:snapshot_id), its(:state), its(:volume_id), its(:iops), its(:volume_type), its(:fast_restored), its(:multi_attach_enabled), its(:throughput)
|
935
935
|
### :unlock: Advanced use
|
936
936
|
|
937
937
|
`ebs` can use `Aws::EC2::Volume` resource (see http://docs.aws.amazon.com/sdkforruby/api/Aws/EC2/Volume.html).
|
@@ -1117,7 +1117,7 @@ end
|
|
1117
1117
|
```
|
1118
1118
|
|
1119
1119
|
|
1120
|
-
### 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)
|
1120
|
+
### 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)
|
1121
1121
|
### :unlock: Advanced use
|
1122
1122
|
|
1123
1123
|
`ec2` can use `Aws::EC2::Instance` resource (see http://docs.aws.amazon.com/sdkforruby/api/Aws/EC2/Instance.html).
|
@@ -1213,7 +1213,7 @@ describe ecs_cluster('my-ecs-cluster') do
|
|
1213
1213
|
end
|
1214
1214
|
```
|
1215
1215
|
|
1216
|
-
### its(:cluster_arn), its(:cluster_name), its(:status), its(:registered_container_instances_count), its(:running_tasks_count), its(:pending_tasks_count), its(:active_services_count), its(:statistics), its(:tags), its(:settings), its(:capacity_providers), its(:default_capacity_provider_strategy), its(:attachments), its(:attachments_status)
|
1216
|
+
### its(:cluster_arn), its(:cluster_name), its(:configuration), its(:status), its(:registered_container_instances_count), its(:running_tasks_count), its(:pending_tasks_count), its(:active_services_count), its(:statistics), its(:tags), its(:settings), its(:capacity_providers), its(:default_capacity_provider_strategy), its(:attachments), its(:attachments_status)
|
1217
1217
|
## <a name="ecs_container_instance">ecs_container_instance</a>
|
1218
1218
|
|
1219
1219
|
ECS Container Instance resource type.
|
@@ -1260,7 +1260,7 @@ describe ecs_service('my-ecs-service') do
|
|
1260
1260
|
end
|
1261
1261
|
```
|
1262
1262
|
|
1263
|
-
### its(:service_arn), its(:service_name), its(:cluster_arn), its(:load_balancers), its(:service_registries), its(:status), its(:desired_count), its(:running_count), its(:pending_count), its(:launch_type), its(:capacity_provider_strategy), its(:platform_version), its(:task_definition), its(:task_sets), its(:role_arn), its(:created_at), its(:placement_constraints), its(:placement_strategy), its(:network_configuration), its(:health_check_grace_period_seconds), its(:scheduling_strategy), its(:deployment_controller), its(:tags), its(:created_by), its(:enable_ecs_managed_tags), its(:propagate_tags)
|
1263
|
+
### its(:service_arn), its(:service_name), its(:cluster_arn), its(:load_balancers), its(:service_registries), its(:status), its(:desired_count), its(:running_count), its(:pending_count), its(:launch_type), its(:capacity_provider_strategy), its(:platform_version), its(:task_definition), its(:task_sets), its(:role_arn), its(:created_at), its(:placement_constraints), its(:placement_strategy), its(:network_configuration), its(:health_check_grace_period_seconds), its(:scheduling_strategy), its(:deployment_controller), its(:tags), its(:created_by), its(:enable_ecs_managed_tags), its(:propagate_tags), its(:enable_execute_command)
|
1264
1264
|
## <a name="ecs_task_definition">ecs_task_definition</a>
|
1265
1265
|
|
1266
1266
|
ECS Task Definition resource type.
|
@@ -1282,7 +1282,7 @@ describe ecs_task_definition('my-ecs-task-definition') do
|
|
1282
1282
|
end
|
1283
1283
|
```
|
1284
1284
|
|
1285
|
-
### its(:task_definition_arn), its(:family), its(:task_role_arn), its(:execution_role_arn), its(:network_mode), its(:revision), its(:volumes), its(:status), its(:requires_attributes), its(:placement_constraints), its(:compatibilities), its(:requires_compatibilities), its(:cpu), its(:memory), its(:inference_accelerators), its(:pid_mode), its(:ipc_mode), its(:proxy_configuration)
|
1285
|
+
### its(:task_definition_arn), its(:family), its(:task_role_arn), its(:execution_role_arn), its(:network_mode), its(:revision), its(:volumes), its(:status), its(:requires_attributes), its(:placement_constraints), its(:compatibilities), its(:requires_compatibilities), its(:cpu), its(:memory), its(:inference_accelerators), its(:pid_mode), its(:ipc_mode), its(:proxy_configuration), its(:registered_at), its(:deregistered_at), its(:registered_by)
|
1286
1286
|
## <a name="efs">efs</a>
|
1287
1287
|
|
1288
1288
|
EFS resource type.
|
@@ -1304,7 +1304,7 @@ describe efs('my-efs') do
|
|
1304
1304
|
end
|
1305
1305
|
```
|
1306
1306
|
|
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)
|
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), its(:availability_zone_name), its(:availability_zone_id)
|
1308
1308
|
## <a name="elastic_ip">elastic_ip</a>
|
1309
1309
|
|
1310
1310
|
Elastic IP resource type.
|
@@ -1504,7 +1504,7 @@ end
|
|
1504
1504
|
```
|
1505
1505
|
|
1506
1506
|
|
1507
|
-
### 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)
|
1507
|
+
### 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)
|
1508
1508
|
## <a name="elastictranscoder_pipeline">elastictranscoder_pipeline</a>
|
1509
1509
|
|
1510
1510
|
ElastictranscoderPipeline resource type.
|
@@ -1847,7 +1847,7 @@ describe iam_policy('my-iam-user') do
|
|
1847
1847
|
end
|
1848
1848
|
```
|
1849
1849
|
|
1850
|
-
### its(:policy_name), its(:policy_id), its(:arn), its(:path), its(:default_version_id), its(:attachment_count), its(:permissions_boundary_usage_count), its(:is_attachable), its(:description), its(:create_date), its(:update_date)
|
1850
|
+
### its(:policy_name), its(:policy_id), its(:arn), its(:path), its(:default_version_id), its(:attachment_count), its(:permissions_boundary_usage_count), its(:is_attachable), its(:description), its(:create_date), its(:update_date), its(:tags)
|
1851
1851
|
## <a name="iam_role">iam_role</a>
|
1852
1852
|
|
1853
1853
|
IamRole resource type.
|
@@ -2211,7 +2211,7 @@ end
|
|
2211
2211
|
|
2212
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)).
|
2213
2213
|
|
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)
|
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), its(:package_type), its(:image_config_response), its(:signing_profile_version_arn), its(:signing_job_arn)
|
2215
2215
|
## <a name="launch_configuration">launch_configuration</a>
|
2216
2216
|
|
2217
2217
|
LaunchConfiguration resource type.
|
@@ -2785,7 +2785,7 @@ end
|
|
2785
2785
|
```
|
2786
2786
|
|
2787
2787
|
|
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(: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)
|
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(: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)
|
2789
2789
|
### :unlock: Advanced use
|
2790
2790
|
|
2791
2791
|
`rds` can use `Aws::RDS::DBInstance` resource (see http://docs.aws.amazon.com/sdkforruby/api/Aws/RDS/DBInstance.html).
|
@@ -2917,7 +2917,7 @@ describe redshift('my-redshift') do
|
|
2917
2917
|
end
|
2918
2918
|
```
|
2919
2919
|
|
2920
|
-
### its(:vpc_id), its(:cluster_identifier), its(:node_type), its(:cluster_status), its(:cluster_availability_status), its(:modify_status), its(:master_username), its(:db_name), its(:endpoint), its(:cluster_create_time), its(:automated_snapshot_retention_period), its(:manual_snapshot_retention_period), its(:cluster_security_groups), its(:cluster_subnet_group_name), its(:vpc_id), its(:availability_zone), its(:preferred_maintenance_window), its(:pending_modified_values), its(:cluster_version), its(:allow_version_upgrade), its(:number_of_nodes), its(:publicly_accessible), its(:encrypted), its(:restore_status), its(:data_transfer_progress), its(:hsm_status), its(:cluster_snapshot_copy_status), its(:cluster_public_key), its(:cluster_nodes), its(:elastic_ip_status), its(:cluster_revision_number), its(:kms_key_id), its(:enhanced_vpc_routing), its(:iam_roles), its(:pending_actions), its(:maintenance_track_name), its(:elastic_resize_number_of_node_options), its(:deferred_maintenance_windows), its(:snapshot_schedule_identifier), its(:snapshot_schedule_state), its(:expected_next_snapshot_schedule_time), its(:expected_next_snapshot_schedule_time_status), its(:next_maintenance_window_start_time), its(:resize_info)
|
2920
|
+
### its(:vpc_id), its(:cluster_identifier), its(:node_type), its(:cluster_status), its(:cluster_availability_status), its(:modify_status), its(:master_username), its(:db_name), its(:endpoint), its(:cluster_create_time), its(:automated_snapshot_retention_period), its(:manual_snapshot_retention_period), its(:cluster_security_groups), its(:cluster_subnet_group_name), its(:vpc_id), its(:availability_zone), its(:preferred_maintenance_window), its(:pending_modified_values), its(:cluster_version), its(:allow_version_upgrade), its(:number_of_nodes), its(:publicly_accessible), its(:encrypted), its(:restore_status), its(:data_transfer_progress), its(:hsm_status), its(:cluster_snapshot_copy_status), its(:cluster_public_key), its(:cluster_nodes), its(:elastic_ip_status), its(:cluster_revision_number), its(:kms_key_id), its(:enhanced_vpc_routing), its(:iam_roles), its(:pending_actions), its(:maintenance_track_name), its(:elastic_resize_number_of_node_options), its(:deferred_maintenance_windows), its(:snapshot_schedule_identifier), its(:snapshot_schedule_state), its(:expected_next_snapshot_schedule_time), its(:expected_next_snapshot_schedule_time_status), its(:next_maintenance_window_start_time), its(:resize_info), its(:availability_zone_relocation_status), its(:cluster_namespace_arn), its(:total_storage_capacity_in_mega_bytes), its(:aqua_configuration)
|
2921
2921
|
## <a name="redshift_cluster_parameter_group">redshift_cluster_parameter_group</a>
|
2922
2922
|
|
2923
2923
|
RedshiftClusterParameterGroup resource type.
|
@@ -3114,6 +3114,15 @@ end
|
|
3114
3114
|
```
|
3115
3115
|
|
3116
3116
|
|
3117
|
+
### have_location
|
3118
|
+
|
3119
|
+
```ruby
|
3120
|
+
describe s3_bucket('my-bucket') do
|
3121
|
+
it { should have_location('us-east-1') }
|
3122
|
+
end
|
3123
|
+
```
|
3124
|
+
|
3125
|
+
|
3117
3126
|
### have_logging_enabled
|
3118
3127
|
|
3119
3128
|
```ruby
|
@@ -3233,7 +3242,7 @@ describe secretsmanager('my-secret') do
|
|
3233
3242
|
end
|
3234
3243
|
```
|
3235
3244
|
|
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)
|
3245
|
+
### 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), its(:primary_region), its(:replication_status)
|
3237
3246
|
## <a name="security_group">security_group</a>
|
3238
3247
|
|
3239
3248
|
SecurityGroup resource type.
|
@@ -11,7 +11,7 @@ module Awspec::Generator
|
|
11
11
|
group_name: group.group_name,
|
12
12
|
policy_name: policy_name
|
13
13
|
})
|
14
|
-
document = JSON.generate(JSON.parse(URI.
|
14
|
+
document = JSON.generate(JSON.parse(URI.decode_www_form_component(res.policy_document)))
|
15
15
|
"it { should have_inline_policy('#{policy_name}').policy_document('#{document}') }"
|
16
16
|
end
|
17
17
|
content = ERB.new(iam_group_spec_template, nil, '-').result(binding).gsub(/^\n/, '')
|
@@ -11,7 +11,7 @@ module Awspec::Generator
|
|
11
11
|
role_name: role.role_name,
|
12
12
|
policy_name: policy_name
|
13
13
|
})
|
14
|
-
document = JSON.generate(JSON.parse(URI.
|
14
|
+
document = JSON.generate(JSON.parse(URI.decode_www_form_component(res.policy_document)))
|
15
15
|
"it { should have_inline_policy('#{policy_name}').policy_document('#{document}') }"
|
16
16
|
end
|
17
17
|
content = ERB.new(iam_role_spec_template, nil, '-').result(binding).gsub(/^\n/, '')
|
@@ -11,7 +11,7 @@ module Awspec::Generator
|
|
11
11
|
user_name: user.user_name,
|
12
12
|
policy_name: policy_name
|
13
13
|
})
|
14
|
-
document = JSON.generate(JSON.parse(URI.
|
14
|
+
document = JSON.generate(JSON.parse(URI.decode_www_form_component(res.policy_document)))
|
15
15
|
"it { should have_inline_policy('#{policy_name}').policy_document('#{document}') }"
|
16
16
|
end
|
17
17
|
content = ERB.new(iam_user_spec_template, nil, '-').result(binding).gsub(/^\n/, '')
|
@@ -102,6 +102,9 @@ describe s3_bucket('<%= bucket.name %>') do
|
|
102
102
|
<%= line %>
|
103
103
|
<% end %>
|
104
104
|
<%- end -%>
|
105
|
+
<%- if location -%>
|
106
|
+
it { should have_location('<%= location %>') }
|
107
|
+
<%- end -%>
|
105
108
|
end
|
106
109
|
EOF
|
107
110
|
template
|
@@ -117,6 +120,7 @@ EOF
|
|
117
120
|
bucket_policy = policy.policy.read if policy
|
118
121
|
lifecycle_rule = find_bucket_lifecycle_configuration(bucket.name)
|
119
122
|
lifecycle_specs = generate_lifecycle_rule_specs(lifecycle_rule) if lifecycle_rule
|
123
|
+
location = find_bucket_location(bucket.name)
|
120
124
|
ERB.new(bucket_spec_template, nil, '-').result(binding).gsub(/^\n/, '')
|
121
125
|
end
|
122
126
|
end
|
@@ -35,6 +35,13 @@ module Awspec::Helper
|
|
35
35
|
nil
|
36
36
|
end
|
37
37
|
|
38
|
+
def find_bucket_location(id)
|
39
|
+
bucket_location = s3_client.get_bucket_location(bucket: id)
|
40
|
+
bucket_location.location_constraint
|
41
|
+
rescue Aws::S3::Errors::ServiceError
|
42
|
+
nil
|
43
|
+
end
|
44
|
+
|
38
45
|
def find_bucket_logging(id)
|
39
46
|
s3_client.get_bucket_logging(bucket: id)
|
40
47
|
rescue Aws::S3::Errors::ServiceError
|
@@ -34,7 +34,7 @@ module Awspec::Type
|
|
34
34
|
group_name: id,
|
35
35
|
policy_name: policy_name
|
36
36
|
})
|
37
|
-
return JSON.parse(URI.
|
37
|
+
return JSON.parse(URI.decode_www_form_component(res.policy_document)) == JSON.parse(document) if document
|
38
38
|
res
|
39
39
|
end
|
40
40
|
|
data/lib/awspec/type/iam_role.rb
CHANGED
@@ -24,7 +24,7 @@ module Awspec::Type
|
|
24
24
|
role_name: resource_via_client.role_name,
|
25
25
|
policy_name: policy_name
|
26
26
|
})
|
27
|
-
return JSON.parse(URI.
|
27
|
+
return JSON.parse(URI.decode_www_form_component(res.policy_document)) == JSON.parse(document) if document
|
28
28
|
res
|
29
29
|
end
|
30
30
|
|
data/lib/awspec/type/iam_user.rb
CHANGED
@@ -24,7 +24,7 @@ module Awspec::Type
|
|
24
24
|
user_name: resource_via_client.user_name,
|
25
25
|
policy_name: policy_name
|
26
26
|
})
|
27
|
-
return JSON.parse(URI.
|
27
|
+
return JSON.parse(URI.decode_www_form_component(res.policy_document)) == JSON.parse(document) if document
|
28
28
|
res
|
29
29
|
end
|
30
30
|
|
data/lib/awspec/type/kms.rb
CHANGED
@@ -14,7 +14,7 @@ module Awspec::Type
|
|
14
14
|
|
15
15
|
def has_key_policy?(policy_name, document = nil)
|
16
16
|
res = kms_client.get_key_policy(key_id: id, policy_name: policy_name)
|
17
|
-
return JSON.parse(URI.
|
17
|
+
return JSON.parse(URI.decode_www_form_component(res.policy)) == JSON.parse(document) if document
|
18
18
|
res
|
19
19
|
end
|
20
20
|
end
|
data/lib/awspec/version.rb
CHANGED
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.
|
4
|
+
version: 1.23.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- k1LoW
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-04-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|