awspec 1.25.1 → 1.25.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +5 -7
- data/.rubocop.yml +66 -62
- data/Gemfile +3 -1
- data/Rakefile +5 -3
- data/awspec.gemspec +4 -2
- data/bin/console +1 -0
- data/bin/toolbox +1 -0
- data/doc/resource_types.md +17 -17
- data/exe/awspec +1 -0
- data/lib/awspec/cli.rb +2 -0
- data/lib/awspec/command/generate.rb +11 -9
- data/lib/awspec/config.rb +2 -0
- data/lib/awspec/error.rb +4 -0
- data/lib/awspec/ext/array.rb +5 -2
- data/lib/awspec/ext/hash.rb +5 -2
- data/lib/awspec/ext/string.rb +2 -0
- data/lib/awspec/ext/struct.rb +2 -0
- data/lib/awspec/ext.rb +2 -0
- data/lib/awspec/generator/doc/type/account.rb +4 -4
- data/lib/awspec/generator/doc/type/account_attribute.rb +4 -4
- data/lib/awspec/generator/doc/type/account_attribute_base.rb +3 -2
- data/lib/awspec/generator/doc/type/acm.rb +4 -2
- data/lib/awspec/generator/doc/type/alb.rb +5 -3
- data/lib/awspec/generator/doc/type/alb_listener.rb +3 -1
- data/lib/awspec/generator/doc/type/alb_target_group.rb +3 -1
- data/lib/awspec/generator/doc/type/ami.rb +4 -2
- data/lib/awspec/generator/doc/type/apigateway.rb +2 -0
- data/lib/awspec/generator/doc/type/autoscaling_group.rb +2 -0
- data/lib/awspec/generator/doc/type/base.rb +11 -8
- data/lib/awspec/generator/doc/type/batch_compute_environment.rb +6 -4
- data/lib/awspec/generator/doc/type/batch_job_definition.rb +2 -0
- data/lib/awspec/generator/doc/type/batch_job_queue.rb +2 -0
- data/lib/awspec/generator/doc/type/cloudformation_stack.rb +2 -0
- data/lib/awspec/generator/doc/type/cloudfront_distribution.rb +4 -2
- data/lib/awspec/generator/doc/type/cloudtrail.rb +2 -0
- data/lib/awspec/generator/doc/type/cloudwatch_alarm.rb +3 -1
- data/lib/awspec/generator/doc/type/cloudwatch_event.rb +2 -0
- data/lib/awspec/generator/doc/type/cloudwatch_logs.rb +2 -0
- data/lib/awspec/generator/doc/type/codebuild.rb +2 -0
- data/lib/awspec/generator/doc/type/codedeploy.rb +2 -0
- data/lib/awspec/generator/doc/type/codedeploy_deployment_group.rb +2 -0
- data/lib/awspec/generator/doc/type/cognito_identity_pool.rb +2 -0
- data/lib/awspec/generator/doc/type/cognito_user_pool.rb +2 -0
- data/lib/awspec/generator/doc/type/customer_gateway.rb +4 -2
- data/lib/awspec/generator/doc/type/directconnect_virtual_interface.rb +4 -2
- data/lib/awspec/generator/doc/type/dynamodb_table.rb +4 -2
- data/lib/awspec/generator/doc/type/ebs.rb +4 -2
- data/lib/awspec/generator/doc/type/ec2.rb +4 -2
- data/lib/awspec/generator/doc/type/ec2_account_attributes.rb +2 -0
- data/lib/awspec/generator/doc/type/ecr_repository.rb +2 -0
- data/lib/awspec/generator/doc/type/ecs_cluster.rb +4 -2
- data/lib/awspec/generator/doc/type/ecs_container_instance.rb +4 -2
- data/lib/awspec/generator/doc/type/ecs_service.rb +4 -2
- data/lib/awspec/generator/doc/type/ecs_task_definition.rb +4 -2
- data/lib/awspec/generator/doc/type/efs.rb +2 -0
- data/lib/awspec/generator/doc/type/eip.rb +2 -0
- data/lib/awspec/generator/doc/type/eks.rb +4 -2
- data/lib/awspec/generator/doc/type/eks_nodegroup.rb +4 -2
- data/lib/awspec/generator/doc/type/elasticache.rb +4 -2
- data/lib/awspec/generator/doc/type/elasticache_cache_parameter_group.rb +2 -0
- data/lib/awspec/generator/doc/type/elasticsearch.rb +2 -0
- data/lib/awspec/generator/doc/type/elastictranscoder_pipeline.rb +4 -2
- data/lib/awspec/generator/doc/type/elb.rb +5 -3
- data/lib/awspec/generator/doc/type/emr.rb +4 -2
- data/lib/awspec/generator/doc/type/firehose.rb +2 -0
- data/lib/awspec/generator/doc/type/iam_group.rb +3 -1
- data/lib/awspec/generator/doc/type/iam_policy.rb +2 -0
- data/lib/awspec/generator/doc/type/iam_role.rb +3 -1
- data/lib/awspec/generator/doc/type/iam_user.rb +3 -1
- data/lib/awspec/generator/doc/type/internet_gateway.rb +2 -0
- data/lib/awspec/generator/doc/type/kinesis.rb +2 -0
- data/lib/awspec/generator/doc/type/kms.rb +2 -0
- data/lib/awspec/generator/doc/type/lambda.rb +3 -1
- data/lib/awspec/generator/doc/type/lambda_account_settings.rb +2 -0
- data/lib/awspec/generator/doc/type/launch_configuration.rb +2 -0
- data/lib/awspec/generator/doc/type/launch_template.rb +2 -0
- data/lib/awspec/generator/doc/type/mq.rb +5 -3
- data/lib/awspec/generator/doc/type/msk.rb +2 -0
- data/lib/awspec/generator/doc/type/nat_gateway.rb +4 -2
- data/lib/awspec/generator/doc/type/network_acl.rb +4 -2
- data/lib/awspec/generator/doc/type/network_interface.rb +4 -2
- data/lib/awspec/generator/doc/type/nlb.rb +4 -2
- data/lib/awspec/generator/doc/type/nlb_listener.rb +3 -1
- data/lib/awspec/generator/doc/type/nlb_target_group.rb +3 -1
- data/lib/awspec/generator/doc/type/rds.rb +5 -3
- data/lib/awspec/generator/doc/type/rds_account_attributes.rb +2 -0
- data/lib/awspec/generator/doc/type/rds_db_cluster_parameter_group.rb +2 -0
- data/lib/awspec/generator/doc/type/rds_db_parameter_group.rb +2 -0
- data/lib/awspec/generator/doc/type/redshift.rb +5 -3
- data/lib/awspec/generator/doc/type/redshift_cluster_parameter_group.rb +2 -0
- data/lib/awspec/generator/doc/type/route53_hosted_zone.rb +2 -0
- data/lib/awspec/generator/doc/type/route_table.rb +2 -0
- data/lib/awspec/generator/doc/type/s3_bucket.rb +3 -1
- data/lib/awspec/generator/doc/type/secretsmanager.rb +2 -0
- data/lib/awspec/generator/doc/type/security_group.rb +4 -2
- data/lib/awspec/generator/doc/type/ses_identity.rb +4 -2
- data/lib/awspec/generator/doc/type/ses_send_quota.rb +2 -0
- data/lib/awspec/generator/doc/type/sns_topic.rb +5 -3
- data/lib/awspec/generator/doc/type/sqs.rb +2 -0
- data/lib/awspec/generator/doc/type/ssm_parameter.rb +2 -0
- data/lib/awspec/generator/doc/type/subnet.rb +4 -2
- data/lib/awspec/generator/doc/type/transit_gateway.rb +2 -0
- data/lib/awspec/generator/doc/type/vpc.rb +4 -2
- data/lib/awspec/generator/doc/type/vpc_endpoints.rb +2 -0
- data/lib/awspec/generator/doc/type/vpn_connection.rb +4 -2
- data/lib/awspec/generator/doc/type/vpn_gateway.rb +4 -2
- data/lib/awspec/generator/doc/type/waf_web_acl.rb +3 -1
- data/lib/awspec/generator/doc/type/wafregional_web_acl.rb +3 -1
- data/lib/awspec/generator/doc/type.rb +5 -3
- data/lib/awspec/generator/spec/acm.rb +4 -2
- data/lib/awspec/generator/spec/alb.rb +6 -4
- data/lib/awspec/generator/spec/alb_listener.rb +6 -4
- data/lib/awspec/generator/spec/autoscaling_group.rb +6 -4
- data/lib/awspec/generator/spec/cloudwatch_alarm.rb +4 -2
- data/lib/awspec/generator/spec/cloudwatch_event.rb +4 -2
- data/lib/awspec/generator/spec/cloudwatch_logs.rb +4 -2
- data/lib/awspec/generator/spec/codebuild.rb +4 -2
- data/lib/awspec/generator/spec/directconnect.rb +4 -2
- data/lib/awspec/generator/spec/ebs.rb +5 -4
- data/lib/awspec/generator/spec/ec2.rb +5 -2
- data/lib/awspec/generator/spec/efs.rb +4 -2
- data/lib/awspec/generator/spec/eip.rb +4 -2
- data/lib/awspec/generator/spec/elasticache.rb +5 -2
- data/lib/awspec/generator/spec/elasticsearch.rb +4 -2
- data/lib/awspec/generator/spec/elb.rb +8 -6
- data/lib/awspec/generator/spec/iam_group.rb +4 -2
- data/lib/awspec/generator/spec/iam_policy.rb +3 -0
- data/lib/awspec/generator/spec/iam_role.rb +4 -2
- data/lib/awspec/generator/spec/iam_user.rb +4 -2
- data/lib/awspec/generator/spec/internet_gateway.rb +6 -4
- data/lib/awspec/generator/spec/kms.rb +4 -2
- data/lib/awspec/generator/spec/lambda.rb +4 -2
- data/lib/awspec/generator/spec/nat_gateway.rb +6 -4
- data/lib/awspec/generator/spec/network_acl.rb +15 -13
- data/lib/awspec/generator/spec/network_interface.rb +13 -10
- data/lib/awspec/generator/spec/nlb.rb +6 -4
- data/lib/awspec/generator/spec/nlb_listener.rb +6 -4
- data/lib/awspec/generator/spec/rds.rb +5 -2
- data/lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb +3 -2
- data/lib/awspec/generator/spec/rds_db_parameter_group.rb +3 -2
- data/lib/awspec/generator/spec/redshift.rb +5 -2
- data/lib/awspec/generator/spec/redshift_cluster_parameter_group.rb +3 -2
- data/lib/awspec/generator/spec/route53_hosted_zone.rb +4 -2
- data/lib/awspec/generator/spec/route_table.rb +12 -14
- data/lib/awspec/generator/spec/s3_bucket.rb +9 -6
- data/lib/awspec/generator/spec/security_group.rb +9 -8
- data/lib/awspec/generator/spec/subnet.rb +6 -4
- data/lib/awspec/generator/spec/vpc.rb +5 -2
- data/lib/awspec/generator/template.rb +17 -15
- data/lib/awspec/generator.rb +4 -2
- data/lib/awspec/helper/client_wrap.rb +5 -1
- data/lib/awspec/helper/color.rb +2 -0
- data/lib/awspec/helper/finder/account_attributes.rb +8 -6
- data/lib/awspec/helper/finder/acm.rb +4 -0
- data/lib/awspec/helper/finder/alb.rb +7 -5
- data/lib/awspec/helper/finder/ami.rb +4 -0
- data/lib/awspec/helper/finder/apigateway.rb +2 -0
- data/lib/awspec/helper/finder/autoscaling.rb +3 -0
- data/lib/awspec/helper/finder/batch.rb +2 -0
- data/lib/awspec/helper/finder/cloudformation.rb +2 -0
- data/lib/awspec/helper/finder/cloudfront.rb +3 -0
- data/lib/awspec/helper/finder/cloudtrail.rb +2 -0
- data/lib/awspec/helper/finder/cloudwatch.rb +3 -0
- data/lib/awspec/helper/finder/cloudwatch_event.rb +2 -0
- data/lib/awspec/helper/finder/cloudwatch_logs.rb +10 -5
- data/lib/awspec/helper/finder/codebuild.rb +3 -0
- data/lib/awspec/helper/finder/codedeploy.rb +2 -0
- data/lib/awspec/helper/finder/cognito_identity_pool.rb +2 -0
- data/lib/awspec/helper/finder/cognito_user_pool.rb +2 -0
- data/lib/awspec/helper/finder/directconnect.rb +2 -0
- data/lib/awspec/helper/finder/dynamodb.rb +2 -0
- data/lib/awspec/helper/finder/ebs.rb +5 -0
- data/lib/awspec/helper/finder/ec2.rb +16 -10
- data/lib/awspec/helper/finder/ecr.rb +2 -0
- data/lib/awspec/helper/finder/ecs.rb +5 -2
- data/lib/awspec/helper/finder/efs.rb +5 -4
- data/lib/awspec/helper/finder/eks.rb +2 -0
- data/lib/awspec/helper/finder/elasticache.rb +3 -1
- data/lib/awspec/helper/finder/elasticsearch.rb +3 -1
- data/lib/awspec/helper/finder/elastictranscoder.rb +3 -0
- data/lib/awspec/helper/finder/elb.rb +6 -4
- data/lib/awspec/helper/finder/emr.rb +2 -0
- data/lib/awspec/helper/finder/firehose.rb +2 -0
- data/lib/awspec/helper/finder/iam.rb +16 -12
- data/lib/awspec/helper/finder/kinesis.rb +2 -0
- data/lib/awspec/helper/finder/kms.rb +3 -1
- data/lib/awspec/helper/finder/lambda.rb +3 -0
- data/lib/awspec/helper/finder/mq.rb +3 -1
- data/lib/awspec/helper/finder/msk.rb +2 -0
- data/lib/awspec/helper/finder/nlb.rb +11 -8
- data/lib/awspec/helper/finder/rds.rb +4 -1
- data/lib/awspec/helper/finder/redshift.rb +4 -1
- data/lib/awspec/helper/finder/route53.rb +4 -1
- data/lib/awspec/helper/finder/s3.rb +4 -2
- data/lib/awspec/helper/finder/secretsmanager.rb +2 -0
- data/lib/awspec/helper/finder/security_group.rb +2 -0
- data/lib/awspec/helper/finder/ses.rb +2 -0
- data/lib/awspec/helper/finder/sns_topic.rb +5 -3
- data/lib/awspec/helper/finder/sqs.rb +2 -0
- data/lib/awspec/helper/finder/ssm_parameter.rb +4 -1
- data/lib/awspec/helper/finder/subnet.rb +3 -0
- data/lib/awspec/helper/finder/vpc.rb +12 -6
- data/lib/awspec/helper/finder/vpc_endpoints.rb +2 -0
- data/lib/awspec/helper/finder/waf.rb +5 -0
- data/lib/awspec/helper/finder/wafregional.rb +5 -0
- data/lib/awspec/helper/finder.rb +3 -1
- data/lib/awspec/helper/states.rb +4 -2
- data/lib/awspec/helper/type.rb +8 -4
- data/lib/awspec/helper.rb +2 -0
- data/lib/awspec/matcher/be_allowed.rb +2 -0
- data/lib/awspec/matcher/be_allowed_action.rb +2 -0
- data/lib/awspec/matcher/be_attached_to.rb +3 -0
- data/lib/awspec/matcher/be_connected_to_vpc.rb +2 -0
- data/lib/awspec/matcher/be_denied.rb +2 -0
- data/lib/awspec/matcher/be_opened.rb +2 -0
- data/lib/awspec/matcher/be_opened_only.rb +2 -0
- data/lib/awspec/matcher/belong_to_alb.rb +4 -0
- data/lib/awspec/matcher/belong_to_cache_subnet_group.rb +2 -0
- data/lib/awspec/matcher/belong_to_cluster_subnet_group.rb +2 -0
- data/lib/awspec/matcher/belong_to_db_subnet_group.rb +2 -0
- data/lib/awspec/matcher/belong_to_domain.rb +2 -0
- data/lib/awspec/matcher/belong_to_iam_group.rb +2 -0
- data/lib/awspec/matcher/belong_to_metric.rb +2 -0
- data/lib/awspec/matcher/belong_to_nlb.rb +4 -0
- data/lib/awspec/matcher/belong_to_replication_group.rb +2 -0
- data/lib/awspec/matcher/belong_to_subnet.rb +5 -0
- data/lib/awspec/matcher/belong_to_subnets.rb +2 -0
- data/lib/awspec/matcher/belong_to_vpc.rb +4 -0
- data/lib/awspec/matcher/have_attribute_definition.rb +2 -0
- data/lib/awspec/matcher/have_cluster_parameter_group.rb +2 -0
- data/lib/awspec/matcher/have_custom_response_error_code.rb +3 -2
- data/lib/awspec/matcher/have_db_parameter_group.rb +2 -0
- data/lib/awspec/matcher/have_env_var.rb +2 -0
- data/lib/awspec/matcher/have_env_var_value.rb +2 -0
- data/lib/awspec/matcher/have_env_vars.rb +2 -0
- data/lib/awspec/matcher/have_inline_policy.rb +2 -0
- data/lib/awspec/matcher/have_key_policy.rb +2 -0
- data/lib/awspec/matcher/have_key_schema.rb +2 -0
- data/lib/awspec/matcher/have_metric_filter.rb +2 -0
- data/lib/awspec/matcher/have_network_interface.rb +2 -0
- data/lib/awspec/matcher/have_option_group.rb +2 -0
- data/lib/awspec/matcher/have_origin.rb +3 -2
- data/lib/awspec/matcher/have_private_ip_address.rb +2 -0
- data/lib/awspec/matcher/have_record_set.rb +3 -1
- data/lib/awspec/matcher/have_route.rb +5 -3
- data/lib/awspec/matcher/have_rule.rb +3 -0
- data/lib/awspec/matcher/have_subscription_attributes.rb +3 -0
- data/lib/awspec/matcher/have_subscription_filter.rb +2 -0
- data/lib/awspec/matcher/have_tag.rb +2 -0
- data/lib/awspec/matcher/have_vpc_peering_connection.rb +2 -0
- data/lib/awspec/matcher/include_subscribed.rb +2 -0
- data/lib/awspec/matcher.rb +2 -0
- data/lib/awspec/resource_reader.rb +3 -0
- data/lib/awspec/setup.rb +7 -5
- data/lib/awspec/shared_context.rb +3 -0
- data/lib/awspec/stub/account.rb +2 -0
- data/lib/awspec/stub/acm.rb +2 -0
- data/lib/awspec/stub/alb.rb +3 -1
- data/lib/awspec/stub/alb_listener.rb +4 -3
- data/lib/awspec/stub/alb_target_group.rb +3 -1
- data/lib/awspec/stub/ami.rb +2 -0
- data/lib/awspec/stub/apigateway.rb +2 -0
- data/lib/awspec/stub/autoscaling_group.rb +6 -4
- data/lib/awspec/stub/batch_compute_environment.rb +2 -0
- data/lib/awspec/stub/batch_job_definition.rb +2 -0
- data/lib/awspec/stub/batch_job_queue.rb +2 -0
- data/lib/awspec/stub/cloudformation_stack.rb +4 -2
- data/lib/awspec/stub/cloudfront_distribution.rb +6 -4
- data/lib/awspec/stub/cloudtrail.rb +2 -0
- data/lib/awspec/stub/cloudwatch_logs.rb +2 -0
- data/lib/awspec/stub/codebuild.rb +5 -3
- data/lib/awspec/stub/codedeploy.rb +2 -0
- data/lib/awspec/stub/codedeploy_deployment_group.rb +2 -0
- data/lib/awspec/stub/cognito_identity_pool.rb +2 -0
- data/lib/awspec/stub/cognito_user_pool.rb +2 -0
- data/lib/awspec/stub/directconnect_virtual_interface.rb +2 -0
- data/lib/awspec/stub/duplicated_resource_type.rb +2 -0
- data/lib/awspec/stub/dynamodb_table.rb +2 -0
- data/lib/awspec/stub/ebs.rb +2 -0
- data/lib/awspec/stub/ec2.rb +2 -0
- data/lib/awspec/stub/ec2_has_multi_security_groups.rb +2 -0
- data/lib/awspec/stub/ec2_non_existing.rb +2 -0
- data/lib/awspec/stub/ecr_repository.rb +2 -0
- data/lib/awspec/stub/ecs.rb +13 -22
- data/lib/awspec/stub/ecs_cluster.rb +4 -4
- data/lib/awspec/stub/ecs_container_instance.rb +3 -2
- data/lib/awspec/stub/ecs_service.rb +4 -4
- data/lib/awspec/stub/ecs_task_definition.rb +9 -14
- data/lib/awspec/stub/efs.rb +2 -0
- data/lib/awspec/stub/eip.rb +2 -0
- data/lib/awspec/stub/eks.rb +5 -3
- data/lib/awspec/stub/eks_nodegroup.rb +2 -0
- data/lib/awspec/stub/elasticache.rb +2 -0
- data/lib/awspec/stub/elasticache_cache_parameter_group.rb +2 -0
- data/lib/awspec/stub/elasticsearch.rb +2 -0
- data/lib/awspec/stub/elastictranscoder_pipeline.rb +2 -0
- data/lib/awspec/stub/elb.rb +2 -0
- data/lib/awspec/stub/emr.rb +2 -0
- data/lib/awspec/stub/firehose.rb +2 -0
- data/lib/awspec/stub/iam_group.rb +3 -2
- data/lib/awspec/stub/iam_policy.rb +2 -0
- data/lib/awspec/stub/iam_role.rb +3 -2
- data/lib/awspec/stub/iam_user.rb +3 -2
- data/lib/awspec/stub/internet_gateway.rb +2 -0
- data/lib/awspec/stub/kinesis.rb +8 -6
- data/lib/awspec/stub/kms.rb +2 -0
- data/lib/awspec/stub/lambda.rb +2 -0
- data/lib/awspec/stub/launch_configuration.rb +2 -0
- data/lib/awspec/stub/launch_template.rb +2 -0
- data/lib/awspec/stub/mq.rb +5 -3
- data/lib/awspec/stub/msk.rb +5 -3
- data/lib/awspec/stub/nat_gateway.rb +2 -0
- data/lib/awspec/stub/network_acl.rb +2 -0
- data/lib/awspec/stub/network_interface.rb +2 -0
- data/lib/awspec/stub/nlb.rb +3 -1
- data/lib/awspec/stub/nlb_listener.rb +4 -3
- data/lib/awspec/stub/nlb_target_group.rb +3 -1
- data/lib/awspec/stub/rds.rb +2 -0
- data/lib/awspec/stub/rds_db_cluster_parameter_group.rb +2 -0
- data/lib/awspec/stub/rds_db_parameter_group.rb +2 -0
- data/lib/awspec/stub/redshift.rb +2 -0
- data/lib/awspec/stub/redshift_cluster_parameter_group.rb +2 -0
- data/lib/awspec/stub/route53_hosted_zone.rb +2 -0
- data/lib/awspec/stub/route_table.rb +2 -0
- data/lib/awspec/stub/s3_bucket.rb +2 -0
- data/lib/awspec/stub/secretsmanager.rb +2 -0
- data/lib/awspec/stub/security_group.rb +2 -0
- data/lib/awspec/stub/ses_identity.rb +2 -0
- data/lib/awspec/stub/sns_topic.rb +3 -1
- data/lib/awspec/stub/sns_topic_error.rb +6 -2
- data/lib/awspec/stub/sqs.rb +2 -0
- data/lib/awspec/stub/ssm_parameter.rb +2 -0
- data/lib/awspec/stub/subnet.rb +2 -0
- data/lib/awspec/stub/transit_gateway.rb +2 -0
- data/lib/awspec/stub/vpc.rb +2 -0
- data/lib/awspec/stub/vpc_endpoints.rb +2 -0
- data/lib/awspec/stub/waf_web_acl.rb +2 -0
- data/lib/awspec/stub/wafregional_web_acl.rb +2 -0
- data/lib/awspec/stub.rb +3 -1
- data/lib/awspec/toolbox.rb +2 -0
- data/lib/awspec/type/account.rb +4 -2
- data/lib/awspec/type/account_attribute.rb +5 -2
- data/lib/awspec/type/account_attribute_base.rb +2 -0
- data/lib/awspec/type/acm.rb +8 -6
- data/lib/awspec/type/alb.rb +8 -3
- data/lib/awspec/type/alb_listener.rb +4 -0
- data/lib/awspec/type/alb_target_group.rb +3 -0
- data/lib/awspec/type/ami.rb +5 -3
- data/lib/awspec/type/apigateway.rb +9 -3
- data/lib/awspec/type/autoscaling_group.rb +3 -0
- data/lib/awspec/type/base.rb +6 -3
- data/lib/awspec/type/batch_compute_environment.rb +6 -4
- data/lib/awspec/type/batch_job_definition.rb +2 -0
- data/lib/awspec/type/batch_job_queue.rb +4 -2
- data/lib/awspec/type/cloudformation_stack.rb +2 -0
- data/lib/awspec/type/cloudfront_distribution.rb +11 -5
- data/lib/awspec/type/cloudtrail.rb +2 -0
- data/lib/awspec/type/cloudwatch_alarm.rb +2 -0
- data/lib/awspec/type/cloudwatch_event.rb +2 -0
- data/lib/awspec/type/cloudwatch_logs.rb +2 -0
- data/lib/awspec/type/codebuild.rb +2 -0
- data/lib/awspec/type/codedeploy.rb +2 -0
- data/lib/awspec/type/codedeploy_deployment_group.rb +4 -0
- data/lib/awspec/type/cognito_identity_pool.rb +2 -0
- data/lib/awspec/type/cognito_user_pool.rb +2 -0
- data/lib/awspec/type/customer_gateway.rb +5 -3
- data/lib/awspec/type/directconnect_virtual_interface.rb +5 -3
- data/lib/awspec/type/dynamodb_table.rb +5 -3
- data/lib/awspec/type/ebs.rb +6 -3
- data/lib/awspec/type/ec2.rb +10 -0
- data/lib/awspec/type/ec2_account_attributes.rb +2 -0
- data/lib/awspec/type/ecr_repository.rb +2 -0
- data/lib/awspec/type/ecs_cluster.rb +5 -2
- data/lib/awspec/type/ecs_container_instance.rb +4 -2
- data/lib/awspec/type/ecs_service.rb +5 -2
- data/lib/awspec/type/ecs_task_definition.rb +4 -2
- data/lib/awspec/type/efs.rb +3 -0
- data/lib/awspec/type/eip.rb +3 -0
- data/lib/awspec/type/eks.rb +4 -2
- data/lib/awspec/type/eks_nodegroup.rb +4 -2
- data/lib/awspec/type/elasticache.rb +7 -3
- data/lib/awspec/type/elasticache_cache_parameter_group.rb +3 -0
- data/lib/awspec/type/elasticsearch.rb +2 -0
- data/lib/awspec/type/elastictranscoder_pipeline.rb +5 -3
- data/lib/awspec/type/elb.rb +11 -3
- data/lib/awspec/type/emr.rb +8 -6
- data/lib/awspec/type/firehose.rb +4 -2
- data/lib/awspec/type/iam_group.rb +4 -0
- data/lib/awspec/type/iam_policy.rb +5 -0
- data/lib/awspec/type/iam_role.rb +3 -0
- data/lib/awspec/type/iam_user.rb +3 -0
- data/lib/awspec/type/internet_gateway.rb +2 -0
- data/lib/awspec/type/kinesis.rb +3 -0
- data/lib/awspec/type/kms.rb +3 -0
- data/lib/awspec/type/lambda.rb +2 -0
- data/lib/awspec/type/lambda_account_settings.rb +2 -0
- data/lib/awspec/type/launch_configuration.rb +3 -0
- data/lib/awspec/type/launch_template.rb +3 -0
- data/lib/awspec/type/mq.rb +7 -3
- data/lib/awspec/type/msk.rb +5 -3
- data/lib/awspec/type/nat_gateway.rb +5 -3
- data/lib/awspec/type/network_acl.rb +9 -2
- data/lib/awspec/type/network_interface.rb +9 -3
- data/lib/awspec/type/nlb.rb +6 -3
- data/lib/awspec/type/nlb_listener.rb +4 -0
- data/lib/awspec/type/nlb_target_group.rb +3 -0
- data/lib/awspec/type/rds.rb +7 -3
- data/lib/awspec/type/rds_account_attributes.rb +2 -0
- data/lib/awspec/type/rds_db_cluster_parameter_group.rb +3 -0
- data/lib/awspec/type/rds_db_parameter_group.rb +5 -1
- data/lib/awspec/type/redshift.rb +7 -3
- data/lib/awspec/type/redshift_cluster_parameter_group.rb +2 -0
- data/lib/awspec/type/resource_base.rb +2 -0
- data/lib/awspec/type/route53_hosted_zone.rb +7 -2
- data/lib/awspec/type/route_table.rb +12 -0
- data/lib/awspec/type/s3_bucket.rb +6 -3
- data/lib/awspec/type/secretsmanager.rb +2 -0
- data/lib/awspec/type/security_group.rb +14 -2
- data/lib/awspec/type/ses_identity.rb +8 -6
- data/lib/awspec/type/ses_send_quota.rb +2 -0
- data/lib/awspec/type/sns_topic.rb +4 -0
- data/lib/awspec/type/sqs.rb +4 -0
- data/lib/awspec/type/ssm_parameter.rb +3 -0
- data/lib/awspec/type/subnet.rb +6 -3
- data/lib/awspec/type/transit_gateway.rb +2 -0
- data/lib/awspec/type/vpc.rb +7 -3
- data/lib/awspec/type/vpc_endpoints.rb +5 -3
- data/lib/awspec/type/vpn_connection.rb +5 -3
- data/lib/awspec/type/vpn_gateway.rb +5 -3
- data/lib/awspec/type/waf_web_acl.rb +3 -0
- data/lib/awspec/type/wafregional_web_acl.rb +3 -0
- data/lib/awspec/version.rb +3 -1
- data/lib/awspec.rb +2 -0
- metadata +16 -16
@@ -1,4 +1,6 @@
|
|
1
|
-
#
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# rubocop:disable Layout/LineLength
|
2
4
|
Aws.config[:cloudformation] = {
|
3
5
|
stub_responses: {
|
4
6
|
describe_stacks: {
|
@@ -17,7 +19,7 @@ Aws.config[:cloudformation] = {
|
|
17
19
|
disable_rollback: false,
|
18
20
|
notification_arns: [],
|
19
21
|
timeout_in_minutes: nil,
|
20
|
-
capabilities: %w
|
22
|
+
capabilities: %w[CAPABILITY_IAM CAPABILITY_NAMED_IAM],
|
21
23
|
outputs:
|
22
24
|
[
|
23
25
|
{
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
Aws.config[:cloudfront] = {
|
2
4
|
stub_responses: {
|
3
5
|
list_distributions: {
|
@@ -63,10 +65,10 @@ Aws.config[:cloudfront] = {
|
|
63
65
|
min_ttl: 0,
|
64
66
|
allowed_methods: {
|
65
67
|
quantity: 2,
|
66
|
-
items: %w
|
68
|
+
items: %w[HEAD GET],
|
67
69
|
cached_methods: {
|
68
70
|
quantity: 2,
|
69
|
-
items: %w
|
71
|
+
items: %w[HEAD GET]
|
70
72
|
}
|
71
73
|
},
|
72
74
|
smooth_streaming: false,
|
@@ -159,10 +161,10 @@ Aws.config[:cloudfront] = {
|
|
159
161
|
min_ttl: 0,
|
160
162
|
allowed_methods: {
|
161
163
|
quantity: 2,
|
162
|
-
items: %w
|
164
|
+
items: %w[HEAD GET],
|
163
165
|
cached_methods: {
|
164
166
|
quantity: 2,
|
165
|
-
items: %w
|
167
|
+
items: %w[HEAD GET]
|
166
168
|
}
|
167
169
|
},
|
168
170
|
smooth_streaming: false,
|
data/lib/awspec/stub/ebs.rb
CHANGED
data/lib/awspec/stub/ec2.rb
CHANGED
data/lib/awspec/stub/ecs.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
Aws.config[:ecs] = {
|
2
4
|
stub_responses: {
|
3
5
|
describe_clusters: {
|
@@ -12,8 +14,7 @@ Aws.config[:ecs] = {
|
|
12
14
|
active_services_count: 0
|
13
15
|
}
|
14
16
|
],
|
15
|
-
failures: [
|
16
|
-
]
|
17
|
+
failures: []
|
17
18
|
},
|
18
19
|
list_container_instances: {
|
19
20
|
container_instance_arns: [
|
@@ -91,8 +92,7 @@ Aws.config[:ecs] = {
|
|
91
92
|
status: 'ACTIVE'
|
92
93
|
}
|
93
94
|
],
|
94
|
-
failures: [
|
95
|
-
]
|
95
|
+
failures: []
|
96
96
|
},
|
97
97
|
describe_task_definition: {
|
98
98
|
task_definition: {
|
@@ -100,24 +100,21 @@ Aws.config[:ecs] = {
|
|
100
100
|
{
|
101
101
|
name: 'wordpress',
|
102
102
|
cpu: 10,
|
103
|
-
environment: [
|
104
|
-
],
|
103
|
+
environment: [],
|
105
104
|
essential: true,
|
106
105
|
image: 'wordpress',
|
107
106
|
links: [
|
108
107
|
'mysql'
|
109
108
|
],
|
110
109
|
memory: 500,
|
111
|
-
mount_points: [
|
112
|
-
],
|
110
|
+
mount_points: [],
|
113
111
|
port_mappings: [
|
114
112
|
{
|
115
113
|
container_port: 80,
|
116
114
|
host_port: 80
|
117
115
|
}
|
118
116
|
],
|
119
|
-
volumes_from: [
|
120
|
-
]
|
117
|
+
volumes_from: []
|
121
118
|
},
|
122
119
|
{
|
123
120
|
name: 'mysql',
|
@@ -131,12 +128,9 @@ Aws.config[:ecs] = {
|
|
131
128
|
essential: true,
|
132
129
|
image: 'mysql',
|
133
130
|
memory: 500,
|
134
|
-
mount_points: [
|
135
|
-
],
|
136
|
-
|
137
|
-
],
|
138
|
-
volumes_from: [
|
139
|
-
]
|
131
|
+
mount_points: [],
|
132
|
+
port_mappings: [],
|
133
|
+
volumes_from: []
|
140
134
|
}
|
141
135
|
],
|
142
136
|
status: 'ACTIVE',
|
@@ -144,13 +138,11 @@ Aws.config[:ecs] = {
|
|
144
138
|
revision: 8,
|
145
139
|
task_definition_arn: 'arn:aws:ecs:us-east-1:123456789012:task-definition/my-ecs-task-definition:8',
|
146
140
|
task_role_arn: 'arn:aws:iam::123456789012:role/my-iam-role',
|
147
|
-
volumes: [
|
148
|
-
]
|
141
|
+
volumes: []
|
149
142
|
}
|
150
143
|
},
|
151
144
|
describe_services: {
|
152
|
-
failures: [
|
153
|
-
],
|
145
|
+
failures: [],
|
154
146
|
services: [
|
155
147
|
{
|
156
148
|
cluster_arn: 'arn:aws:ecs:us-east-1:123456789012:cluster/my-ecs-cluster',
|
@@ -184,8 +176,7 @@ Aws.config[:ecs] = {
|
|
184
176
|
'Troubleshooting section of the Amazon ECS Developer Guide.'
|
185
177
|
}
|
186
178
|
],
|
187
|
-
load_balancers: [
|
188
|
-
],
|
179
|
+
load_balancers: [],
|
189
180
|
pending_count: 0,
|
190
181
|
running_count: 0,
|
191
182
|
service_arn: 'arn:aws:ecs:us-east-1:123456789012:service/my-ecs-service',
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
Aws.config[:ecs] = {
|
2
4
|
stub_responses: {
|
3
5
|
describe_clusters: {
|
@@ -12,8 +14,7 @@ Aws.config[:ecs] = {
|
|
12
14
|
active_services_count: 0
|
13
15
|
}
|
14
16
|
],
|
15
|
-
failures: [
|
16
|
-
]
|
17
|
+
failures: []
|
17
18
|
},
|
18
19
|
list_container_instances: {
|
19
20
|
container_instance_arns: [
|
@@ -92,8 +93,7 @@ Aws.config[:ecs] = {
|
|
92
93
|
status: 'ACTIVE'
|
93
94
|
}
|
94
95
|
],
|
95
|
-
failures: [
|
96
|
-
]
|
96
|
+
failures: []
|
97
97
|
}
|
98
98
|
}
|
99
99
|
}
|
@@ -1,8 +1,9 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
Aws.config[:ecs] = {
|
2
4
|
stub_responses: {
|
3
5
|
describe_services: {
|
4
|
-
failures: [
|
5
|
-
],
|
6
|
+
failures: [],
|
6
7
|
services: [
|
7
8
|
{
|
8
9
|
cluster_arn: 'arn:aws:ecs:us-east-1:123456789012:cluster/my-ecs-cluster',
|
@@ -36,8 +37,7 @@ Aws.config[:ecs] = {
|
|
36
37
|
'Troubleshooting section of the Amazon ECS Developer Guide.'
|
37
38
|
}
|
38
39
|
],
|
39
|
-
load_balancers: [
|
40
|
-
],
|
40
|
+
load_balancers: [],
|
41
41
|
pending_count: 0,
|
42
42
|
running_count: 0,
|
43
43
|
service_arn: 'arn:aws:ecs:us-east-1:123456789012:service/my-ecs-service',
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
Aws.config[:ecs] = {
|
2
4
|
stub_responses: {
|
3
5
|
describe_task_definition: {
|
@@ -6,24 +8,21 @@ Aws.config[:ecs] = {
|
|
6
8
|
{
|
7
9
|
name: 'wordpress',
|
8
10
|
cpu: 10,
|
9
|
-
environment: [
|
10
|
-
],
|
11
|
+
environment: [],
|
11
12
|
essential: true,
|
12
13
|
image: 'wordpress',
|
13
14
|
links: [
|
14
15
|
'mysql'
|
15
16
|
],
|
16
17
|
memory: 500,
|
17
|
-
mount_points: [
|
18
|
-
],
|
18
|
+
mount_points: [],
|
19
19
|
port_mappings: [
|
20
20
|
{
|
21
21
|
container_port: 80,
|
22
22
|
host_port: 80
|
23
23
|
}
|
24
24
|
],
|
25
|
-
volumes_from: [
|
26
|
-
]
|
25
|
+
volumes_from: []
|
27
26
|
},
|
28
27
|
{
|
29
28
|
name: 'mysql',
|
@@ -37,12 +36,9 @@ Aws.config[:ecs] = {
|
|
37
36
|
essential: true,
|
38
37
|
image: 'mysql',
|
39
38
|
memory: 500,
|
40
|
-
mount_points: [
|
41
|
-
],
|
42
|
-
|
43
|
-
],
|
44
|
-
volumes_from: [
|
45
|
-
]
|
39
|
+
mount_points: [],
|
40
|
+
port_mappings: [],
|
41
|
+
volumes_from: []
|
46
42
|
}
|
47
43
|
],
|
48
44
|
status: 'ACTIVE',
|
@@ -50,8 +46,7 @@ Aws.config[:ecs] = {
|
|
50
46
|
revision: 8,
|
51
47
|
task_definition_arn: 'arn:aws:ecs:us-east-1:123456789012:task-definition/my-ecs-task-definition:8',
|
52
48
|
task_role_arn: 'arn:aws:iam::123456789012:role/my-iam-role',
|
53
|
-
volumes: [
|
54
|
-
]
|
49
|
+
volumes: []
|
55
50
|
}
|
56
51
|
}
|
57
52
|
}
|
data/lib/awspec/stub/efs.rb
CHANGED
data/lib/awspec/stub/eip.rb
CHANGED
data/lib/awspec/stub/eks.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
Aws.config[:eks] = {
|
2
4
|
stub_responses: {
|
3
5
|
describe_cluster: {
|
@@ -14,9 +16,9 @@ Aws.config[:eks] = {
|
|
14
16
|
security_group_ids: [
|
15
17
|
'sg-6979fe18'
|
16
18
|
],
|
17
|
-
subnet_ids: [
|
18
|
-
|
19
|
-
|
19
|
+
subnet_ids: %w[
|
20
|
+
subnet-6782e71e
|
21
|
+
subnet-e7e761ac
|
20
22
|
],
|
21
23
|
vpc_id: 'vpc-950809ec'
|
22
24
|
},
|
data/lib/awspec/stub/elb.rb
CHANGED
data/lib/awspec/stub/emr.rb
CHANGED
data/lib/awspec/stub/firehose.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
Aws.config[:iam] = {
|
2
4
|
stub_responses: {
|
3
5
|
list_users: {
|
@@ -79,8 +81,7 @@ Aws.config[:iam] = {
|
|
79
81
|
eval_action_name: 'ec2:DescribeInstances',
|
80
82
|
eval_resource_name: '*',
|
81
83
|
eval_decision: 'allowed',
|
82
|
-
matched_statements: [
|
83
|
-
]
|
84
|
+
matched_statements: []
|
84
85
|
}
|
85
86
|
],
|
86
87
|
is_truncated: false,
|
data/lib/awspec/stub/iam_role.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
Aws.config[:iam] = {
|
2
4
|
stub_responses: {
|
3
5
|
list_roles: {
|
@@ -49,8 +51,7 @@ Aws.config[:iam] = {
|
|
49
51
|
eval_action_name: 'ec2:DescribeInstances',
|
50
52
|
eval_resource_name: '*',
|
51
53
|
eval_decision: 'allowed',
|
52
|
-
matched_statements: [
|
53
|
-
]
|
54
|
+
matched_statements: []
|
54
55
|
}
|
55
56
|
],
|
56
57
|
is_truncated: false,
|
data/lib/awspec/stub/iam_user.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
Aws.config[:iam] = {
|
2
4
|
stub_responses: {
|
3
5
|
list_users: {
|
@@ -60,8 +62,7 @@ Aws.config[:iam] = {
|
|
60
62
|
eval_action_name: 'ec2:DescribeInstances',
|
61
63
|
eval_resource_name: '*',
|
62
64
|
eval_decision: 'allowed',
|
63
|
-
matched_statements: [
|
64
|
-
]
|
65
|
+
matched_statements: []
|
65
66
|
}
|
66
67
|
],
|
67
68
|
is_truncated: false,
|
data/lib/awspec/stub/kinesis.rb
CHANGED
@@ -1,10 +1,12 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
Aws.config[:kinesis] = {
|
2
4
|
stub_responses: {
|
3
5
|
list_streams: {
|
4
|
-
stream_names: [
|
5
|
-
|
6
|
-
|
7
|
-
|
6
|
+
stream_names: %w[
|
7
|
+
my-kinesis
|
8
|
+
second-stream
|
9
|
+
third-stream
|
8
10
|
],
|
9
11
|
has_more_streams: false
|
10
12
|
},
|
@@ -17,7 +19,7 @@ Aws.config[:kinesis] = {
|
|
17
19
|
stream_creation_timestamp: Time.at(1_529_001_577),
|
18
20
|
enhanced_monitoring: [
|
19
21
|
{
|
20
|
-
shard_level_metrics: %w
|
22
|
+
shard_level_metrics: %w[
|
21
23
|
IncomingBytes
|
22
24
|
OutgoingRecords
|
23
25
|
IteratorAgeMilliseconds
|
@@ -25,7 +27,7 @@ Aws.config[:kinesis] = {
|
|
25
27
|
ReadProvisionedThroughputExceeded
|
26
28
|
WriteProvisionedThroughputExceeded
|
27
29
|
OutgoingBytes
|
28
|
-
|
30
|
+
]
|
29
31
|
}
|
30
32
|
],
|
31
33
|
encryption_type: 'KMS',
|
data/lib/awspec/stub/kms.rb
CHANGED
data/lib/awspec/stub/lambda.rb
CHANGED
data/lib/awspec/stub/mq.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
Aws.config[:mq] = {
|
2
4
|
stub_responses: {
|
3
5
|
describe_broker: {
|
@@ -66,9 +68,9 @@ Aws.config[:mq] = {
|
|
66
68
|
tags: {
|
67
69
|
'Name' => 'my-mq'
|
68
70
|
},
|
69
|
-
subnet_ids: [
|
70
|
-
|
71
|
-
|
71
|
+
subnet_ids: %w[
|
72
|
+
subnet-c102731fbf7b7abb9
|
73
|
+
subnet-4efe21eb33f86ef91
|
72
74
|
],
|
73
75
|
host_instance_type: 'mq.m4.large',
|
74
76
|
security_groups: [
|
data/lib/awspec/stub/msk.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
Aws.config[:kafka] = {
|
2
4
|
stub_responses: {
|
3
5
|
list_clusters: {
|
@@ -6,9 +8,9 @@ Aws.config[:kafka] = {
|
|
6
8
|
active_operation_arn: nil,
|
7
9
|
broker_node_group_info: {
|
8
10
|
broker_az_distribution: 'DEFAULT',
|
9
|
-
client_subnets: [
|
10
|
-
|
11
|
-
|
11
|
+
client_subnets: %w[
|
12
|
+
subnet-12345678909876543
|
13
|
+
subnet-90876543212345678
|
12
14
|
],
|
13
15
|
instance_type: 'kafka.t3.small',
|
14
16
|
security_groups: [
|