Skip to content

Commit

Permalink
Merge pull request #338 from ericzbeard/pkl-vpc
Browse files Browse the repository at this point in the history
Update registry schemas and Pkl classes
  • Loading branch information
ericzbeard authored Mar 26, 2024
2 parents a2832cb + 6813f51 commit d902f8b
Show file tree
Hide file tree
Showing 192 changed files with 19,344 additions and 469 deletions.
5 changes: 5 additions & 0 deletions internal/aws/cfn/cfn.go
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,11 @@ func CreateChangeSet(template cft.Template, params []types.Parameter, tags map[s
input.TemplateURL = ptr.String(templateBody)
} else {
input.TemplateBody = ptr.String(templateBody)
config.Debugf("About to create changeset with body:\n%s", templateBody)
for _, param := range params {
config.Debugf("Parameter Key: %s, Value: %s",
*param.ParameterKey, *param.ParameterValue)
}
}

_, err = getClient().CreateChangeSet(context.Background(), input)
Expand Down
171 changes: 171 additions & 0 deletions internal/aws/cfn/schemas/aws/appintegrations/application.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,171 @@
{
"typeName": "AWS::AppIntegrations::Application",
"description": "Resource Type definition for AWS:AppIntegrations::Application",
"sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git",
"definitions": {
"Tag": {
"description": "A label for tagging Application resources",
"type": "object",
"properties": {
"Key": {
"description": "A key to identify the tag.",
"type": "string",
"pattern": "^(?!aws:)[a-zA-Z+-=._:/]+$",
"minLength": 1,
"maxLength": 128
},
"Value": {
"description": "Corresponding tag value for the key.",
"type": "string",
"minLength": 0,
"maxLength": 256
}
},
"additionalProperties": false,
"required": [
"Key",
"Value"
]
},
"ExternalUrlConfig": {
"type": "object",
"additionalProperties": false,
"required": [
"AccessUrl",
"ApprovedOrigins"
],
"properties": {
"AccessUrl": {
"type": "string",
"pattern": "^\\w+\\:\\/\\/.*$",
"minLength": 1,
"maxLength": 1000
},
"ApprovedOrigins": {
"type": "array",
"insertionOrder": false,
"items": {
"$ref": "#/definitions/ApprovedOrigins"
},
"minItems": 0,
"maxItems": 50
}
}
},
"ApprovedOrigins": {
"type": "string",
"pattern": "^\\w+\\:\\/\\/.*$",
"minLength": 1,
"maxLength": 1000
}
},
"properties": {
"Name": {
"description": "The name of the application.",
"type": "string",
"pattern": "^[a-zA-Z0-9/\\._\\-]+$",
"minLength": 1,
"maxLength": 255
},
"Id": {
"description": "The id of the application.",
"type": "string",
"pattern": "^[a-zA-Z0-9/\\._\\-]+$",
"minLength": 1,
"maxLength": 255
},
"Namespace": {
"description": "The namespace of the application.",
"type": "string",
"pattern": "^[a-zA-Z0-9/\\._\\-]+$",
"minLength": 1,
"maxLength": 255
},
"Description": {
"description": "The application description.",
"type": "string",
"minLength": 1,
"maxLength": 1000
},
"ApplicationArn": {
"description": "The Amazon Resource Name (ARN) of the application.",
"type": "string",
"minLength": 1,
"maxLength": 2048
},
"ApplicationSourceConfig": {
"description": "Application source config",
"type": "object",
"additionalProperties": false,
"properties": {
"ExternalUrlConfig": {
"$ref": "#/definitions/ExternalUrlConfig"
}
},
"required": [
"ExternalUrlConfig"
]
},
"Tags": {
"description": "The tags (keys and values) associated with the application.",
"type": "array",
"items": {
"$ref": "#/definitions/Tag"
},
"minItems": 0,
"maxItems": 200
}
},
"additionalProperties": false,
"required": [
"Name",
"Description",
"ApplicationSourceConfig"
],
"tagging": {
"taggable": true,
"tagOnCreate": true,
"tagUpdatable": true,
"cloudFormationSystemTags": true,
"tagProperty": "/properties/Tags"
},
"readOnlyProperties": [
"/properties/ApplicationArn",
"/properties/Id"
],
"primaryIdentifier": [
"/properties/ApplicationArn"
],
"handlers": {
"create": {
"permissions": [
"app-integrations:CreateApplication",
"app-integrations:TagResource"
]
},
"read": {
"permissions": [
"app-integrations:GetApplication"
]
},
"list": {
"permissions": [
"app-integrations:ListApplications",
"app-integrations:ListTagsForResource"
]
},
"update": {
"permissions": [
"app-integrations:GetApplication",
"app-integrations:UpdateApplication",
"app-integrations:TagResource",
"app-integrations:UntagResource"
]
},
"delete": {
"permissions": [
"app-integrations:DeleteApplication"
]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,13 @@
"maxItems": 200
}
},
"tagging": {
"taggable": true,
"tagOnCreate": true,
"tagUpdatable": true,
"cloudFormationSystemTags": true,
"tagProperty": "/properties/Tags"
},
"additionalProperties": false,
"required": [
"Name",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
{
"typeName": "AWS::ARCZonalShift::ZonalAutoshiftConfiguration",
"description": "Definition of AWS::ARCZonalShift::ZonalAutoshiftConfiguration Resource Type",
"definitions": {
"ZonalAutoshiftStatus": {
"type": "string",
"enum": [
"ENABLED",
"DISABLED"
]
},
"ControlCondition": {
"type": "object",
"properties": {
"Type": {
"$ref": "#/definitions/ControlConditionType"
},
"AlarmIdentifier": {
"type": "string",
"maxLength": 1024,
"minLength": 8,
"pattern": "^arn:.*$"
}
},
"required": [
"AlarmIdentifier",
"Type"
],
"additionalProperties": false
},
"ControlConditionType": {
"type": "string",
"enum": [
"CLOUDWATCH"
]
},
"PracticeRunConfiguration": {
"type": "object",
"properties": {
"BlockingAlarms": {
"type": "array",
"insertionOrder": false,
"items": {
"$ref": "#/definitions/ControlCondition"
},
"maxItems": 1,
"minItems": 1
},
"OutcomeAlarms": {
"type": "array",
"insertionOrder": false,
"items": {
"$ref": "#/definitions/ControlCondition"
},
"maxItems": 1,
"minItems": 1
},
"BlockedDates": {
"type": "array",
"insertionOrder": false,
"items": {
"type": "string",
"maxLength": 10,
"minLength": 10,
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
},
"maxItems": 15,
"minItems": 0
},
"BlockedWindows": {
"type": "array",
"insertionOrder": false,
"items": {
"type": "string",
"maxLength": 19,
"minLength": 19,
"pattern": "^(Mon|Tue|Wed|Thu|Fri|Sat|Sun):[0-9]{2}:[0-9]{2}-(Mon|Tue|Wed|Thu|Fri|Sat|Sun):[0-9]{2}:[0-9]{2}$"
},
"maxItems": 15,
"minItems": 0
}
},
"required": [
"OutcomeAlarms"
],
"additionalProperties": false
}
},
"properties": {
"ZonalAutoshiftStatus": {
"$ref": "#/definitions/ZonalAutoshiftStatus",
"dependencies": {
"ZonalAutoshiftStatus": [
"PracticeRunConfiguration"
]
}
},
"PracticeRunConfiguration": {
"$ref": "#/definitions/PracticeRunConfiguration"
},
"ResourceIdentifier": {
"type": "string",
"maxLength": 1024,
"minLength": 8
}
},
"createOnlyProperties": [
"/properties/ResourceIdentifier"
],
"primaryIdentifier": [
"/properties/ResourceIdentifier"
],
"handlers": {
"create": {
"permissions": [
"arc-zonal-shift:CreatePracticeRunConfiguration",
"arc-zonal-shift:GetManagedResource",
"arc-zonal-shift:UpdateZonalAutoshiftConfiguration",
"cloudwatch:DescribeAlarms",
"iam:CreateServiceLinkedRole"
]
},
"read": {
"permissions": [
"arc-zonal-shift:GetManagedResource"
]
},
"update": {
"permissions": [
"arc-zonal-shift:GetManagedResource",
"arc-zonal-shift:UpdatePracticeRunConfiguration",
"arc-zonal-shift:UpdateZonalAutoshiftConfiguration",
"cloudwatch:DescribeAlarms"
]
},
"delete": {
"permissions": [
"arc-zonal-shift:DeletePracticeRunConfiguration",
"arc-zonal-shift:GetManagedResource",
"arc-zonal-shift:UpdateZonalAutoshiftConfiguration"
]
},
"list": {
"permissions": [
"arc-zonal-shift:ListManagedResources"
]
}
},
"additionalProperties": false,
"tagging": {
"taggable": false
}
}
Loading

0 comments on commit d902f8b

Please sign in to comment.