Skip to content

Commit 0addbea

Browse files
author
Connor Robertson
authored
Merge pull request #3277 from aws/release-v1.72.0
Release 1.72.0 (to main)
2 parents 6e34bbd + e65bc61 commit 0addbea

File tree

177 files changed

+81414
-76914
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

177 files changed

+81414
-76914
lines changed

Makefile

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,18 +65,13 @@ prepare-companion-stack:
6565
fetch-schema-data:
6666
mkdir -p .tmp
6767

68-
rm -rf .tmp/aws-sam-developer-guide
69-
git clone --branch main --depth 1 https://github.com/awsdocs/aws-sam-developer-guide.git .tmp/aws-sam-developer-guide
70-
71-
rm -rf .tmp/aws-cloudformation-user-guide
72-
git clone --depth 1 https://github.com/awsdocs/aws-cloudformation-user-guide.git .tmp/aws-cloudformation-user-guide
68+
curl -o .tmp/cfn-docs.json https://raw.githubusercontent.com/aws/aws-cdk/main/packages/%40aws-cdk/cfnspec/spec-source/cfn-docs/cfn-docs.json
7369

7470
curl -o .tmp/cloudformation.schema.json https://raw.githubusercontent.com/awslabs/goformation/master/schema/cloudformation.schema.json
7571

7672
update-schema-data:
7773
# Parse docs
78-
bin/parse_docs.py .tmp/aws-sam-developer-guide/doc_source > samtranslator/internal/schema_source/sam-docs.json
79-
bin/parse_docs.py --cfn .tmp/aws-cloudformation-user-guide/doc_source > schema_source/cloudformation-docs.json
74+
bin/parse_cdk_cfn_docs.py < .tmp/cfn-docs.json > schema_source/cloudformation-docs.json
8075

8176
# Add CloudFormation docs to CloudFormation schema
8277
python bin/add_docs_cfn_schema.py --schema .tmp/cloudformation.schema.json --docs schema_source/cloudformation-docs.json > schema_source/cloudformation.schema.json

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# AWS SAM transform
22

33
[![Tests](https://github.com/aws/serverless-application-model/actions/workflows/build.yml/badge.svg)](https://github.com/aws/serverless-application-model/actions/workflows/build.yml)
4+
[![Update schema](https://github.com/aws/serverless-application-model/actions/workflows/schema.yml/badge.svg)](https://github.com/aws/serverless-application-model/actions/workflows/schema.yml)
45
[![PyPI](https://img.shields.io/pypi/v/aws-sam-translator?label=PyPI)](https://pypi.org/project/aws-sam-translator/)
56
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/aws-sam-translator?label=Python)](https://pypi.org/project/aws-sam-translator/)
67
[![Contribute with Gitpod](https://img.shields.io/badge/Contribute%20with-Gitpod-908a85?logo=gitpod)](https://gitpod.io/#https://github.com/aws/serverless-application-model.git)

bin/parse_cdk_cfn_docs.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/usr/bin/env python
2+
"""
3+
Converts docs JSON from this format:
4+
https://github.com/aws/aws-cdk/blob/ad89f0182e218eee01b0aef84b055a96556dda59/packages/%40aws-cdk/cfnspec/spec-source/cfn-docs/cfn-docs.json
5+
To this format:
6+
https://github.com/aws/serverless-application-model/blob/237c7394c6e7ab61c1fad27f439a7b52bcd1b5af/schema_source/cloudformation-docs.json
7+
Originally used https://github.com/awsdocs/aws-cloudformation-user-guide, but switched since retired.
8+
See https://aws.amazon.com/blogs/aws/retiring-the-aws-documentation-on-github/
9+
Expects input from stdin; outputs to stdout.
10+
"""
11+
12+
import json
13+
import sys
14+
from typing import Any, Dict
15+
16+
17+
def main() -> None:
18+
obj = json.load(sys.stdin)
19+
20+
out: Dict[str, Any] = {"properties": {}}
21+
for k, v in obj["Types"].items():
22+
kk = k.replace(".", " ")
23+
vv = v["properties"]
24+
out["properties"][kk] = vv
25+
26+
print(json.dumps(out, indent=2, sort_keys=True))
27+
28+
29+
if __name__ == "__main__":
30+
main()

bin/parse_docs.py

Lines changed: 0 additions & 120 deletions
This file was deleted.

docs/schema.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,11 @@ flowchart TD
1414
cfnschema(["CloudFormation schema"])
1515
end
1616
17-
subgraph repocfndocs["awsdocs/aws-cloudformation-user-guide"]
17+
subgraph repocfndocs["aws/aws-cdk"]
1818
cfndocs(["CloudFormation documentation"])
1919
end
2020
21-
subgraph reposamdocs["awsdocs/aws-sam-developer-guide"]
22-
samdocs(["SAM documentation"])
23-
end
21+
samdocs(["SAM documentation"])
2422
2523
samschema(["SAM schema"])
2624
cfnschemadocs(["CloudFormation schema with documentation"])

integration/resources/templates/combination/graphqlapi_lambda_resolver.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,16 +108,10 @@ Resources:
108108
Resolvers:
109109
Mutation:
110110
addPost:
111-
Runtime:
112-
Name: APPSYNC_JS
113-
Version: 1.0.0
114111
Pipeline:
115112
- lambdaInvoker
116113
Query:
117114
getPost:
118-
Runtime:
119-
Name: APPSYNC_JS
120-
Version: 1.0.0
121115
Pipeline:
122116
- lambdaInvoker
123117

integration/resources/templates/combination/graphqlapi_pipeline_resolver.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -171,19 +171,13 @@ Resources:
171171
Resolvers:
172172
Mutation:
173173
addPost:
174-
Runtime:
175-
Name: APPSYNC_JS
176-
Version: 1.0.0
177174
Pipeline:
178175
- formatPostLogItem
179176
- createPostLogItem
180177
- formatPostItem
181178
- createPostItem
182179
Query:
183180
getPost:
184-
Runtime:
185-
Name: APPSYNC_JS
186-
Version: 1.0.0
187181
Pipeline:
188182
- getPostFromTable
189183

samtranslator/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.71.0"
1+
__version__ = "1.72.0"

samtranslator/internal/data/aws_managed_policies.json

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1666,6 +1666,18 @@
16661666
"AWSApplicationAutoscalingNeptuneClusterPolicy": "arn:aws-us-gov:iam::aws:policy/aws-service-role/AWSApplicationAutoscalingNeptuneClusterPolicy",
16671667
"AWSApplicationAutoscalingRDSClusterPolicy": "arn:aws-us-gov:iam::aws:policy/aws-service-role/AWSApplicationAutoscalingRDSClusterPolicy",
16681668
"AWSApplicationAutoscalingSageMakerEndpointPolicy": "arn:aws-us-gov:iam::aws:policy/aws-service-role/AWSApplicationAutoscalingSageMakerEndpointPolicy",
1669+
"AWSApplicationMigrationAgentInstallationPolicy": "arn:aws-us-gov:iam::aws:policy/AWSApplicationMigrationAgentInstallationPolicy",
1670+
"AWSApplicationMigrationAgentPolicy": "arn:aws-us-gov:iam::aws:policy/AWSApplicationMigrationAgentPolicy",
1671+
"AWSApplicationMigrationAgentPolicy_v2": "arn:aws-us-gov:iam::aws:policy/service-role/AWSApplicationMigrationAgentPolicy_v2",
1672+
"AWSApplicationMigrationConversionServerPolicy": "arn:aws-us-gov:iam::aws:policy/service-role/AWSApplicationMigrationConversionServerPolicy",
1673+
"AWSApplicationMigrationEC2Access": "arn:aws-us-gov:iam::aws:policy/AWSApplicationMigrationEC2Access",
1674+
"AWSApplicationMigrationFullAccess": "arn:aws-us-gov:iam::aws:policy/AWSApplicationMigrationFullAccess",
1675+
"AWSApplicationMigrationMGHAccess": "arn:aws-us-gov:iam::aws:policy/service-role/AWSApplicationMigrationMGHAccess",
1676+
"AWSApplicationMigrationReadOnlyAccess": "arn:aws-us-gov:iam::aws:policy/AWSApplicationMigrationReadOnlyAccess",
1677+
"AWSApplicationMigrationReplicationServerPolicy": "arn:aws-us-gov:iam::aws:policy/service-role/AWSApplicationMigrationReplicationServerPolicy",
1678+
"AWSApplicationMigrationSSMAccess": "arn:aws-us-gov:iam::aws:policy/AWSApplicationMigrationSSMAccess",
1679+
"AWSApplicationMigrationServiceRolePolicy": "arn:aws-us-gov:iam::aws:policy/aws-service-role/AWSApplicationMigrationServiceRolePolicy",
1680+
"AWSApplicationMigrationVCenterClientPolicy": "arn:aws-us-gov:iam::aws:policy/AWSApplicationMigrationVCenterClientPolicy",
16691681
"AWSArtifactAccountSync": "arn:aws-us-gov:iam::aws:policy/service-role/AWSArtifactAccountSync",
16701682
"AWSBackupAuditAccess": "arn:aws-us-gov:iam::aws:policy/AWSBackupAuditAccess",
16711683
"AWSBackupDataTransferAccess": "arn:aws-us-gov:iam::aws:policy/AWSBackupDataTransferAccess",
@@ -1729,6 +1741,7 @@
17291741
"AWSConfigRulesExecutionRole": "arn:aws-us-gov:iam::aws:policy/service-role/AWSConfigRulesExecutionRole",
17301742
"AWSConfigServiceRolePolicy": "arn:aws-us-gov:iam::aws:policy/aws-service-role/AWSConfigServiceRolePolicy",
17311743
"AWSConfigUserAccess": "arn:aws-us-gov:iam::aws:policy/AWSConfigUserAccess",
1744+
"AWSControlTowerAccountServiceRolePolicy": "arn:aws-us-gov:iam::aws:policy/aws-service-role/AWSControlTowerAccountServiceRolePolicy",
17321745
"AWSControlTowerServiceRolePolicy": "arn:aws-us-gov:iam::aws:policy/service-role/AWSControlTowerServiceRolePolicy",
17331746
"AWSDataExchangeFullAccess": "arn:aws-us-gov:iam::aws:policy/AWSDataExchangeFullAccess",
17341747
"AWSDataExchangeProviderFullAccess": "arn:aws-us-gov:iam::aws:policy/AWSDataExchangeProviderFullAccess",
@@ -1748,6 +1761,7 @@
17481761
"AWSDirectConnectServiceRolePolicy": "arn:aws-us-gov:iam::aws:policy/aws-service-role/AWSDirectConnectServiceRolePolicy",
17491762
"AWSDirectoryServiceFullAccess": "arn:aws-us-gov:iam::aws:policy/AWSDirectoryServiceFullAccess",
17501763
"AWSDirectoryServiceReadOnlyAccess": "arn:aws-us-gov:iam::aws:policy/AWSDirectoryServiceReadOnlyAccess",
1764+
"AWSEC2CapacityReservationFleetRolePolicy": "arn:aws-us-gov:iam::aws:policy/aws-service-role/AWSEC2CapacityReservationFleetRolePolicy",
17511765
"AWSEC2FleetServiceRolePolicy": "arn:aws-us-gov:iam::aws:policy/aws-service-role/AWSEC2FleetServiceRolePolicy",
17521766
"AWSEC2SpotFleetServiceRolePolicy": "arn:aws-us-gov:iam::aws:policy/aws-service-role/AWSEC2SpotFleetServiceRolePolicy",
17531767
"AWSElasticBeanstalkCustomPlatformforEC2Role": "arn:aws-us-gov:iam::aws:policy/AWSElasticBeanstalkCustomPlatformforEC2Role",
@@ -1950,6 +1964,7 @@
19501964
"AccessAnalyzerServiceRolePolicy": "arn:aws-us-gov:iam::aws:policy/aws-service-role/AccessAnalyzerServiceRolePolicy",
19511965
"AdministratorAccess": "arn:aws-us-gov:iam::aws:policy/AdministratorAccess",
19521966
"AdministratorAccess-AWSElasticBeanstalk": "arn:aws-us-gov:iam::aws:policy/AdministratorAccess-AWSElasticBeanstalk",
1967+
"AdministratorAccess-Amplify": "arn:aws-us-gov:iam::aws:policy/AdministratorAccess-Amplify",
19531968
"AlexaForBusinessFullAccess": "arn:aws-us-gov:iam::aws:policy/AlexaForBusinessFullAccess",
19541969
"AlexaForBusinessLifesizeDelegatedAccessPolicy": "arn:aws-us-gov:iam::aws:policy/AlexaForBusinessLifesizeDelegatedAccessPolicy",
19551970
"AlexaForBusinessPolyDelegatedAccessPolicy": "arn:aws-us-gov:iam::aws:policy/AlexaForBusinessPolyDelegatedAccessPolicy",
@@ -2091,6 +2106,7 @@
20912106
"AmazonPrometheusFullAccess": "arn:aws-us-gov:iam::aws:policy/AmazonPrometheusFullAccess",
20922107
"AmazonPrometheusQueryAccess": "arn:aws-us-gov:iam::aws:policy/AmazonPrometheusQueryAccess",
20932108
"AmazonPrometheusRemoteWriteAccess": "arn:aws-us-gov:iam::aws:policy/AmazonPrometheusRemoteWriteAccess",
2109+
"AmazonRDSCustomServiceRolePolicy": "arn:aws-us-gov:iam::aws:policy/aws-service-role/AmazonRDSCustomServiceRolePolicy",
20942110
"AmazonRDSDirectoryServiceAccess": "arn:aws-us-gov:iam::aws:policy/service-role/AmazonRDSDirectoryServiceAccess",
20952111
"AmazonRDSEnhancedMonitoringRole": "arn:aws-us-gov:iam::aws:policy/service-role/AmazonRDSEnhancedMonitoringRole",
20962112
"AmazonRDSFullAccess": "arn:aws-us-gov:iam::aws:policy/AmazonRDSFullAccess",
@@ -2256,6 +2272,8 @@
22562272
"TranslateReadOnly": "arn:aws-us-gov:iam::aws:policy/TranslateReadOnly",
22572273
"ViewOnlyAccess": "arn:aws-us-gov:iam::aws:policy/job-function/ViewOnlyAccess",
22582274
"WAFRegionalLoggingServiceRolePolicy": "arn:aws-us-gov:iam::aws:policy/aws-service-role/WAFRegionalLoggingServiceRolePolicy",
2259-
"WAFV2LoggingServiceRolePolicy": "arn:aws-us-gov:iam::aws:policy/aws-service-role/WAFV2LoggingServiceRolePolicy"
2275+
"WAFV2LoggingServiceRolePolicy": "arn:aws-us-gov:iam::aws:policy/aws-service-role/WAFV2LoggingServiceRolePolicy",
2276+
"WellArchitectedConsoleFullAccess": "arn:aws-us-gov:iam::aws:policy/WellArchitectedConsoleFullAccess",
2277+
"WellArchitectedConsoleReadOnlyAccess": "arn:aws-us-gov:iam::aws:policy/WellArchitectedConsoleReadOnlyAccess"
22602278
}
22612279
}

samtranslator/internal/model/appsync.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,13 @@ class AppSyncRuntimeType(TypedDict):
7575
RuntimeVersion: str
7676

7777

78+
# Runtime for the default generated resolver code (see APPSYNC_PIPELINE_RESOLVER_JS_CODE above)
79+
APPSYNC_PIPELINE_RESOLVER_JS_RUNTIME: AppSyncRuntimeType = {
80+
"Name": "APPSYNC_JS",
81+
"RuntimeVersion": "1.0.0",
82+
}
83+
84+
7885
class LambdaConflictHandlerConfigType(TypedDict):
7986
LambdaConflictHandlerArn: str
8087

0 commit comments

Comments
 (0)