-
Notifications
You must be signed in to change notification settings - Fork 592
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add json schema for CW Alarm period when in the AWS namespace (#2685)
* JSON schema for validating the period on AWS namespaced CW Alarms * Fix an issue with enum
- Loading branch information
Showing
119 changed files
with
16,812 additions
and
1,039 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...nloadsMetadata/164e1bfc2823fbd49d8d0e7163ebf32b2b6653d7edfe98a64577daae0b481c38.meta.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"etag": "\"f6eaaa3c340fa7ab67533ee1814b5482\"", "url": "https://schema.cloudformation.cn-north-1.amazonaws.com.cn/CloudformationSchema.zip"} | ||
{"etag": "\"c202d8c1ce6f4fe56a36f51ce955b757\"", "url": "https://schema.cloudformation.cn-north-1.amazonaws.com.cn/CloudformationSchema.zip"} |
2 changes: 1 addition & 1 deletion
2
...nloadsMetadata/371e40c90b2e47c99f6e275e060ee83a3fbf0a0fb76625ba46dbe42abd34333c.meta.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"etag": "\"d081b23df0610b29dc969ec7cf411932\"", "url": "https://schema.cloudformation.cn-northwest-1.amazonaws.com.cn/CloudformationSchema.zip"} | ||
{"etag": "\"f99358a13270f02c9ca94ef19c60e982\"", "url": "https://schema.cloudformation.cn-northwest-1.amazonaws.com.cn/CloudformationSchema.zip"} |
2 changes: 1 addition & 1 deletion
2
...nloadsMetadata/f1896c9151984eec294af1eddf64260f6cd7e4ced378cacdb93f76ed227b5c5d.meta.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"etag": "\"1c80dcec8d6f90a79451390a14786259\"", "url": "https://schema.cloudformation.us-west-2.amazonaws.com/CloudformationSchema.zip"} | ||
{"etag": "\"613fda1a0a47b83d05cf749b15958896\"", "url": "https://schema.cloudformation.us-west-2.amazonaws.com/CloudformationSchema.zip"} |
2 changes: 1 addition & 1 deletion
2
...nloadsMetadata/f54eee6f8ad9619f41835b700369cdbb41c64a9c91b2fa5b4928c0d9b2f780b0.meta.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"etag": "\"52555f79649635e16e7927c400b478bc\"", "url": "https://schema.cloudformation.us-east-1.amazonaws.com/CloudformationSchema.zip"} | ||
{"etag": "\"cfe85805920c1606d5a4a933241a0b3b\"", "url": "https://schema.cloudformation.us-east-1.amazonaws.com/CloudformationSchema.zip"} |
24 changes: 24 additions & 0 deletions
24
src/cfnlint/data/schemas/extensions/aws_cloudwatch_alarm/aws_namespace_period.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"additionalProperties": true, | ||
"description": "Period < 60 not supported for namespaces with the following prefix: AWS/", | ||
"if": { | ||
"properties": { | ||
"Namespace": { | ||
"pattern": "^AWS/.*$", | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"then": { | ||
"properties": { | ||
"Period": { | ||
"minimum": 60, | ||
"type": [ | ||
"number", | ||
"string" | ||
] | ||
} | ||
} | ||
}, | ||
"type": "object" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
src/cfnlint/data/schemas/providers/ap_east_1/aws-kms-alias.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{ | ||
"additionalProperties": false, | ||
"createOnlyProperties": [ | ||
"/properties/AliasName" | ||
], | ||
"description": "The AWS::KMS::Alias resource specifies a display name for an AWS KMS key in AWS Key Management Service (AWS KMS). You can use an alias to identify an AWS KMS key in cryptographic operations.", | ||
"handlers": { | ||
"create": { | ||
"permissions": [ | ||
"kms:CreateAlias" | ||
] | ||
}, | ||
"delete": { | ||
"permissions": [ | ||
"kms:DeleteAlias" | ||
] | ||
}, | ||
"list": { | ||
"permissions": [ | ||
"kms:ListAliases" | ||
] | ||
}, | ||
"read": { | ||
"permissions": [ | ||
"kms:ListAliases" | ||
] | ||
}, | ||
"update": { | ||
"permissions": [ | ||
"kms:UpdateAlias" | ||
] | ||
} | ||
}, | ||
"primaryIdentifier": [ | ||
"/properties/AliasName" | ||
], | ||
"properties": { | ||
"AliasName": { | ||
"description": "Specifies the alias name. This value must begin with alias/ followed by a name, such as alias/ExampleAlias. The alias name cannot begin with alias/aws/. The alias/aws/ prefix is reserved for AWS managed keys.", | ||
"maxLength": 256, | ||
"minLength": 1, | ||
"pattern": "^(alias/)[a-zA-Z0-9:/_-]+$", | ||
"type": "string" | ||
}, | ||
"TargetKeyId": { | ||
"description": "Identifies the AWS KMS key to which the alias refers. Specify the key ID or the Amazon Resource Name (ARN) of the AWS KMS key. You cannot specify another alias. For help finding the key ID and ARN, see Finding the Key ID and ARN in the AWS Key Management Service Developer Guide.", | ||
"maxLength": 256, | ||
"minLength": 1, | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"AliasName", | ||
"TargetKeyId" | ||
], | ||
"sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git", | ||
"taggable": false, | ||
"typeName": "AWS::KMS::Alias" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
src/cfnlint/data/schemas/providers/ap_northeast_1/aws-kms-alias.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{ | ||
"additionalProperties": false, | ||
"createOnlyProperties": [ | ||
"/properties/AliasName" | ||
], | ||
"description": "The AWS::KMS::Alias resource specifies a display name for an AWS KMS key in AWS Key Management Service (AWS KMS). You can use an alias to identify an AWS KMS key in cryptographic operations.", | ||
"handlers": { | ||
"create": { | ||
"permissions": [ | ||
"kms:CreateAlias" | ||
] | ||
}, | ||
"delete": { | ||
"permissions": [ | ||
"kms:DeleteAlias" | ||
] | ||
}, | ||
"list": { | ||
"permissions": [ | ||
"kms:ListAliases" | ||
] | ||
}, | ||
"read": { | ||
"permissions": [ | ||
"kms:ListAliases" | ||
] | ||
}, | ||
"update": { | ||
"permissions": [ | ||
"kms:UpdateAlias" | ||
] | ||
} | ||
}, | ||
"primaryIdentifier": [ | ||
"/properties/AliasName" | ||
], | ||
"properties": { | ||
"AliasName": { | ||
"description": "Specifies the alias name. This value must begin with alias/ followed by a name, such as alias/ExampleAlias. The alias name cannot begin with alias/aws/. The alias/aws/ prefix is reserved for AWS managed keys.", | ||
"maxLength": 256, | ||
"minLength": 1, | ||
"pattern": "^(alias/)[a-zA-Z0-9:/_-]+$", | ||
"type": "string" | ||
}, | ||
"TargetKeyId": { | ||
"description": "Identifies the AWS KMS key to which the alias refers. Specify the key ID or the Amazon Resource Name (ARN) of the AWS KMS key. You cannot specify another alias. For help finding the key ID and ARN, see Finding the Key ID and ARN in the AWS Key Management Service Developer Guide.", | ||
"maxLength": 256, | ||
"minLength": 1, | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"AliasName", | ||
"TargetKeyId" | ||
], | ||
"sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git", | ||
"taggable": false, | ||
"typeName": "AWS::KMS::Alias" | ||
} |
Oops, something went wrong.