Skip to content
This repository was archived by the owner on Oct 17, 2024. It is now read-only.

feat(schema): add support for flexible iam documents #491

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

76 changes: 76 additions & 0 deletions cloudformation/serverless/function_statement.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

76 changes: 76 additions & 0 deletions cloudformation/serverless/statemachine_statement.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions generate/sam-2016-10-31.json
Original file line number Diff line number Diff line change
Expand Up @@ -1414,8 +1414,8 @@
"Statement": {
"Documentation": "http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html",
"Required": true,
"Type": "List",
"ItemType": "Json",
"PrimitiveTypes": ["Json"],
"PrimitiveItemTypes": ["Json"],
"UpdateType": "Immutable"
},
"Version": {
Expand Down Expand Up @@ -2515,8 +2515,8 @@
"Statement": {
"Documentation": "http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html",
"Required": true,
"Type": "List",
"ItemType": "Json",
"PrimitiveTypes": ["Json"],
"PrimitiveItemTypes": ["Json"],
"UpdateType": "Immutable"
},
"Version": {
Expand Down
34 changes: 26 additions & 8 deletions schema/sam.go
Original file line number Diff line number Diff line change
Expand Up @@ -133441,10 +133441,19 @@ var SamSchema = `{
"additionalProperties": false,
"properties": {
"Statement": {
"items": {
"type": "object"
},
"type": "array"
"anyOf": [
{
"type": [
"object"
]
},
{
"items": {
"type": "object"
},
"type": "array"
}
]
},
"Version": {
"type": "string"
Expand Down Expand Up @@ -134747,10 +134756,19 @@ var SamSchema = `{
"additionalProperties": false,
"properties": {
"Statement": {
"items": {
"type": "object"
},
"type": "array"
"anyOf": [
{
"type": [
"object"
]
},
{
"items": {
"type": "object"
},
"type": "array"
}
]
},
"Version": {
"type": "string"
Expand Down
34 changes: 26 additions & 8 deletions schema/sam.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -133436,10 +133436,19 @@
"additionalProperties": false,
"properties": {
"Statement": {
"items": {
"type": "object"
},
"type": "array"
"anyOf": [
{
"type": [
"object"
]
},
{
"items": {
"type": "object"
},
"type": "array"
}
]
},
"Version": {
"type": "string"
Expand Down Expand Up @@ -134742,10 +134751,19 @@
"additionalProperties": false,
"properties": {
"Statement": {
"items": {
"type": "object"
},
"type": "array"
"anyOf": [
{
"type": [
"object"
]
},
{
"items": {
"type": "object"
},
"type": "array"
}
]
},
"Version": {
"type": "string"
Expand Down