Skip to content

Commit

Permalink
AllowedValues from botocore
Browse files Browse the repository at this point in the history
#50

AWS::WorkSpaces::Workspace.ComputeTypeName should pick up POWERPRO and GRAPHICSPRO:
https://github.com/boto/botocore/blob/ae2d0855ac3162520e584a24f5522b633de4e2a9/botocore/data/workspaces/2015-04-08/service-2.json#L822-L823
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspaces-workspace-workspaceproperties.html#cfn-workspaces-workspace-workspaceproperties-computetypename

AWS::CodeBuild::Project.Environment.Type should pick up WINDOWS_SERVER_2019_CONTAINER:
https://github.com/boto/botocore/blob/ae2d0855ac3162520e584a24f5522b633de4e2a9/botocore/data/codebuild/2016-10-06/service-2.json#L1873
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-environment.html#cfn-codebuild-project-environment-type

S3BucketTopicConfigurationEvent should pick up s3:ObjectRestore:* and s3:Replication:*:
https://github.com/boto/botocore/blob/ae2d0855ac3162520e584a24f5522b633de4e2a9/botocore/data/s3/2006-03-01/service-2.json#L2887-L2890
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-notificationconfig-topicconfig.html#cfn-s3-bucket-notificationconfig-topicconfig-event
https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html#notification-how-to-event-types-and-destinations

EbsVolumeType should pick up io2:
https://aws.amazon.com/blogs/aws/new-ebs-volume-type-io2-more-iops-gib-higher-durability/
https://raw.githubusercontent.com/boto/botocore/master/botocore/data/ec2/2016-11-15/service-2.json
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-blockdev-template.html#cfn-ec2-blockdev-template-volumetype
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ebs-volume.html#cfn-ec2-ebs-volume-volumetype

AWS::GuardDuty::IPSet.Format should pick up ALIEN_VAULT and PROOF_POINT and FIRE_EYE:
https://github.com/boto/botocore/blob/ae2d0855ac3162520e584a24f5522b633de4e2a9/botocore/data/guardduty/2017-11-28/service-2.json#L3130-L3132
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-ipset.html#cfn-guardduty-ipset-format

AWS::CodeBuild::Project.Environment.ComputeType should pick up BUILD_GENERAL1_2XLARGE:
https://github.com/boto/botocore/blob/16958153b1e01dcbf5d4334394a14715438b53f1/botocore/data/codebuild/2016-10-06/service-2.json#L1413
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-environment.html#cfn-codebuild-project-environment-computetype
https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html

AWS::CloudFront::Distribution.SslSupportMethod should pick up static-ip:
https://github.com/boto/botocore/blob/ae2d0855ac3162520e584a24f5522b633de4e2a9/botocore/data/cloudfront/2020-05-31/service-2.json#L6101
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-viewercertificate.html#cfn-cloudfront-distribution-viewercertificate-sslsupportmethod

AWS::Glue::Connection.ConnectionInput.ConnectionType picks up NETWORK:
https://github.com/boto/botocore/blob/ae2d0855ac3162520e584a24f5522b633de4e2a9/botocore/data/glue/2017-03-31/service-2.json#L3372
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-connection-connectioninput.html#cfn-glue-connection-connectioninput-connectiontype
  • Loading branch information
PatMyron committed Sep 5, 2020
1 parent f894aab commit da2392d
Show file tree
Hide file tree
Showing 23 changed files with 106 additions and 761 deletions.
196 changes: 22 additions & 174 deletions src/cfnlint/data/ExtendedSpecs/all/03_value_types.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,7 @@
]
},
"DmsEndpointSslMode": {
"AllowedValues": [
"none",
"require",
"verify-ca",
"verify-full"
]
"botocore": "dms/2016-01-01/DmsSslModeValue"
},
"DmsEndpointType": {
"AllowedValues": [
Expand Down Expand Up @@ -122,19 +117,7 @@
]
},
"EC2CapacityReservationInstancePlatform": {
"AllowedValues": [
"Linux with SQL Server Enterprise",
"Linux with SQL Server Standard",
"Linux with SQL Server Web",
"Linux/UNIX",
"Red Hat Enterprise Linux",
"SUSE Linux",
"Windows with SQL Server Enterprise",
"Windows with SQL Server Standard",
"Windows with SQL Server Web",
"Windows with SQL Server",
"Windows"
]
"botocore": "ec2/2016-11-15/CapacityReservationInstancePlatform"
},
"EC2InstanceInitiatedShutdownBehavior": {
"AllowedValues": [
Expand All @@ -148,11 +131,7 @@
]
},
"EC2SpotInstanceInitiatedShutdownBehavior": {
"AllowedValues": [
"hibernate",
"stop",
"terminate"
]
"botocore": "ec2/2016-11-15/SpotInstanceInterruptionBehavior"
},
"EC2SpotInstanceType": {
"AllowedValues": [
Expand All @@ -161,13 +140,7 @@
]
},
"EFSFileSystemLifecyclePolicy": {
"AllowedValues": [
"AFTER_7_DAYS",
"AFTER_14_DAYS",
"AFTER_30_DAYS",
"AFTER_60_DAYS",
"AFTER_90_DAYS"
]
"botocore": "efs/2015-02-01/TransitionToIARules"
},
"EFSFileSystemPerformanceMode": {
"AllowedValues": [
Expand All @@ -186,13 +159,7 @@
"NumberMin": 100
},
"EbsVolumeType": {
"AllowedValues": [
"gp2",
"io1",
"sc1",
"st1",
"standard"
]
"botocore": "ec2/2016-11-15/VolumeType"
},
"Ec2CpuCredits": {
"AllowedValues": [
Expand Down Expand Up @@ -225,11 +192,7 @@
]
},
"Ec2FleetSpotAllocationStrategy": {
"AllowedValues": [
"capacityOptimized",
"diversified",
"lowestPrice"
]
"botocore": "ec2/2016-11-15/AllocationStrategy"
},
"Ec2FleetSpotInterruptionBehavior": {
"AllowedValues": [
Expand All @@ -239,11 +202,7 @@
]
},
"Ec2FleetType": {
"AllowedValues": [
"instant",
"maintain",
"request"
]
"botocore": "ec2/2016-11-15/FleetType"
},
"Ec2FlowLogDestinationType": {
"AllowedValues": [
Expand All @@ -252,18 +211,10 @@
]
},
"Ec2FlowLogResourceType": {
"AllowedValues": [
"NetworkInterface",
"Subnet",
"VPC"
]
"botocore": "ec2/2016-11-15/FlowLogsResourceType"
},
"Ec2FlowLogTrafficType": {
"AllowedValues": [
"ACCEPT",
"ALL",
"REJECT"
]
"botocore": "ec2/2016-11-15/TrafficType"
},
"Ec2HostAutoPlacement": {
"AllowedValues": [
Expand All @@ -279,11 +230,7 @@
}
},
"Ec2Tenancy": {
"AllowedValues": [
"dedicated",
"default",
"host"
]
"botocore": "ec2/2016-11-15/Tenancy"
},
"EcsLaunchType": {
"AllowedValues": [
Expand All @@ -292,12 +239,7 @@
]
},
"EcsNetworkMode": {
"AllowedValues": [
"awsvpc",
"bridge",
"host",
"none"
]
"botocore": "ecs/2014-11-13/NetworkMode"
},
"EcsSchedulingStrategy": {
"AllowedValues": [
Expand Down Expand Up @@ -376,31 +318,7 @@
}
},
"LambdaRuntime": {
"AllowedValues": [
"dotnetcore1.0",
"dotnetcore2.0",
"dotnetcore2.1",
"dotnetcore3.1",
"go1.x",
"java8",
"java8.al2",
"java11",
"nodejs",
"nodejs4.3-edge",
"nodejs4.3",
"nodejs6.10",
"nodejs8.10",
"nodejs10.x",
"nodejs12.x",
"provided",
"provided.al2",
"python2.7",
"python3.6",
"python3.7",
"python3.8",
"ruby2.5",
"ruby2.7"
]
"botocore": "lambda/2015-03-31/Runtime"
},
"LaunchConfigurationName": {
"GetAtt": {},
Expand Down Expand Up @@ -512,11 +430,7 @@
}
},
"PlacementGroupStrategy": {
"AllowedValues": [
"cluster",
"partition",
"spread"
]
"botocore": "ec2/2016-11-15/PlacementGroupStrategy"
},
"PlacementTenancy": {
"AllowedValues": [
Expand All @@ -530,15 +444,7 @@
}
},
"PredicateType": {
"AllowedValues": [
"ByteMatch",
"GeoMatch",
"IPMatch",
"RegexMatch",
"SizeConstraint",
"SqlInjectionMatch",
"XssMatch"
]
"botocore": "waf/2015-08-24/PredicateType"
},
"PrivateIpAddress": {
"GetAtt": {
Expand Down Expand Up @@ -586,20 +492,7 @@
]
},
"RecordSetType": {
"AllowedValues": [
"A",
"AAAA",
"CAA",
"CNAME",
"MX",
"NAPTR",
"NS",
"PTR",
"SOA",
"SPF",
"SRV",
"TXT"
]
"botocore": "route53/2013-04-01/RRType"
},
"RedshiftClusterType": {
"AllowedValues": [
Expand Down Expand Up @@ -655,22 +548,10 @@
}
},
"Route53HealthCheckConfigHealthStatus": {
"AllowedValues": [
"Healthy",
"LastKnownStatus",
"Unhealthy"
]
"botocore": "route53/2013-04-01/InsufficientDataHealthStatus"
},
"Route53HealthCheckConfigType": {
"AllowedValues": [
"CALCULATED",
"CLOUDWATCH_METRIC",
"HTTP_STR_MATCH",
"HTTP",
"HTTPS_STR_MATCH",
"HTTPS",
"TCP"
]
"botocore": "route53/2013-04-01/HealthCheckType"
},
"Route53ResolverEndpointDirection": {
"AllowedValues": [
Expand All @@ -679,11 +560,7 @@
]
},
"Route53ResolverRuleType": {
"AllowedValues": [
"FORWARD",
"RECURSIVE",
"SYSTEM"
]
"botocore": "route53resolver/2018-04-01/RuleTypeOption"
},
"S3BucketAccelerationStatus": {
"AllowedValues": [
Expand Down Expand Up @@ -728,23 +605,7 @@
]
},
"S3BucketTopicConfigurationEvent": {
"AllowedValues": [
"s3:ObjectCreated:*",
"s3:ObjectCreated:CompleteMultipartUpload",
"s3:ObjectCreated:Copy",
"s3:ObjectCreated:Post",
"s3:ObjectCreated:Put",
"s3:ObjectRemoved:*",
"s3:ObjectRemoved:Delete",
"s3:ObjectRemoved:DeleteMarkerCreated",
"s3:ObjectRestore:Completed",
"s3:ObjectRestore:Post",
"s3:ReducedRedundancyLostObject",
"s3:Replication:OperationFailedReplication",
"s3:Replication:OperationMissedThreshold",
"s3:Replication:OperationReplicatedAfterThreshold",
"s3:Replication:OperationNotTracked"
]
"botocore": "s3/2006-03-01/Event"
},
"S3BucketVersioningConfigurationStatus": {
"AllowedValues": [
Expand All @@ -762,19 +623,10 @@
]
},
"ServiceDiscoveryDnsType": {
"AllowedValues": [
"A",
"AAAA",
"SRV",
"CNAME"
]
"botocore": "servicediscovery/2017-03-14/RecordType"
},
"ServiceDiscoveryHealthCheckConfigType": {
"AllowedValues": [
"HTTP",
"HTTPS",
"TCP"
]
"botocore": "servicediscovery/2017-03-14/HealthCheckType"
},
"SesReceiptRuleTlsPolicy": {
"AllowedValues": [
Expand Down Expand Up @@ -814,11 +666,7 @@
]
},
"SpotFleetType": {
"AllowedValues": [
"instant",
"maintain",
"request"
]
"botocore": "ec2/2016-11-15/FleetType"
},
"SsmDocumentName": {
"GetAtt": {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,14 @@
"op": "add",
"path": "/ValueTypes/AWS::AmazonMQ::Broker.DeploymentMode",
"value": {
"AllowedValues": [
"ACTIVE_STANDBY_MULTI_AZ",
"SINGLE_INSTANCE"
]
"botocore": "mq/2017-11-27/DeploymentMode"
}
},
{
"op": "add",
"path": "/ValueTypes/AWS::AmazonMQ::Broker.EngineType",
"value": {
"AllowedValues": [
"ACTIVEMQ"
]
"botocore": "mq/2017-11-27/EngineType"
}
},
{
Expand Down
Loading

0 comments on commit da2392d

Please sign in to comment.