Skip to content

Commit

Permalink
elimate unicode strings from being allowed for patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
kddejong committed Jan 28, 2021
1 parent 8089d84 commit 80a511f
Show file tree
Hide file tree
Showing 26 changed files with 172 additions and 3,330 deletions.
134 changes: 5 additions & 129 deletions src/cfnlint/data/CloudSpecs/af-south-1.json
Original file line number Diff line number Diff line change
Expand Up @@ -22347,10 +22347,7 @@
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-evaluatelowsamplecountpercentile",
"PrimitiveType": "String",
"Required": false,
"UpdateType": "Mutable",
"Value": {
"ValueType": "AWS::CloudWatch::Alarm.EvaluateLowSampleCountPercentile"
}
"UpdateType": "Mutable"
},
"EvaluationPeriods": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-evaluationperiods",
Expand Down Expand Up @@ -22390,10 +22387,7 @@
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-namespace",
"PrimitiveType": "String",
"Required": false,
"UpdateType": "Mutable",
"Value": {
"ValueType": "AWS::CloudWatch::Alarm.Namespace"
}
"UpdateType": "Mutable"
},
"OKActions": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-okactions",
Expand Down Expand Up @@ -22428,10 +22422,7 @@
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-dynamic-threshold",
"PrimitiveType": "String",
"Required": false,
"UpdateType": "Mutable",
"Value": {
"ValueType": "AWS::CloudWatch::Alarm.ThresholdMetricId"
}
"UpdateType": "Mutable"
},
"TreatMissingData": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-treatmissingdata",
Expand Down Expand Up @@ -23720,10 +23711,7 @@
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationobjectstorage.html#cfn-datasync-locationobjectstorage-bucketname",
"PrimitiveType": "String",
"Required": true,
"UpdateType": "Immutable",
"Value": {
"ValueType": "AWS::DataSync::LocationObjectStorage.BucketName"
}
"UpdateType": "Immutable"
},
"SecretKey": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationobjectstorage.html#cfn-datasync-locationobjectstorage-secretkey",
Expand Down Expand Up @@ -38287,30 +38275,6 @@
"LessThanThreshold"
]
},
"AWS::CloudWatch::Alarm.Dimension.Name": {
"StringMax": 255,
"StringMin": 1
},
"AWS::CloudWatch::Alarm.Dimension.Value": {
"StringMax": 255,
"StringMin": 1
},
"AWS::CloudWatch::Alarm.EvaluateLowSampleCountPercentile": {
"StringMax": 255,
"StringMin": 1
},
"AWS::CloudWatch::Alarm.Metric.MetricName": {
"StringMax": 255,
"StringMin": 1
},
"AWS::CloudWatch::Alarm.Metric.Namespace": {
"StringMax": 255,
"StringMin": 1
},
"AWS::CloudWatch::Alarm.Namespace": {
"StringMax": 255,
"StringMin": 1
},
"AWS::CloudWatch::Alarm.Statistic": {
"AllowedValues": [
"Average",
Expand All @@ -38320,19 +38284,13 @@
"Sum"
]
},
"AWS::CloudWatch::Alarm.ThresholdMetricId": {
"StringMax": 255,
"StringMin": 1
},
"AWS::CloudWatch::Alarm.TreatMissingData": {
"AllowedValues": [
"breaching",
"ignore",
"missing",
"notBreaching"
],
"StringMax": 255,
"StringMin": 1
]
},
"AWS::CloudWatch::Alarm.Unit": {
"AllowedValues": [
Expand Down Expand Up @@ -38940,7 +38898,6 @@
"StringMin": 1
},
"AWS::DataBrew::Job.DatasetName": {
"AllowedPatternRegex": "[ -\ud7ff\ue000-\ufffd\ud800\udc00-\udbff\udfff\t]*",
"StringMax": 255,
"StringMin": 1
},
Expand All @@ -38961,7 +38918,6 @@
]
},
"AWS::DataBrew::Job.Name": {
"AllowedPatternRegex": "[ -\ud7ff\ue000-\ufffd\ud800\udc00-\udbff\udfff\t]*",
"StringMax": 255,
"StringMin": 1
},
Expand Down Expand Up @@ -38990,7 +38946,6 @@
]
},
"AWS::DataBrew::Job.ProjectName": {
"AllowedPatternRegex": "[ -\ud7ff\ue000-\ufffd\ud800\udc00-\udbff\udfff\t]*",
"StringMax": 255,
"StringMin": 1
},
Expand Down Expand Up @@ -39027,11 +38982,7 @@
"StringMax": 128,
"StringMin": 1
},
"AWS::DataBrew::Recipe.Description": {
"AllowedPatternRegex": "[ -\ud7ff\ue000-\ufffd\ud800\udc00-\udbff\udfff\t]*"
},
"AWS::DataBrew::Recipe.Name": {
"AllowedPatternRegex": "^[ -.0-^`-\ud7ff\ue000-\ufffd]*$",
"StringMax": 255,
"StringMin": 1
},
Expand All @@ -39044,7 +38995,6 @@
"StringMin": 1
},
"AWS::DataBrew::Schedule.JobNames": {
"AllowedPatternRegex": "[ -\ud7ff\ue000-\ufffd\ud800\udc00-\udbff\udfff\t]*",
"StringMax": 255,
"StringMin": 1
},
Expand Down Expand Up @@ -39187,10 +39137,6 @@
"AWS::DataSync::LocationObjectStorage.AgentArns": {
"AllowedPatternRegex": "^arn:(aws|aws-cn|aws-us-gov|aws-iso|aws-iso-b):datasync:[a-z\\-0-9]+:[0-9]{12}:agent/agent-[0-9a-z]{17}$"
},
"AWS::DataSync::LocationObjectStorage.BucketName": {
"StringMax": 63,
"StringMin": 3
},
"AWS::DataSync::LocationObjectStorage.LocationArn": {
"AllowedPatternRegex": "^arn:(aws|aws-cn|aws-us-gov|aws-iso|aws-iso-b):datasync:[a-z\\-0-9]+:[0-9]{12}:location/loc-[0-9a-z]{17}$"
},
Expand Down Expand Up @@ -40096,9 +40042,6 @@
"TERMINAL"
]
},
"AWS::GameLift::GameServerGroup.AutoScalingGroupArn": {
"AllowedPatternRegex": "[ -\ud7ff\ue000-\ufffd\ud800\udc00-\udbff\udfff\r\n\t]*"
},
"AWS::GameLift::GameServerGroup.BalancingStrategy": {
"AllowedValues": [
"SPOT_ONLY",
Expand Down Expand Up @@ -42050,10 +41993,6 @@
"Event"
]
},
"AWS::KinesisFirehose::DeliveryStream.Tag.Key": {
"StringMax": 128,
"StringMin": 1
},
"AWS::KinesisFirehose::DeliveryStream.VpcConfiguration.RoleARN": {
"AllowedPatternRegex": "arn:.*",
"StringMax": 512,
Expand Down Expand Up @@ -42890,9 +42829,6 @@
"AWS::OpsWorksCM::Server.CustomDomain": {
"AllowedPatternRegex": "^(((?!-)[A-Za-z0-9-]{0,62}[A-Za-z0-9])\\.)+((?!-)[A-Za-z0-9-]{1,62}[A-Za-z0-9])$"
},
"AWS::OpsWorksCM::Server.CustomPrivateKey": {
"AllowedPatternRegex": "(?ms)\\s*^-----BEGIN (?-s:.*)PRIVATE KEY-----$.*?^-----END (?-s:.*)PRIVATE KEY-----$\\s*"
},
"AWS::OpsWorksCM::Server.EngineAttribute.Name": {
"AllowedPatternRegex": "(?s).*"
},
Expand All @@ -42919,10 +42855,6 @@
"AWS::OpsWorksCM::Server.ServiceRoleArn": {
"AllowedPatternRegex": "arn:aws:iam::[0-9]{12}:role/.*"
},
"AWS::OpsWorksCM::Server.Tag.Key": {
"StringMax": 128,
"StringMin": 1
},
"AWS::QLDB::Stream.Arn": {
"AllowedPatternRegex": "arn:[\\w+=/,.@-]+:[\\w+=/,.@-]+:[\\w+=/,.@-]*:[0-9]*:[\\w+=,.@-]+(/[\\w+=,.@-]+)*"
},
Expand Down Expand Up @@ -43703,10 +43635,6 @@
"MANUAL"
]
},
"AWS::SSM::Association.Target.Key": {
"StringMax": 128,
"StringMin": 1
},
"AWS::SSM::Association.WaitForSuccessTimeoutSeconds": {
"NumberMax": 172800,
"NumberMin": 15
Expand Down Expand Up @@ -43748,19 +43676,11 @@
"AWS_ACCOUNT"
]
},
"AWS::SSO::InstanceAccessControlAttributeConfiguration.AccessControlAttribute.Key": {
"StringMax": 128,
"StringMin": 1
},
"AWS::SSO::InstanceAccessControlAttributeConfiguration.InstanceArn": {
"AllowedPatternRegex": "arn:aws:sso:::instance/(sso)?ins-[a-zA-Z0-9-.]{16}",
"StringMax": 1224,
"StringMin": 10
},
"AWS::SSO::PermissionSet.Description": {
"StringMax": 700,
"StringMin": 1
},
"AWS::SSO::PermissionSet.InstanceArn": {
"AllowedPatternRegex": "arn:aws:sso:::instance/(sso)?ins-[a-zA-Z0-9-.]{16}",
"StringMax": 1224,
Expand Down Expand Up @@ -43883,10 +43803,6 @@
"NumberMax": 86400,
"NumberMin": 1
},
"AWS::SageMaker::DataQualityJobDefinition.Tag.Key": {
"StringMax": 128,
"StringMin": 1
},
"AWS::SageMaker::DataQualityJobDefinition.VpcConfig.SecurityGroupIds": {
"AllowedPatternRegex": "[-0-9a-zA-Z]+"
},
Expand All @@ -43911,10 +43827,6 @@
"StringMax": 63,
"StringMin": 1
},
"AWS::SageMaker::Device.Tag.Key": {
"StringMax": 128,
"StringMin": 1
},
"AWS::SageMaker::DeviceFleet.Description": {
"AllowedPatternRegex": "[\\S\\s]+"
},
Expand All @@ -43936,10 +43848,6 @@
"StringMax": 2048,
"StringMin": 20
},
"AWS::SageMaker::DeviceFleet.Tag.Key": {
"StringMax": 128,
"StringMin": 1
},
"AWS::SageMaker::FeatureGroup.DataCatalogConfig.Catalog": {
"StringMax": 255,
"StringMin": 1
Expand Down Expand Up @@ -44071,10 +43979,6 @@
"NumberMax": 86400,
"NumberMin": 1
},
"AWS::SageMaker::ModelBiasJobDefinition.Tag.Key": {
"StringMax": 128,
"StringMin": 1
},
"AWS::SageMaker::ModelBiasJobDefinition.VpcConfig.SecurityGroupIds": {
"AllowedPatternRegex": "[-0-9a-zA-Z]+"
},
Expand Down Expand Up @@ -44152,10 +44056,6 @@
"NumberMax": 86400,
"NumberMin": 1
},
"AWS::SageMaker::ModelExplainabilityJobDefinition.Tag.Key": {
"StringMax": 128,
"StringMin": 1
},
"AWS::SageMaker::ModelExplainabilityJobDefinition.VpcConfig.SecurityGroupIds": {
"AllowedPatternRegex": "[-0-9a-zA-Z]+"
},
Expand All @@ -44180,10 +44080,6 @@
"DeleteFailed"
]
},
"AWS::SageMaker::ModelPackageGroup.Tag.Key": {
"StringMax": 128,
"StringMin": 1
},
"AWS::SageMaker::ModelQualityJobDefinition.ClusterConfig.InstanceCount": {
"NumberMax": 100,
"NumberMin": 1
Expand Down Expand Up @@ -44286,10 +44182,6 @@
"NumberMax": 86400,
"NumberMin": 1
},
"AWS::SageMaker::ModelQualityJobDefinition.Tag.Key": {
"StringMax": 128,
"StringMin": 1
},
"AWS::SageMaker::ModelQualityJobDefinition.VpcConfig.SecurityGroupIds": {
"AllowedPatternRegex": "[-0-9a-zA-Z]+"
},
Expand Down Expand Up @@ -44428,10 +44320,6 @@
"NumberMax": 86400,
"NumberMin": 1
},
"AWS::SageMaker::MonitoringSchedule.Tag.Key": {
"StringMax": 128,
"StringMin": 1
},
"AWS::SageMaker::MonitoringSchedule.VpcConfig.SecurityGroupIds": {
"AllowedPatternRegex": "[-0-9a-zA-Z]+"
},
Expand Down Expand Up @@ -44504,10 +44392,6 @@
"AWS::SageMaker::Project.ServiceCatalogProvisioningDetails.ProvisioningArtifactId": {
"AllowedPatternRegex": "^[a-zA-Z0-9](-*[a-zA-Z0-9])*$"
},
"AWS::SageMaker::Project.Tag.Key": {
"StringMax": 128,
"StringMin": 1
},
"AWS::ServiceCatalog::CloudFormationProvisionedProduct.AcceptLanguage": {
"AllowedValues": [
"en",
Expand Down Expand Up @@ -44572,14 +44456,6 @@
"StringMax": 50,
"StringMin": 1
},
"AWS::ServiceCatalog::CloudFormationProvisionedProduct.Tag.Key": {
"StringMax": 128,
"StringMin": 1
},
"AWS::ServiceCatalog::CloudFormationProvisionedProduct.Tag.Value": {
"StringMax": 256,
"StringMin": 1
},
"AWS::ServiceCatalogAppRegistry::Application.Arn": {
"AllowedPatternRegex": "arn:aws[-a-z]*:servicecatalog:[a-z]{2}(-gov)?-[a-z]+-\\d:\\d{12}:/applications/[a-z0-9]+"
},
Expand Down
Loading

0 comments on commit 80a511f

Please sign in to comment.