Skip to content

Commit

Permalink
fix(schema): Add SSMParameterReadPolicy and AWSSecretsManagerGetSecre…
Browse files Browse the repository at this point in the history
…tValuePolicy into AWS::Serverless::Function.SAMPolicyTemplate
  • Loading branch information
jpinkney-aws authored and rubenfonseca committed Apr 22, 2022
1 parent b2ab209 commit 7a85ab9
Show file tree
Hide file tree
Showing 6 changed files with 176 additions and 0 deletions.

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.

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

32 changes: 32 additions & 0 deletions generate/sam-2016-10-31.json
Original file line number Diff line number Diff line change
Expand Up @@ -1511,6 +1511,16 @@
"Documentation": "https://github.com/awslabs/serverless-application-model/blob/master/docs/policy_templates.rst",
"Type": "StateMachineSAMPT",
"UpdateType": "Immutable"
},
"SSMParameterReadPolicy": {
"Documentation": "https://github.com/awslabs/serverless-application-model/blob/master/docs/policy_templates.rst",
"Type": "ParameterNameSAMPT",
"UpdateType": "Immutable"
},
"AWSSecretsManagerGetSecretValuePolicy": {
"Documentation": "https://github.com/awslabs/serverless-application-model/blob/master/docs/policy_templates.rst",
"Type": "SecretArnSAMPT",
"UpdateType": "Immutable"
}
}
},
Expand Down Expand Up @@ -1667,6 +1677,28 @@
}
}
},
"AWS::Serverless::Function.ParameterNameSAMPT": {
"Documentation": "https://github.com/awslabs/serverless-application-model/blob/master/docs/policy_templates.rst",
"Properties": {
"ParameterName": {
"Documentation": "https://github.com/awslabs/serverless-application-model/blob/master/docs/policy_templates.rst",
"Required": true,
"PrimitiveType": "String",
"UpdateType": "Immutable"
}
}
},
"AWS::Serverless::Function.SecretArnSAMPT": {
"Documentation": "https://github.com/awslabs/serverless-application-model/blob/master/docs/policy_templates.rst",
"Properties": {
"SecretArn": {
"Documentation": "https://github.com/awslabs/serverless-application-model/blob/master/docs/policy_templates.rst",
"Required": true,
"PrimitiveType": "String",
"UpdateType": "Immutable"
}
}
},
"AWS::Serverless::Function.FunctionEnvironment": {
"Documentation": "https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#environment-object",
"Properties": {
Expand Down
30 changes: 30 additions & 0 deletions schema/sam.go
Original file line number Diff line number Diff line change
Expand Up @@ -125148,6 +125148,18 @@ var SamSchema = `{
],
"type": "object"
},
"AWS::Serverless::Function.ParameterNameSAMPT": {
"additionalProperties": false,
"properties": {
"ParameterName": {
"type": "string"
}
},
"required": [
"ParameterName"
],
"type": "object"
},
"AWS::Serverless::Function.ProvisionedConcurrencyConfig": {
"additionalProperties": false,
"properties": {
Expand Down Expand Up @@ -125271,6 +125283,9 @@ var SamSchema = `{
"AMIDescribePolicy": {
"$ref": "#/definitions/AWS::Serverless::Function.EmptySAMPT"
},
"AWSSecretsManagerGetSecretValuePolicy": {
"$ref": "#/definitions/AWS::Serverless::Function.SecretArnSAMPT"
},
"CloudFormationDescribeStacksPolicy": {
"$ref": "#/definitions/AWS::Serverless::Function.EmptySAMPT"
},
Expand Down Expand Up @@ -125355,6 +125370,9 @@ var SamSchema = `{
"SQSSendMessagePolicy": {
"$ref": "#/definitions/AWS::Serverless::Function.QueueSAMPT"
},
"SSMParameterReadPolicy": {
"$ref": "#/definitions/AWS::Serverless::Function.ParameterNameSAMPT"
},
"StepFunctionsExecutionPolicy": {
"$ref": "#/definitions/AWS::Serverless::Function.StateMachineSAMPT"
},
Expand Down Expand Up @@ -125409,6 +125427,18 @@ var SamSchema = `{
],
"type": "object"
},
"AWS::Serverless::Function.SecretArnSAMPT": {
"additionalProperties": false,
"properties": {
"SecretArn": {
"type": "string"
}
},
"required": [
"SecretArn"
],
"type": "object"
},
"AWS::Serverless::Function.StateMachineSAMPT": {
"additionalProperties": false,
"properties": {
Expand Down
30 changes: 30 additions & 0 deletions schema/sam.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -125143,6 +125143,18 @@
],
"type": "object"
},
"AWS::Serverless::Function.ParameterNameSAMPT": {
"additionalProperties": false,
"properties": {
"ParameterName": {
"type": "string"
}
},
"required": [
"ParameterName"
],
"type": "object"
},
"AWS::Serverless::Function.ProvisionedConcurrencyConfig": {
"additionalProperties": false,
"properties": {
Expand Down Expand Up @@ -125266,6 +125278,9 @@
"AMIDescribePolicy": {
"$ref": "#/definitions/AWS::Serverless::Function.EmptySAMPT"
},
"AWSSecretsManagerGetSecretValuePolicy": {
"$ref": "#/definitions/AWS::Serverless::Function.SecretArnSAMPT"
},
"CloudFormationDescribeStacksPolicy": {
"$ref": "#/definitions/AWS::Serverless::Function.EmptySAMPT"
},
Expand Down Expand Up @@ -125350,6 +125365,9 @@
"SQSSendMessagePolicy": {
"$ref": "#/definitions/AWS::Serverless::Function.QueueSAMPT"
},
"SSMParameterReadPolicy": {
"$ref": "#/definitions/AWS::Serverless::Function.ParameterNameSAMPT"
},
"StepFunctionsExecutionPolicy": {
"$ref": "#/definitions/AWS::Serverless::Function.StateMachineSAMPT"
},
Expand Down Expand Up @@ -125404,6 +125422,18 @@
],
"type": "object"
},
"AWS::Serverless::Function.SecretArnSAMPT": {
"additionalProperties": false,
"properties": {
"SecretArn": {
"type": "string"
}
},
"required": [
"SecretArn"
],
"type": "object"
},
"AWS::Serverless::Function.StateMachineSAMPT": {
"additionalProperties": false,
"properties": {
Expand Down

0 comments on commit 7a85ab9

Please sign in to comment.