-
Notifications
You must be signed in to change notification settings - Fork 591
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add getatt support for registry schemas (#3061)
* Add getatt support for registry schemas
- Loading branch information
Showing
4 changed files
with
296 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,138 @@ | ||
{ | ||
"typeName": "Initech::TPS::Report", | ||
"description": "An example resource schema demonstrating some basic constructs and validation rules.", | ||
"sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git", | ||
"definitions": { | ||
"InitechDateFormat": { | ||
"$comment": "Use the `definitions` block to provide shared resource property schemas", | ||
"type": "string", | ||
"format": "date-time" | ||
}, | ||
"Memo": { | ||
"type": "object", | ||
"properties": { | ||
"Heading": { | ||
"type": "string" | ||
}, | ||
"Body": { | ||
"type": "string" | ||
} | ||
}, | ||
"additionalProperties": false | ||
}, | ||
"Tag": { | ||
"description": "A key-value pair to associate with a resource.", | ||
"type": "object", | ||
"properties": { | ||
"Key": { | ||
"type": "string", | ||
"description": "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", | ||
"minLength": 1, | ||
"maxLength": 128 | ||
}, | ||
"Value": { | ||
"type": "string", | ||
"description": "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", | ||
"minLength": 0, | ||
"maxLength": 256 | ||
} | ||
}, | ||
"required": [ | ||
"Key", | ||
"Value" | ||
], | ||
"additionalProperties": false | ||
} | ||
}, | ||
"properties": { | ||
"TPSCode": { | ||
"description": "A TPS Code is automatically generated on creation and assigned as the unique identifier.", | ||
"type": "string", | ||
"pattern": "^[A-Z]{3,5}[0-9]{8}-[0-9]{4}$" | ||
}, | ||
"Title": { | ||
"description": "The title of the TPS report is a mandatory element.", | ||
"type": "string", | ||
"minLength": 20, | ||
"maxLength": 250 | ||
}, | ||
"CoverSheetIncluded": { | ||
"description": "Required for all TPS Reports submitted after 2/19/1999", | ||
"type": "boolean" | ||
}, | ||
"DueDate": { | ||
"$ref": "#/definitions/InitechDateFormat" | ||
}, | ||
"ApprovalDate": { | ||
"$ref": "#/definitions/InitechDateFormat" | ||
}, | ||
"Memo": { | ||
"$ref": "#/definitions/Memo" | ||
}, | ||
"SecondCopyOfMemo": { | ||
"description": "In case you didn't get the first one.", | ||
"$ref": "#/definitions/Memo" | ||
}, | ||
"TestCode": { | ||
"type": "string", | ||
"enum": [ | ||
"NOT_STARTED", | ||
"CANCELLED" | ||
] | ||
}, | ||
"Authors": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"Tags": { | ||
"description": "An array of key-value pairs to apply to this resource.", | ||
"type": "array", | ||
"uniqueItems": true, | ||
"insertionOrder": false, | ||
"items": { | ||
"$ref": "#/definitions/Tag" | ||
} | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"required": [ | ||
"TestCode", | ||
"Title" | ||
], | ||
"readOnlyProperties": [ | ||
"/properties/TPSCode", | ||
"/properties/Authors" | ||
], | ||
"primaryIdentifier": [ | ||
"/properties/TPSCode" | ||
], | ||
"handlers": { | ||
"create": { | ||
"permissions": [ | ||
"initech:CreateReport" | ||
] | ||
}, | ||
"read": { | ||
"permissions": [ | ||
"initech:DescribeReport" | ||
] | ||
}, | ||
"update": { | ||
"permissions": [ | ||
"initech:UpdateReport" | ||
] | ||
}, | ||
"delete": { | ||
"permissions": [ | ||
"initech:DeleteReport" | ||
] | ||
}, | ||
"list": { | ||
"permissions": [ | ||
"initech:ListReports" | ||
] | ||
} | ||
} | ||
} |
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,9 @@ | ||
Resources: | ||
MyReport: | ||
Type: Initech::TPS::Report | ||
Properties: | ||
TestCode: NOT_STARTED | ||
Title: My report has to be longer | ||
Outputs: | ||
TpsCode: | ||
Value: !GetAtt MyReport.TPSCode |
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