awspec 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8ff62a143fbb6f92cb94accf6e40cfd2d861d164
4
- data.tar.gz: 8b2ee62fa0e44c021cc8db86d499d579bed5fbca
3
+ metadata.gz: c4a6211484564ebe1014a8a8e3716006c9fc88bf
4
+ data.tar.gz: 74e173c94216e05cd6c65a39320f480f60cea17b
5
5
  SHA512:
6
- metadata.gz: e55524cddd2003462b45bdf981217d7e12a22b3b11e92fe87db9c641bd141a5a5eb91647e070d7626be43572d14b3a30c395c4ea6f90d34b6cfa0b3d98b070ed
7
- data.tar.gz: dda8a8cfd2cc0e66a16dd5d0f162252fe43bdac17daba60b4d413d8c5e0623e919b6e047474437572415b076c5c4347e63de9b15fd99d3923f760aec12af9171
6
+ metadata.gz: cd7819ffaa0cc4b1e26e70c3bd3e96d440e7e1bf596a4f3304d6f71e2dd58484cf50f743bd6dd3bcc27ddc39df86fe0cb94e1f905b58a598ace6258a1e37936d
7
+ data.tar.gz: ded38636c79963ef7879530fa7ad044305bc5676bee103654fb2d507e42ac4ba29198a0976d4042212aaf5f21b7f281b8f9d63ced94f1b1ca1e1d51337ebf95c
data/.rubocop.yml CHANGED
@@ -19,12 +19,12 @@ Lint/UselessAssignment:
19
19
  Metrics/AbcSize:
20
20
  Max: 50
21
21
 
22
- Metrics/ClassLength:
23
- Max: 130
24
-
25
22
  Metrics/BlockLength:
26
23
  Max: 60
27
24
 
25
+ Metrics/ClassLength:
26
+ Max: 130
27
+
28
28
  Metrics/CyclomaticComplexity:
29
29
  Max: 15
30
30
 
@@ -53,6 +53,9 @@ Style/Alias:
53
53
  Style/BarePercentLiterals:
54
54
  Enabled: false
55
55
 
56
+ Style/BracesAroundHashParameters:
57
+ Enabled: false
58
+
56
59
  Style/ClassAndModuleChildren:
57
60
  Enabled: false
58
61
 
@@ -86,8 +89,5 @@ Style/RedundantSelf:
86
89
  Style/SymbolProc:
87
90
  Enabled: false
88
91
 
89
- Style/BracesAroundHashParameters:
90
- Enabled: false
91
-
92
92
  Style/YodaCondition:
93
93
  Enabled: false
@@ -34,6 +34,13 @@ describe route_table('my-route-table') do
34
34
  end
35
35
  ```
36
36
 
37
+ ### route_count
38
+ ```ruby
39
+ describe route_table('my-route-table') do
40
+ its (:route_count) { should eq 10 }
41
+ end
42
+ ```
43
+
37
44
  ### advanced
38
45
 
39
46
  `route_table` can use `Aws::EC2::RouteTable` resource (see http://docs.aws.amazon.com/sdkforruby/api/Aws/EC2/RouteTable.html).
@@ -289,7 +289,7 @@ describe autoscaling_group('my-auto-scaling-group') do
289
289
  end
290
290
  ```
291
291
 
292
- ### its(:auto_scaling_group_name), its(:auto_scaling_group_arn), its(:launch_configuration_name), 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)
292
+ ### 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)
293
293
  ## <a name="cloudformation_stack">cloudformation_stack</a>
294
294
 
295
295
  CloudformationStack resource type.
@@ -455,7 +455,7 @@ describe cloudwatch_alarm('my-cloudwatch-alarm') do
455
455
  end
456
456
  ```
457
457
 
458
- ### 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(:threshold), its(:comparison_operator), its(:treat_missing_data), its(:evaluate_low_sample_count_percentile)
458
+ ### 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)
459
459
  ## <a name="cloudwatch_event">cloudwatch_event</a>
460
460
 
461
461
  CloudwatchEvent resource type.
@@ -619,7 +619,7 @@ end
619
619
  ```
620
620
 
621
621
 
622
- ### its(:table_name), its(:table_status), its(:creation_date_time), its(:table_size_bytes), its(:item_count), its(:table_arn), its(:local_secondary_indexes), its(:global_secondary_indexes), its(:stream_specification), its(:latest_stream_label), its(:latest_stream_arn)
622
+ ### its(:table_name), its(:table_status), its(:creation_date_time), its(:table_size_bytes), its(:item_count), its(:table_arn), its(:table_id), its(:local_secondary_indexes), its(:global_secondary_indexes), its(:stream_specification), its(:latest_stream_label), its(:latest_stream_arn), its(:restore_summary)
623
623
  ### :unlock: Advanced use
624
624
 
625
625
  `dynamodb_table` can use `Aws::DynamoDB::Table` resource (see http://docs.aws.amazon.com/sdkforruby/api/Aws/DynamoDB/Table.html).
@@ -910,7 +910,7 @@ describe ecs_cluster('my-ecs-cluster') do
910
910
  end
911
911
  ```
912
912
 
913
- ### 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)
913
+ ### 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)
914
914
  ## <a name="ecs_container_instance">ecs_container_instance</a>
915
915
 
916
916
  ECS Container Instance resource type.
@@ -957,7 +957,7 @@ describe ecs_service('my-ecs-service') do
957
957
  end
958
958
  ```
959
959
 
960
- ### its(:service_arn), its(:service_name), its(:cluster_arn), its(:load_balancers), its(:status), its(:desired_count), its(:running_count), its(:pending_count), its(:task_definition), its(:role_arn), its(:created_at), its(:placement_constraints), its(:placement_strategy), its(:network_configuration)
960
+ ### its(:service_arn), its(:service_name), its(:cluster_arn), its(:load_balancers), 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)
961
961
  ## <a name="ecs_task_definition">ecs_task_definition</a>
962
962
 
963
963
  ECS Task Definition resource type.
@@ -979,7 +979,7 @@ describe ecs_task_definition('my-ecs-task-definition') do
979
979
  end
980
980
  ```
981
981
 
982
- ### its(:task_definition_arn), its(:family), its(:task_role_arn), its(:network_mode), its(:revision), its(:volumes), its(:status), its(:requires_attributes), its(:placement_constraints)
982
+ ### 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)
983
983
  ## <a name="efs">efs</a>
984
984
 
985
985
  EFS resource type.
@@ -1180,7 +1180,7 @@ end
1180
1180
  ```
1181
1181
 
1182
1182
 
1183
- ### its(:domain_id), its(:domain_name), its(:arn), its(:created), its(:deleted), its(:endpoint), its(:endpoints), its(:processing), its(:elasticsearch_version), its(:access_policies), its(:snapshot_options), its(:vpc_options), its(:advanced_options), its(:log_publishing_options)
1183
+ ### its(:domain_id), its(:domain_name), its(:arn), its(:created), its(:deleted), its(:endpoint), its(:endpoints), its(:processing), its(:elasticsearch_version), its(:access_policies), its(:snapshot_options), its(:vpc_options), its(:encryption_at_rest_options), its(:advanced_options), its(:log_publishing_options)
1184
1184
  ## <a name="elastictranscoder_pipeline">elastictranscoder_pipeline</a>
1185
1185
 
1186
1186
  ElastictranscoderPipeline resource type.
@@ -2645,6 +2645,7 @@ describe account do
2645
2645
  its('lambda.code_size_unzipped.limit') { should eq 262144000 }
2646
2646
  its('lambda.code_size_zipped.limit') { should eq 52428800 }
2647
2647
  its('lambda.concurrent_executions.limit') { should eq 200 }
2648
+ its('lambda.unreserved_concurrent_executions.limit') { should eq 50 }
2648
2649
  its('lambda.function_count.usage') { should eq 8 }
2649
2650
  its('ses.max_24_hour_send') { should eq 200.0 }
2650
2651
  its('ses.max_send_rate') { should eq 1.0 }
@@ -2708,6 +2709,7 @@ describe account_attribute('lambda') do
2708
2709
  its('code_size_unzipped.limit') { should eq 262144000 }
2709
2710
  its('code_size_zipped.limit') { should eq 52428800 }
2710
2711
  its('concurrent_executions.limit') { should eq 200 }
2712
+ its('unreserved_concurrent_executions.limit') { should eq 50 }
2711
2713
  its('function_count.usage') { should eq 8 }
2712
2714
  end
2713
2715
 
@@ -117,7 +117,8 @@ Aws.config[:lambda] = {
117
117
  total_code_size: 80_530_636_800,
118
118
  code_size_unzipped: 262_144_000,
119
119
  code_size_zipped: 52_428_800,
120
- concurrent_executions: 200
120
+ concurrent_executions: 200,
121
+ unreserved_concurrent_executions: 50
121
122
  },
122
123
  account_usage: {
123
124
  total_code_size: 2_034_651_562,
@@ -35,6 +35,10 @@ module Awspec::Type
35
35
  end
36
36
  end
37
37
 
38
+ def route_count
39
+ resource_via_client.routes.count
40
+ end
41
+
38
42
  private
39
43
 
40
44
  def target_gateway?(route, gateway_id)
@@ -1,3 +1,3 @@
1
1
  module Awspec
2
- VERSION = '1.0.0'
2
+ VERSION = '1.1.0'
3
3
  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.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - k1LoW
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-11-25 00:00:00.000000000 Z
11
+ date: 2017-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk