-
-
Save mkuzmin/3930399866df2f8659b357f16bf9d58a to your computer and use it in GitHub Desktop.
`AWS::Amplify::App` CloudFormation schema
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
{ | |
"typeName": "AWS::Amplify::App", | |
"description": "The AWS::Amplify::App resource creates Apps in the Amplify Console. An App is a collection of branches.", | |
"sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-amplify", | |
"additionalProperties": false, | |
"properties": { | |
"AccessToken": { | |
"type": "string", | |
"minLength": 1, | |
"maxLength": 255 | |
}, | |
"AppId": { | |
"type": "string", | |
"minLength": 1, | |
"maxLength": 20, | |
"pattern": "d[a-z0-9]+" | |
}, | |
"AppName": { | |
"type": "string", | |
"minLength": 1, | |
"maxLength": 255, | |
"pattern": "(?s).+" | |
}, | |
"Arn": { | |
"type": "string", | |
"maxLength": 1000, | |
"pattern": "(?s).*" | |
}, | |
"AutoBranchCreationConfig": { | |
"$ref": "#/definitions/AutoBranchCreationConfig" | |
}, | |
"BasicAuthConfig": { | |
"$ref": "#/definitions/BasicAuthConfig" | |
}, | |
"BuildSpec": { | |
"type": "string", | |
"minLength": 1, | |
"maxLength": 25000, | |
"pattern": "(?s).+" | |
}, | |
"CacheConfig": { | |
"$ref": "#/definitions/CacheConfig" | |
}, | |
"CustomHeaders": { | |
"type": "string", | |
"minLength": 0, | |
"maxLength": 25000, | |
"pattern": "(?s).*" | |
}, | |
"CustomRules": { | |
"type": "array", | |
"uniqueItems": false, | |
"items": { | |
"$ref": "#/definitions/CustomRule" | |
} | |
}, | |
"DefaultDomain": { | |
"type": "string", | |
"minLength": 0, | |
"maxLength": 1000 | |
}, | |
"Description": { | |
"type": "string", | |
"maxLength": 1000, | |
"pattern": "(?s).*" | |
}, | |
"EnableBranchAutoDeletion": { | |
"type": "boolean" | |
}, | |
"EnvironmentVariables": { | |
"type": "array", | |
"uniqueItems": false, | |
"items": { | |
"$ref": "#/definitions/EnvironmentVariable" | |
} | |
}, | |
"IAMServiceRole": { | |
"type": "string", | |
"minLength": 1, | |
"maxLength": 1000, | |
"pattern": "(?s).*" | |
}, | |
"Name": { | |
"type": "string", | |
"minLength": 1, | |
"maxLength": 255, | |
"pattern": "(?s).+" | |
}, | |
"OauthToken": { | |
"type": "string", | |
"maxLength": 1000, | |
"pattern": "(?s).*" | |
}, | |
"Platform": { | |
"type": "string", | |
"enum": [ | |
"WEB", | |
"WEB_DYNAMIC", | |
"WEB_COMPUTE" | |
] | |
}, | |
"Repository": { | |
"type": "string", | |
"pattern": "(?s).*" | |
}, | |
"Tags": { | |
"type": "array", | |
"uniqueItems": false, | |
"items": { | |
"$ref": "#/definitions/Tag" | |
} | |
} | |
}, | |
"definitions": { | |
"AutoBranchCreationConfig": { | |
"type": "object", | |
"additionalProperties": false, | |
"properties": { | |
"AutoBranchCreationPatterns": { | |
"type": "array", | |
"uniqueItems": false, | |
"items": { | |
"type": "string", | |
"minLength": 1, | |
"maxLength": 2048 | |
} | |
}, | |
"BasicAuthConfig": { | |
"$ref": "#/definitions/BasicAuthConfig" | |
}, | |
"BuildSpec": { | |
"type": "string", | |
"minLength": 1, | |
"maxLength": 25000 | |
}, | |
"EnableAutoBranchCreation": { | |
"type": "boolean" | |
}, | |
"EnableAutoBuild": { | |
"type": "boolean" | |
}, | |
"EnablePerformanceMode": { | |
"type": "boolean" | |
}, | |
"EnablePullRequestPreview": { | |
"type": "boolean" | |
}, | |
"EnvironmentVariables": { | |
"type": "array", | |
"uniqueItems": false, | |
"items": { | |
"$ref": "#/definitions/EnvironmentVariable" | |
} | |
}, | |
"Framework": { | |
"type": "string", | |
"maxLength": 255, | |
"pattern": "(?s).*" | |
}, | |
"PullRequestEnvironmentName": { | |
"type": "string", | |
"maxLength": 20, | |
"pattern": "(?s).*" | |
}, | |
"Stage": { | |
"type": "string", | |
"enum": [ | |
"EXPERIMENTAL", | |
"BETA", | |
"PULL_REQUEST", | |
"PRODUCTION", | |
"DEVELOPMENT" | |
] | |
} | |
} | |
}, | |
"BasicAuthConfig": { | |
"type": "object", | |
"additionalProperties": false, | |
"properties": { | |
"EnableBasicAuth": { | |
"type": "boolean" | |
}, | |
"Username": { | |
"type": "string", | |
"minLength": 1, | |
"maxLength": 255 | |
}, | |
"Password": { | |
"type": "string", | |
"minLength": 1, | |
"maxLength": 255 | |
} | |
} | |
}, | |
"CacheConfig": { | |
"type": "object", | |
"additionalProperties": false, | |
"properties": { | |
"Type": { | |
"type": "string", | |
"enum": [ | |
"AMPLIFY_MANAGED", | |
"AMPLIFY_MANAGED_NO_COOKIES" | |
] | |
} | |
} | |
}, | |
"CustomRule": { | |
"type": "object", | |
"additionalProperties": false, | |
"properties": { | |
"Condition": { | |
"type": "string", | |
"minLength": 0, | |
"maxLength": 2048, | |
"pattern": "(?s).*" | |
}, | |
"Status": { | |
"type": "string", | |
"minLength": 3, | |
"maxLength": 7, | |
"pattern": ".{3,7}" | |
}, | |
"Target": { | |
"type": "string", | |
"minLength": 1, | |
"maxLength": 2048, | |
"pattern": "(?s).+" | |
}, | |
"Source": { | |
"type": "string", | |
"minLength": 1, | |
"maxLength": 2048, | |
"pattern": "(?s).+" | |
} | |
}, | |
"required": [ | |
"Target", | |
"Source" | |
] | |
}, | |
"EnvironmentVariable": { | |
"type": "object", | |
"additionalProperties": false, | |
"properties": { | |
"Name": { | |
"type": "string", | |
"maxLength": 255, | |
"pattern": "(?s).*" | |
}, | |
"Value": { | |
"type": "string", | |
"maxLength": 5500, | |
"pattern": "(?s).*" | |
} | |
}, | |
"required": [ | |
"Name", | |
"Value" | |
] | |
}, | |
"Tag": { | |
"type": "object", | |
"additionalProperties": false, | |
"insertionOrder": false, | |
"properties": { | |
"Key": { | |
"type": "string", | |
"minLength": 1, | |
"maxLength": 128, | |
"pattern": "^(?!aws:)[a-zA-Z+-=._:/]+$" | |
}, | |
"Value": { | |
"type": "string", | |
"minLength": 0, | |
"maxLength": 256 | |
} | |
}, | |
"required": [ | |
"Key", | |
"Value" | |
] | |
} | |
}, | |
"required": [ | |
"Name" | |
], | |
"primaryIdentifier": [ | |
"/properties/Arn" | |
], | |
"readOnlyProperties": [ | |
"/properties/AppId", | |
"/properties/AppName", | |
"/properties/Arn", | |
"/properties/DefaultDomain" | |
], | |
"writeOnlyProperties": [ | |
"/properties/AccessToken", | |
"/properties/BasicAuthConfig", | |
"/properties/OauthToken", | |
"/properties/AutoBranchCreationConfig" | |
], | |
"handlers": { | |
"create": { | |
"permissions": [ | |
"amplify:GetApp", | |
"amplify:CreateApp", | |
"amplify:TagResource", | |
"codecommit:GetRepository", | |
"codecommit:PutRepositoryTriggers", | |
"codecommit:GetRepositoryTriggers", | |
"sns:CreateTopic", | |
"sns:Subscribe", | |
"iam:PassRole" | |
] | |
}, | |
"delete": { | |
"permissions": [ | |
"amplify:GetApp", | |
"amplify:DeleteApp", | |
"codecommit:GetRepository", | |
"codecommit:GetRepositoryTriggers", | |
"codecommit:PutRepositoryTriggers", | |
"sns:Unsubscribe", | |
"iam:PassRole" | |
] | |
}, | |
"list": { | |
"permissions": [ | |
"amplify:GetApp", | |
"amplify:ListApps", | |
"amplify:ListTagsForResource", | |
"iam:PassRole" | |
] | |
}, | |
"read": { | |
"permissions": [ | |
"amplify:GetApp", | |
"amplify:ListTagsForResource", | |
"codecommit:GetRepository", | |
"codecommit:GetRepositoryTriggers", | |
"iam:PassRole" | |
] | |
}, | |
"update": { | |
"permissions": [ | |
"amplify:GetApp", | |
"amplify:UpdateApp", | |
"amplify:ListTagsForResource", | |
"amplify:TagResource", | |
"amplify:UntagResource", | |
"codecommit:GetRepository", | |
"codecommit:PutRepositoryTriggers", | |
"codecommit:GetRepositoryTriggers", | |
"sns:CreateTopic", | |
"sns:Subscribe", | |
"sns:Unsubscribe", | |
"iam:PassRole" | |
] | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment