awspec 1.12.1 → 1.12.2
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 +5 -5
- data/doc/_resource_types/acm.md +9 -0
- data/doc/_resource_types/elb.md +24 -0
- data/doc/resource_types.md +51 -15
- data/lib/awspec/generator/doc/type/elb.rb +1 -0
- data/lib/awspec/generator/spec/acm.rb +7 -0
- data/lib/awspec/helper/finder/elb.rb +9 -0
- data/lib/awspec/stub/acm.rb +6 -1
- data/lib/awspec/stub/elb.rb +20 -0
- data/lib/awspec/type/acm.rb +9 -0
- data/lib/awspec/type/elb.rb +26 -0
- data/lib/awspec/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: bea4be54a18a5fb915b47cdeef3174dc314feb94a2a193e82f463b50c54e91c6
|
4
|
+
data.tar.gz: 346800faf49554d1b01c8bacd82bf0a967dd602699291f62e53e7fc1e5f9a481
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8383e825eef4f83551d0fd18b476b453a927df08955686c9bd3558f1657784409b9a9781ad54b2a029040172d885c1c2fbbed2ab1231d687cd21f7688852e85d
|
7
|
+
data.tar.gz: 628351ed78a11d1f4cbb3d7a9317b92302f7513ca7cd81403344e49462af19ca3d60503dd8cdc288c189e0484735194616c1fe363ffdf671122af80345c7d2c1
|
data/doc/_resource_types/acm.md
CHANGED
@@ -13,3 +13,12 @@ describe acm('example.com') do
|
|
13
13
|
it { should be_issued }
|
14
14
|
end
|
15
15
|
```
|
16
|
+
|
17
|
+
### have_domain_validation_option
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
describe acm('example.com') do
|
21
|
+
it { should have_domain_validation_option(domain_name: 'example.com', validation_method: 'DNS', validation_status: 'SUCCESS') }
|
22
|
+
it { should have_domain_validation_option(domain_name: 'mail.example.com', validation_method: 'EMAIL') }
|
23
|
+
end
|
24
|
+
```
|
data/doc/_resource_types/elb.md
CHANGED
@@ -56,3 +56,27 @@ describe elb('my-elb') do
|
|
56
56
|
it { should have_tag('my-tag-key').value('my-tag-value') }
|
57
57
|
end
|
58
58
|
```
|
59
|
+
|
60
|
+
### be_cross_zone_load_balancing_enabled
|
61
|
+
|
62
|
+
```ruby
|
63
|
+
describe elb('my-elb') do
|
64
|
+
it { should be_cross_zone_load_balancing_enabled }
|
65
|
+
end
|
66
|
+
```
|
67
|
+
|
68
|
+
### have_access_log
|
69
|
+
|
70
|
+
```ruby
|
71
|
+
describe elb('my-elb') do
|
72
|
+
it { should have_access_log(s3_bucket_name: 'my-loadbalancer-logs', s3_bucket_prefix: 'my-app', emit_interval: 5) }
|
73
|
+
end
|
74
|
+
```
|
75
|
+
|
76
|
+
### have_connection_draining
|
77
|
+
|
78
|
+
```ruby
|
79
|
+
describe elb('my-elb') do
|
80
|
+
it { should have_connection_draining(timeout: 300) }
|
81
|
+
end
|
82
|
+
```
|
data/doc/resource_types.md
CHANGED
@@ -85,7 +85,16 @@ end
|
|
85
85
|
|
86
86
|
### be_pending_validation, be_issued, be_inactive, be_expired, be_validation_timed_out, be_revoked, be_failed
|
87
87
|
|
88
|
-
###
|
88
|
+
### have_domain_validation_option
|
89
|
+
|
90
|
+
```ruby
|
91
|
+
describe acm('example.com') do
|
92
|
+
it { should have_domain_validation_option(domain_name: 'example.com', validation_method: 'DNS', validation_status: 'SUCCESS') }
|
93
|
+
it { should have_domain_validation_option(domain_name: 'mail.example.com', validation_method: 'EMAIL') }
|
94
|
+
end
|
95
|
+
```
|
96
|
+
|
97
|
+
### its(:certificate_arn), its(:domain_name), its(:subject_alternative_names), its(:serial), its(:subject), its(:issuer), its(:created_at), its(:issued_at), its(:imported_at), its(:status), its(:revoked_at), its(:revocation_reason), its(:not_before), its(:not_after), its(:key_algorithm), its(:signature_algorithm), its(:in_use_by), its(:failure_reason), its(:type), its(:renewal_summary), its(:key_usages), its(:extended_key_usages), its(:certificate_authority_arn), its(:renewal_eligibility), its(:options)
|
89
98
|
## <a name="alb">alb</a>
|
90
99
|
|
91
100
|
ALB resource type.
|
@@ -318,7 +327,7 @@ describe autoscaling_group('my-auto-scaling-group') do
|
|
318
327
|
end
|
319
328
|
```
|
320
329
|
|
321
|
-
### its(:auto_scaling_group_name), its(:auto_scaling_group_arn), its(:launch_configuration_name), its(:launch_template), 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)
|
330
|
+
### 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)
|
322
331
|
## <a name="batch_compute_environment">batch_compute_environment</a>
|
323
332
|
|
324
333
|
BatchComputeEnvironment resource type.
|
@@ -370,7 +379,7 @@ describe batch_job_definition('my-batch-job-definition') do
|
|
370
379
|
end
|
371
380
|
```
|
372
381
|
|
373
|
-
### its(:job_definition_name), its(:job_definition_arn), its(:revision), its(:status), its(:type), its(:parameters), its(:retry_strategy), its(:timeout)
|
382
|
+
### its(:job_definition_name), its(:job_definition_arn), its(:revision), its(:status), its(:type), its(:parameters), its(:retry_strategy), its(:timeout), its(:node_properties)
|
374
383
|
## <a name="batch_job_queue">batch_job_queue</a>
|
375
384
|
|
376
385
|
BatchJobQueue resource type.
|
@@ -410,7 +419,7 @@ describe cloudformation_stack('my-cloudformation-stack') do
|
|
410
419
|
end
|
411
420
|
```
|
412
421
|
|
413
|
-
### its(:stack_id), its(:stack_name), its(:change_set_id), its(:description), its(:parameters), its(:creation_time), its(:deletion_time), its(:last_updated_time), its(:rollback_configuration), its(:stack_status), its(:stack_status_reason), its(:disable_rollback), its(:notification_arns), its(:timeout_in_minutes), its(:capabilities), its(:role_arn), its(:enable_termination_protection), its(:parent_id), its(:root_id)
|
422
|
+
### its(:stack_id), its(:stack_name), its(:change_set_id), its(:description), its(:parameters), its(:creation_time), its(:deletion_time), its(:last_updated_time), its(:rollback_configuration), its(:stack_status), its(:stack_status_reason), its(:disable_rollback), its(:notification_arns), its(:timeout_in_minutes), its(:capabilities), its(:role_arn), its(:enable_termination_protection), its(:parent_id), its(:root_id), its(:drift_information)
|
414
423
|
## <a name="cloudfront_distribution">cloudfront_distribution</a>
|
415
424
|
|
416
425
|
CloudfrontDistribution resource type.
|
@@ -488,7 +497,7 @@ describe cloudfront_distribution('123456789zyxw.cloudfront.net') do
|
|
488
497
|
end
|
489
498
|
```
|
490
499
|
|
491
|
-
### its(:id), its(:arn), its(:status), its(:last_modified_time), its(:domain_name), its(:comment), its(:price_class), its(:enabled), its(:web_acl_id), its(:http_version), its(:is_ipv6_enabled)
|
500
|
+
### its(:id), its(:arn), its(:status), its(:last_modified_time), its(:domain_name), its(:origin_groups), its(:comment), its(:price_class), its(:enabled), its(:web_acl_id), its(:http_version), its(:is_ipv6_enabled)
|
492
501
|
## <a name="cloudtrail">cloudtrail</a>
|
493
502
|
|
494
503
|
Cloudtrail resource type.
|
@@ -537,7 +546,7 @@ end
|
|
537
546
|
```
|
538
547
|
|
539
548
|
|
540
|
-
### its(:name), its(:s3_bucket_name), its(:s3_key_prefix), its(:sns_topic_name), its(:sns_topic_arn), its(:include_global_service_events), its(:is_multi_region_trail), its(:home_region), its(:trail_arn), its(:log_file_validation_enabled), its(:cloud_watch_logs_log_group_arn), its(:cloud_watch_logs_role_arn), its(:kms_key_id), its(:has_custom_event_selectors)
|
549
|
+
### its(:name), its(:s3_bucket_name), its(:s3_key_prefix), its(:sns_topic_name), its(:sns_topic_arn), its(:include_global_service_events), its(:is_multi_region_trail), its(:home_region), its(:trail_arn), its(:log_file_validation_enabled), its(:cloud_watch_logs_log_group_arn), its(:cloud_watch_logs_role_arn), its(:kms_key_id), its(:has_custom_event_selectors), its(:is_organization_trail)
|
541
550
|
## <a name="cloudwatch_alarm">cloudwatch_alarm</a>
|
542
551
|
|
543
552
|
CloudwatchAlarm resource type.
|
@@ -586,7 +595,7 @@ describe cloudwatch_alarm('my-cloudwatch-alarm') do
|
|
586
595
|
end
|
587
596
|
```
|
588
597
|
|
589
|
-
### its(:alarm_name), its(:alarm_arn), its(:alarm_description), its(:alarm_configuration_updated_timestamp), its(:actions_enabled), its(:ok_actions), its(:alarm_actions), its(:insufficient_data_actions), its(:state_value), its(:state_reason), its(:state_reason_data), its(:state_updated_timestamp), its(:metric_name), its(:namespace), its(:statistic), its(:extended_statistic), its(:period), its(:unit), its(:evaluation_periods), its(:datapoints_to_alarm), its(:threshold), its(:comparison_operator), its(:treat_missing_data), its(:evaluate_low_sample_count_percentile)
|
598
|
+
### its(:alarm_name), its(:alarm_arn), its(:alarm_description), its(:alarm_configuration_updated_timestamp), its(:actions_enabled), its(:ok_actions), its(:alarm_actions), its(:insufficient_data_actions), its(:state_value), its(:state_reason), its(:state_reason_data), its(:state_updated_timestamp), its(:metric_name), its(:namespace), its(:statistic), its(:extended_statistic), its(:period), its(:unit), its(:evaluation_periods), its(:datapoints_to_alarm), its(:threshold), its(:comparison_operator), its(:treat_missing_data), its(:evaluate_low_sample_count_percentile), its(:metrics)
|
590
599
|
## <a name="cloudwatch_event">cloudwatch_event</a>
|
591
600
|
|
592
601
|
CloudwatchEvent resource type.
|
@@ -1099,7 +1108,7 @@ describe ecs_cluster('my-ecs-cluster') do
|
|
1099
1108
|
end
|
1100
1109
|
```
|
1101
1110
|
|
1102
|
-
### 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)
|
1111
|
+
### 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)
|
1103
1112
|
## <a name="ecs_container_instance">ecs_container_instance</a>
|
1104
1113
|
|
1105
1114
|
ECS Container Instance resource type.
|
@@ -1124,7 +1133,7 @@ end
|
|
1124
1133
|
```
|
1125
1134
|
|
1126
1135
|
|
1127
|
-
### its(:container_instance_arn), its(:ec2_instance_id), its(:version), its(:version_info), its(:status), its(:agent_connected), its(:running_tasks_count), its(:pending_tasks_count), its(:agent_update_status), its(:attributes), its(:registered_at), its(:attachments)
|
1136
|
+
### its(:container_instance_arn), its(:ec2_instance_id), its(:version), its(:version_info), its(:status), its(:agent_connected), its(:running_tasks_count), its(:pending_tasks_count), its(:agent_update_status), its(:attributes), its(:registered_at), its(:attachments), its(:tags)
|
1128
1137
|
## <a name="ecs_service">ecs_service</a>
|
1129
1138
|
|
1130
1139
|
ECS Service resource type.
|
@@ -1146,7 +1155,7 @@ describe ecs_service('my-ecs-service') do
|
|
1146
1155
|
end
|
1147
1156
|
```
|
1148
1157
|
|
1149
|
-
### 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(:platform_version), its(:task_definition), its(:role_arn), its(:created_at), its(:placement_constraints), its(:placement_strategy), its(:network_configuration), its(:health_check_grace_period_seconds), its(:scheduling_strategy)
|
1158
|
+
### 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(:platform_version), its(:task_definition), 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(:tags), its(:created_by), its(:enable_ecs_managed_tags), its(:propagate_tags)
|
1150
1159
|
## <a name="ecs_task_definition">ecs_task_definition</a>
|
1151
1160
|
|
1152
1161
|
ECS Task Definition resource type.
|
@@ -1168,7 +1177,7 @@ describe ecs_task_definition('my-ecs-task-definition') do
|
|
1168
1177
|
end
|
1169
1178
|
```
|
1170
1179
|
|
1171
|
-
### 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)
|
1180
|
+
### 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(:pid_mode), its(:ipc_mode)
|
1172
1181
|
## <a name="efs">efs</a>
|
1173
1182
|
|
1174
1183
|
EFS resource type.
|
@@ -1419,6 +1428,32 @@ end
|
|
1419
1428
|
```
|
1420
1429
|
|
1421
1430
|
|
1431
|
+
### be_cross_zone_load_balancing_enabled
|
1432
|
+
|
1433
|
+
```ruby
|
1434
|
+
describe elb('my-elb') do
|
1435
|
+
it { should be_cross_zone_load_balancing_enabled }
|
1436
|
+
end
|
1437
|
+
```
|
1438
|
+
|
1439
|
+
|
1440
|
+
### have_access_log
|
1441
|
+
|
1442
|
+
```ruby
|
1443
|
+
describe elb('my-elb') do
|
1444
|
+
it { should have_access_log(s3_bucket_name: 'my-loadbalancer-logs', s3_bucket_prefix: 'my-app', emit_interval: 5) }
|
1445
|
+
end
|
1446
|
+
```
|
1447
|
+
|
1448
|
+
|
1449
|
+
### have_connection_draining
|
1450
|
+
|
1451
|
+
```ruby
|
1452
|
+
describe elb('my-elb') do
|
1453
|
+
it { should have_connection_draining(timeout: 300) }
|
1454
|
+
end
|
1455
|
+
```
|
1456
|
+
|
1422
1457
|
### have_ec2
|
1423
1458
|
|
1424
1459
|
```ruby
|
@@ -1466,6 +1501,7 @@ describe elb('my-elb') do
|
|
1466
1501
|
end
|
1467
1502
|
```
|
1468
1503
|
|
1504
|
+
|
1469
1505
|
### belong_to_vpc
|
1470
1506
|
|
1471
1507
|
```ruby
|
@@ -1475,7 +1511,7 @@ end
|
|
1475
1511
|
```
|
1476
1512
|
|
1477
1513
|
|
1478
|
-
### its(:health_check_target), its(:health_check_interval), its(:health_check_timeout), its(:health_check_unhealthy_threshold), its(:health_check_healthy_threshold), its(:load_balancer_name), its(:dns_name), its(:canonical_hosted_zone_name), its(:canonical_hosted_zone_name_id), its(:backend_server_descriptions), its(:availability_zones), its(:subnets), its(:vpc_id), its(:security_groups), its(:created_time), its(:scheme)
|
1514
|
+
### its(:health_check_target), its(:health_check_interval), its(:health_check_timeout), its(:health_check_unhealthy_threshold), its(:health_check_healthy_threshold), its(:idle_timeout), its(:load_balancer_name), its(:dns_name), its(:canonical_hosted_zone_name), its(:canonical_hosted_zone_name_id), its(:backend_server_descriptions), its(:availability_zones), its(:subnets), its(:vpc_id), its(:security_groups), its(:created_time), its(:scheme)
|
1479
1515
|
## <a name="emr">emr</a>
|
1480
1516
|
|
1481
1517
|
Emr resource type.
|
@@ -1544,7 +1580,7 @@ end
|
|
1544
1580
|
```
|
1545
1581
|
|
1546
1582
|
|
1547
|
-
### its(:delivery_stream_name), its(:delivery_stream_arn), its(:delivery_stream_status), its(:delivery_stream_type), its(:version_id), its(:create_timestamp), its(:last_update_timestamp), its(:source), its(:has_more_destinations)
|
1583
|
+
### its(:delivery_stream_name), its(:delivery_stream_arn), its(:delivery_stream_status), its(:delivery_stream_encryption_configuration), its(:delivery_stream_type), its(:version_id), its(:create_timestamp), its(:last_update_timestamp), its(:source), its(:has_more_destinations)
|
1548
1584
|
### :unlock: Advanced use
|
1549
1585
|
|
1550
1586
|
```ruby
|
@@ -1725,7 +1761,7 @@ end
|
|
1725
1761
|
```
|
1726
1762
|
|
1727
1763
|
|
1728
|
-
### its(:path), its(:role_name), its(:role_id), its(:arn), its(:create_date), its(:assume_role_policy_document), its(:description), its(:max_session_duration), its(:permissions_boundary)
|
1764
|
+
### its(:path), its(:role_name), its(:role_id), its(:arn), its(:create_date), its(:assume_role_policy_document), its(:description), its(:tags), its(:max_session_duration), its(:permissions_boundary)
|
1729
1765
|
### :unlock: Advanced use
|
1730
1766
|
|
1731
1767
|
`iam_role` can use `Aws::IAM::Role` resource (see http://docs.aws.amazon.com/sdkforruby/api/Aws/IAM/Role.html).
|
@@ -1814,7 +1850,7 @@ end
|
|
1814
1850
|
```
|
1815
1851
|
|
1816
1852
|
|
1817
|
-
### its(:path), its(:user_name), its(:user_id), its(:arn), its(:create_date), its(:password_last_used), its(:permissions_boundary)
|
1853
|
+
### its(:path), its(:user_name), its(:user_id), its(:arn), its(:create_date), its(:password_last_used), its(:tags), its(:permissions_boundary)
|
1818
1854
|
### :unlock: Advanced use
|
1819
1855
|
|
1820
1856
|
`iam_user` can use `Aws::IAM::User` resource (see http://docs.aws.amazon.com/sdkforruby/api/Aws/IAM/User.html).
|
@@ -17,6 +17,13 @@ describe acm('<%= certificate.domain_name %>') do
|
|
17
17
|
it { should be_issued }
|
18
18
|
<% end -%>
|
19
19
|
its(:type) { should eq '<%= certificate.type %>' }
|
20
|
+
<%- certificate.domain_validation_options.each do |domain_validation_option| -%>
|
21
|
+
<%- unless domain_validation_option.validation_status.nil? -%>
|
22
|
+
it { should have_domain_validation_option(domain_name: '<%= domain_validation_option.domain_name %>', validation_method: '<%= domain_validation_option.validation_method%>', validation_status: '<%= domain_validation_option.validation_status %>') }
|
23
|
+
<%- else -%>
|
24
|
+
it { should have_domain_validation_option(domain_name: '<%= domain_validation_option.domain_name %>', validation_method: '<%= domain_validation_option.validation_method%>') }
|
25
|
+
<%- end -%>
|
26
|
+
<%- end -%>
|
20
27
|
end
|
21
28
|
<% end %>
|
22
29
|
EOF
|
@@ -10,6 +10,15 @@ module Awspec::Helper
|
|
10
10
|
return nil
|
11
11
|
end
|
12
12
|
|
13
|
+
def find_elb_attribute(id)
|
14
|
+
res = elb_client.describe_load_balancer_attributes({
|
15
|
+
load_balancer_name: id
|
16
|
+
})
|
17
|
+
res.load_balancer_attributes
|
18
|
+
rescue
|
19
|
+
return nil
|
20
|
+
end
|
21
|
+
|
13
22
|
def select_elb_by_vpc_id(vpc_id)
|
14
23
|
res = elb_client.describe_load_balancers
|
15
24
|
res.load_balancer_descriptions.select do |lb|
|
data/lib/awspec/stub/acm.rb
CHANGED
@@ -13,7 +13,12 @@ Aws.config[:acm] = {
|
|
13
13
|
certificate_arn: 'arn:aws:acm:region:123456789010:certificate/12345678-1234-1234-1234-123456789010',
|
14
14
|
domain_name: 'example.com',
|
15
15
|
status: 'ISSUED',
|
16
|
-
type: 'AMAZON_ISSUED'
|
16
|
+
type: 'AMAZON_ISSUED',
|
17
|
+
domain_validation_options: [
|
18
|
+
domain_name: 'example.com',
|
19
|
+
validation_status: 'SUCCESS',
|
20
|
+
validation_method: 'DNS'
|
21
|
+
]
|
17
22
|
}
|
18
23
|
}
|
19
24
|
}
|
data/lib/awspec/stub/elb.rb
CHANGED
@@ -54,6 +54,26 @@ Aws.config[:elasticloadbalancing] = {
|
|
54
54
|
]
|
55
55
|
}
|
56
56
|
]
|
57
|
+
},
|
58
|
+
describe_load_balancer_attributes: {
|
59
|
+
load_balancer_attributes: {
|
60
|
+
access_log: {
|
61
|
+
enabled: true,
|
62
|
+
s3_bucket_name: 'my-loadbalancer-logs',
|
63
|
+
s3_bucket_prefix: 'my-app',
|
64
|
+
emit_interval: 5
|
65
|
+
},
|
66
|
+
connection_draining: {
|
67
|
+
enabled: false,
|
68
|
+
timeout: 300
|
69
|
+
},
|
70
|
+
connection_settings: {
|
71
|
+
idle_timeout: 60
|
72
|
+
},
|
73
|
+
cross_zone_load_balancing: {
|
74
|
+
enabled: false
|
75
|
+
}
|
76
|
+
}
|
57
77
|
}
|
58
78
|
}
|
59
79
|
}
|
data/lib/awspec/type/acm.rb
CHANGED
@@ -23,5 +23,14 @@ module Awspec::Type
|
|
23
23
|
resource_via_client.status == status
|
24
24
|
end
|
25
25
|
end
|
26
|
+
|
27
|
+
def has_domain_validation_option?(domain_name:, validation_method:, validation_status: nil)
|
28
|
+
resource_via_client.domain_validation_options.find do |domain_validation_option|
|
29
|
+
validation_status ||= domain_validation_option.validation_status
|
30
|
+
domain_validation_option.domain_name == domain_name && \
|
31
|
+
domain_validation_option.validation_method == validation_method && \
|
32
|
+
domain_validation_option.validation_status == validation_status
|
33
|
+
end
|
34
|
+
end
|
26
35
|
end
|
27
36
|
end
|
data/lib/awspec/type/elb.rb
CHANGED
@@ -64,5 +64,31 @@ module Awspec::Type
|
|
64
64
|
tag.key == tag_key && tag.value == tag_value
|
65
65
|
end
|
66
66
|
end
|
67
|
+
|
68
|
+
# load_balancer_attributes
|
69
|
+
def load_balancer_attributes
|
70
|
+
@load_balancer_attributes ||= find_elb_attribute(@id)
|
71
|
+
end
|
72
|
+
|
73
|
+
def cross_zone_load_balancing_enabled?
|
74
|
+
load_balancer_attributes.cross_zone_load_balancing.enabled
|
75
|
+
end
|
76
|
+
|
77
|
+
def has_access_log?(s3_bucket_name:, s3_bucket_prefix:, emit_interval:)
|
78
|
+
return false unless load_balancer_attributes.access_log.enabled
|
79
|
+
access_log = load_balancer_attributes.access_log
|
80
|
+
access_log.emit_interval == emit_interval && \
|
81
|
+
access_log.s3_bucket_name == s3_bucket_name && access_log.s3_bucket_prefix == s3_bucket_prefix
|
82
|
+
end
|
83
|
+
|
84
|
+
def has_connection_draining?(timeout:)
|
85
|
+
return false unless load_balancer_attributes.connection_draining.enabled
|
86
|
+
connection_draining = load_balancer_attributes.connection_draining
|
87
|
+
connection_draining.timeout == timeout
|
88
|
+
end
|
89
|
+
|
90
|
+
def idle_timeout
|
91
|
+
load_balancer_attributes.connection_settings.idle_timeout
|
92
|
+
end
|
67
93
|
end
|
68
94
|
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.12.
|
4
|
+
version: 1.12.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- k1LoW
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-11-
|
11
|
+
date: 2018-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|
@@ -668,7 +668,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
668
668
|
version: '0'
|
669
669
|
requirements: []
|
670
670
|
rubyforge_project:
|
671
|
-
rubygems_version: 2.6
|
671
|
+
rubygems_version: 2.7.6
|
672
672
|
signing_key:
|
673
673
|
specification_version: 4
|
674
674
|
summary: RSpec tests for your AWS resources.
|