4
4
5
5
from typing_extensions import Literal
6
6
7
- from samtranslator .schema .common import PassThrough , BaseModel , SamIntrinsicable , get_prop , DictStrAny
7
+ from samtranslator .schema .common import PassThroughProp , BaseModel , SamIntrinsicable , get_prop , DictStrAny
8
8
9
9
resourcepolicy = get_prop ("sam-property-api-resourcepolicystatement" )
10
10
cognitoauthorizeridentity = get_prop ("sam-property-api-cognitoauthorizationidentity" )
@@ -81,11 +81,11 @@ class LambdaRequestAuthorizer(BaseModel):
81
81
82
82
class UsagePlan (BaseModel ):
83
83
CreateUsagePlan : SamIntrinsicable [Literal ["PER_API" , "SHARED" , "NONE" ]] = usageplan ("CreateUsagePlan" )
84
- Description : Optional [PassThrough ] = usageplan ("Description" )
85
- Quota : Optional [PassThrough ] = usageplan ("Quota" )
86
- Tags : Optional [PassThrough ] = usageplan ("Tags" )
87
- Throttle : Optional [PassThrough ] = usageplan ("Throttle" )
88
- UsagePlanName : Optional [PassThrough ] = usageplan ("UsagePlanName" )
84
+ Description : Optional [PassThroughProp ] = usageplan ("Description" )
85
+ Quota : Optional [PassThroughProp ] = usageplan ("Quota" )
86
+ Tags : Optional [PassThroughProp ] = usageplan ("Tags" )
87
+ Throttle : Optional [PassThroughProp ] = usageplan ("Throttle" )
88
+ UsagePlanName : Optional [PassThroughProp ] = usageplan ("UsagePlanName" )
89
89
90
90
91
91
class Auth (BaseModel ):
@@ -116,56 +116,56 @@ class Cors(BaseModel):
116
116
117
117
118
118
class Route53 (BaseModel ):
119
- DistributionDomainName : Optional [PassThrough ] = route53 ("DistributionDomainName" )
120
- EvaluateTargetHealth : Optional [PassThrough ] = route53 ("EvaluateTargetHealth" )
121
- HostedZoneId : Optional [PassThrough ] = route53 ("HostedZoneId" )
122
- HostedZoneName : Optional [PassThrough ] = route53 ("HostedZoneName" )
119
+ DistributionDomainName : Optional [PassThroughProp ] = route53 ("DistributionDomainName" )
120
+ EvaluateTargetHealth : Optional [PassThroughProp ] = route53 ("EvaluateTargetHealth" )
121
+ HostedZoneId : Optional [PassThroughProp ] = route53 ("HostedZoneId" )
122
+ HostedZoneName : Optional [PassThroughProp ] = route53 ("HostedZoneName" )
123
123
IpV6 : Optional [bool ] = route53 ("IpV6" )
124
124
125
125
126
126
class Domain (BaseModel ):
127
- BasePath : Optional [PassThrough ] = domain ("BasePath" )
127
+ BasePath : Optional [PassThroughProp ] = domain ("BasePath" )
128
128
NormalizeBasePath : Optional [bool ] = domain ("NormalizeBasePath" )
129
- CertificateArn : PassThrough = domain ("CertificateArn" )
130
- DomainName : PassThrough = domain ("DomainName" )
129
+ CertificateArn : PassThroughProp = domain ("CertificateArn" )
130
+ DomainName : PassThroughProp = domain ("DomainName" )
131
131
EndpointConfiguration : Optional [SamIntrinsicable [Literal ["REGIONAL" , "EDGE" ]]] = domain ("EndpointConfiguration" )
132
- MutualTlsAuthentication : Optional [PassThrough ] = domain ("MutualTlsAuthentication" )
133
- OwnershipVerificationCertificateArn : Optional [PassThrough ] = domain ("OwnershipVerificationCertificateArn" )
132
+ MutualTlsAuthentication : Optional [PassThroughProp ] = domain ("MutualTlsAuthentication" )
133
+ OwnershipVerificationCertificateArn : Optional [PassThroughProp ] = domain ("OwnershipVerificationCertificateArn" )
134
134
Route53 : Optional [Route53 ] = domain ("Route53" )
135
- SecurityPolicy : Optional [PassThrough ] = domain ("SecurityPolicy" )
135
+ SecurityPolicy : Optional [PassThroughProp ] = domain ("SecurityPolicy" )
136
136
137
137
138
138
class DefinitionUri (BaseModel ):
139
- Bucket : PassThrough = definitionuri ("Bucket" )
140
- Key : PassThrough = definitionuri ("Key" )
141
- Version : Optional [PassThrough ] = definitionuri ("Version" )
139
+ Bucket : PassThroughProp = definitionuri ("Bucket" )
140
+ Key : PassThroughProp = definitionuri ("Key" )
141
+ Version : Optional [PassThroughProp ] = definitionuri ("Version" )
142
142
143
143
144
144
class EndpointConfiguration (BaseModel ):
145
- Type : Optional [PassThrough ] = endpointconfiguration ("Type" )
146
- VPCEndpointIds : Optional [PassThrough ] = endpointconfiguration ("VPCEndpointIds" )
145
+ Type : Optional [PassThroughProp ] = endpointconfiguration ("Type" )
146
+ VPCEndpointIds : Optional [PassThroughProp ] = endpointconfiguration ("VPCEndpointIds" )
147
147
148
148
149
- Name = Optional [PassThrough ]
149
+ Name = Optional [PassThroughProp ]
150
150
DefinitionUriType = Optional [Union [str , DefinitionUri ]]
151
- CacheClusterEnabled = Optional [PassThrough ]
152
- CacheClusterSize = Optional [PassThrough ]
153
- Variables = Optional [PassThrough ]
151
+ CacheClusterEnabled = Optional [PassThroughProp ]
152
+ CacheClusterSize = Optional [PassThroughProp ]
153
+ Variables = Optional [PassThroughProp ]
154
154
EndpointConfigurationType = Optional [SamIntrinsicable [EndpointConfiguration ]]
155
- MethodSettings = Optional [PassThrough ]
156
- BinaryMediaTypes = Optional [PassThrough ]
157
- MinimumCompressionSize = Optional [PassThrough ]
155
+ MethodSettings = Optional [PassThroughProp ]
156
+ BinaryMediaTypes = Optional [PassThroughProp ]
157
+ MinimumCompressionSize = Optional [PassThroughProp ]
158
158
CorsType = Optional [SamIntrinsicable [Union [str , Cors ]]]
159
159
GatewayResponses = Optional [DictStrAny ]
160
- AccessLogSetting = Optional [PassThrough ]
161
- CanarySetting = Optional [PassThrough ]
162
- TracingEnabled = Optional [PassThrough ]
160
+ AccessLogSetting = Optional [PassThroughProp ]
161
+ CanarySetting = Optional [PassThroughProp ]
162
+ TracingEnabled = Optional [PassThroughProp ]
163
163
OpenApiVersion = Optional [Union [float , str ]] # TODO: float doesn't exist in documentation
164
164
165
165
166
166
class Properties (BaseModel ):
167
167
AccessLogSetting : Optional [AccessLogSetting ] = properties ("AccessLogSetting" )
168
- ApiKeySourceType : Optional [PassThrough ] = properties ("ApiKeySourceType" )
168
+ ApiKeySourceType : Optional [PassThroughProp ] = properties ("ApiKeySourceType" )
169
169
Auth : Optional [Auth ] = properties ("Auth" )
170
170
BinaryMediaTypes : Optional [BinaryMediaTypes ] = properties ("BinaryMediaTypes" )
171
171
CacheClusterEnabled : Optional [CacheClusterEnabled ] = properties ("CacheClusterEnabled" )
@@ -174,15 +174,15 @@ class Properties(BaseModel):
174
174
Cors : Optional [CorsType ] = properties ("Cors" )
175
175
DefinitionBody : Optional [DictStrAny ] = properties ("DefinitionBody" )
176
176
DefinitionUri : Optional [DefinitionUriType ] = properties ("DefinitionUri" )
177
- Description : Optional [PassThrough ] = properties ("Description" )
178
- DisableExecuteApiEndpoint : Optional [PassThrough ] = properties ("DisableExecuteApiEndpoint" )
177
+ Description : Optional [PassThroughProp ] = properties ("Description" )
178
+ DisableExecuteApiEndpoint : Optional [PassThroughProp ] = properties ("DisableExecuteApiEndpoint" )
179
179
Domain : Optional [Domain ] = properties ("Domain" )
180
180
EndpointConfiguration : Optional [EndpointConfigurationType ] = properties ("EndpointConfiguration" )
181
- FailOnWarnings : Optional [PassThrough ] = properties ("FailOnWarnings" )
181
+ FailOnWarnings : Optional [PassThroughProp ] = properties ("FailOnWarnings" )
182
182
GatewayResponses : Optional [GatewayResponses ] = properties ("GatewayResponses" )
183
183
MethodSettings : Optional [MethodSettings ] = properties ("MethodSettings" )
184
184
MinimumCompressionSize : Optional [MinimumCompressionSize ] = properties ("MinimumCompressionSize" )
185
- Mode : Optional [PassThrough ] = properties ("Mode" )
185
+ Mode : Optional [PassThroughProp ] = properties ("Mode" )
186
186
Models : Optional [DictStrAny ] = properties ("Models" )
187
187
Name : Optional [Name ] = properties ("Name" )
188
188
OpenApiVersion : Optional [OpenApiVersion ] = properties ("OpenApiVersion" )
@@ -195,11 +195,11 @@ class Properties(BaseModel):
195
195
class Globals (BaseModel ):
196
196
Auth : Optional [Auth ] = properties ("Auth" )
197
197
Name : Optional [Name ] = properties ("Name" )
198
- DefinitionUri : Optional [PassThrough ] = properties ("DefinitionUri" )
198
+ DefinitionUri : Optional [PassThroughProp ] = properties ("DefinitionUri" )
199
199
CacheClusterEnabled : Optional [CacheClusterEnabled ] = properties ("CacheClusterEnabled" )
200
200
CacheClusterSize : Optional [CacheClusterSize ] = properties ("CacheClusterSize" )
201
201
Variables : Optional [Variables ] = properties ("Variables" )
202
- EndpointConfiguration : Optional [PassThrough ] = properties ("EndpointConfiguration" )
202
+ EndpointConfiguration : Optional [PassThroughProp ] = properties ("EndpointConfiguration" )
203
203
MethodSettings : Optional [MethodSettings ] = properties ("MethodSettings" )
204
204
BinaryMediaTypes : Optional [BinaryMediaTypes ] = properties ("BinaryMediaTypes" )
205
205
MinimumCompressionSize : Optional [MinimumCompressionSize ] = properties ("MinimumCompressionSize" )
@@ -215,9 +215,9 @@ class Globals(BaseModel):
215
215
class Resource (BaseModel ):
216
216
Type : Literal ["AWS::Serverless::Api" ]
217
217
Properties : Properties
218
- Condition : Optional [PassThrough ]
219
- DeletionPolicy : Optional [PassThrough ]
220
- UpdatePolicy : Optional [PassThrough ]
221
- UpdateReplacePolicy : Optional [PassThrough ]
222
- DependsOn : Optional [PassThrough ]
223
- Metadata : Optional [PassThrough ]
218
+ Condition : Optional [PassThroughProp ]
219
+ DeletionPolicy : Optional [PassThroughProp ]
220
+ UpdatePolicy : Optional [PassThroughProp ]
221
+ UpdateReplacePolicy : Optional [PassThroughProp ]
222
+ DependsOn : Optional [PassThroughProp ]
223
+ Metadata : Optional [PassThroughProp ]
0 commit comments