Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c512221

Browse files
Updates from spec version 101.0.0 (#2109)
1 parent d8393ee commit c512221

57 files changed

Lines changed: 2203 additions & 375 deletions

Some content is hidden

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

troposphere/apigateway.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ class BasePathMapping(AWSObject):
9191
props: PropsDictType = {
9292
"BasePath": (str, False),
9393
"DomainName": (str, True),
94+
"Id": (str, False),
9495
"RestApiId": (str, False),
9596
"Stage": (str, False),
9697
}

troposphere/appflow.py

Lines changed: 50 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,41 @@
1010
from .validators import boolean, double, integer
1111

1212

13+
class LambdaConnectorProvisioningConfig(AWSProperty):
14+
"""
15+
`LambdaConnectorProvisioningConfig <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-connector-lambdaconnectorprovisioningconfig.html>`__
16+
"""
17+
18+
props: PropsDictType = {
19+
"LambdaArn": (str, True),
20+
}
21+
22+
23+
class ConnectorProvisioningConfig(AWSProperty):
24+
"""
25+
`ConnectorProvisioningConfig <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-connector-connectorprovisioningconfig.html>`__
26+
"""
27+
28+
props: PropsDictType = {
29+
"Lambda": (LambdaConnectorProvisioningConfig, False),
30+
}
31+
32+
33+
class Connector(AWSObject):
34+
"""
35+
`Connector <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appflow-connector.html>`__
36+
"""
37+
38+
resource_type = "AWS::AppFlow::Connector"
39+
40+
props: PropsDictType = {
41+
"ConnectorLabel": (str, False),
42+
"ConnectorProvisioningConfig": (ConnectorProvisioningConfig, True),
43+
"ConnectorProvisioningType": (str, True),
44+
"Description": (str, False),
45+
}
46+
47+
1348
class AmplitudeConnectorProfileCredentials(AWSProperty):
1449
"""
1550
`AmplitudeConnectorProfileCredentials <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-connectorprofile-amplitudeconnectorprofilecredentials.html>`__
@@ -165,14 +200,28 @@ class RedshiftConnectorProfileCredentials(AWSProperty):
165200
}
166201

167202

203+
class OAuthCredentials(AWSProperty):
204+
"""
205+
`OAuthCredentials <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-connectorprofile-oauthcredentials.html>`__
206+
"""
207+
208+
props: PropsDictType = {
209+
"AccessToken": (str, False),
210+
"ClientId": (str, False),
211+
"ClientSecret": (str, False),
212+
"ConnectorOAuthRequest": (ConnectorOAuthRequest, False),
213+
"RefreshToken": (str, False),
214+
}
215+
216+
168217
class SAPODataConnectorProfileCredentials(AWSProperty):
169218
"""
170219
`SAPODataConnectorProfileCredentials <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-connectorprofile-sapodataconnectorprofilecredentials.html>`__
171220
"""
172221

173222
props: PropsDictType = {
174223
"BasicAuthCredentials": (BasicAuthCredentials, False),
175-
"OAuthCredentials": (dict, False),
224+
"OAuthCredentials": (OAuthCredentials, False),
176225
}
177226

178227

troposphere/awslambda.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,16 @@ class FilterCriteria(AWSProperty):
178178
}
179179

180180

181+
class ScalingConfig(AWSProperty):
182+
"""
183+
`ScalingConfig <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-scalingconfig.html>`__
184+
"""
185+
186+
props: PropsDictType = {
187+
"MaximumConcurrency": (integer, False),
188+
}
189+
190+
181191
class Endpoints(AWSProperty):
182192
"""
183193
`Endpoints <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-endpoints.html>`__
@@ -244,6 +254,7 @@ class EventSourceMapping(AWSObject):
244254
"MaximumRetryAttempts": (integer, False),
245255
"ParallelizationFactor": (integer, False),
246256
"Queues": ([str], False),
257+
"ScalingConfig": (ScalingConfig, False),
247258
"SelfManagedEventSource": (SelfManagedEventSource, False),
248259
"SelfManagedKafkaEventSourceConfig": (SelfManagedKafkaEventSourceConfig, False),
249260
"SourceAccessConfigurations": ([SourceAccessConfiguration], False),
@@ -499,3 +510,14 @@ class Version(AWSObject):
499510
"FunctionName": (str, True),
500511
"ProvisionedConcurrencyConfig": (ProvisionedConcurrencyConfiguration, False),
501512
}
513+
514+
515+
class SnapStartResponse(AWSProperty):
516+
"""
517+
`SnapStartResponse <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-snapstartresponse.html>`__
518+
"""
519+
520+
props: PropsDictType = {
521+
"ApplyOn": (str, False),
522+
"OptimizationStatus": (str, False),
523+
}

troposphere/backup.py

Lines changed: 70 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88

99
from . import AWSObject, AWSProperty, PropsDictType, Tags
10-
from .validators import boolean, double
10+
from .validators import boolean, double, integer
1111
from .validators.backup import (
1212
backup_vault_name,
1313
validate_backup_selection,
@@ -103,13 +103,37 @@ class ConditionResourceType(AWSProperty):
103103
}
104104

105105

106+
class ConditionParameter(AWSProperty):
107+
"""
108+
`ConditionParameter <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-backup-backupselection-conditionparameter.html>`__
109+
"""
110+
111+
props: PropsDictType = {
112+
"ConditionKey": (str, False),
113+
"ConditionValue": (str, False),
114+
}
115+
116+
117+
class Conditions(AWSProperty):
118+
"""
119+
`Conditions <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-backup-backupselection-conditions.html>`__
120+
"""
121+
122+
props: PropsDictType = {
123+
"StringEquals": ([ConditionParameter], False),
124+
"StringLike": ([ConditionParameter], False),
125+
"StringNotEquals": ([ConditionParameter], False),
126+
"StringNotLike": ([ConditionParameter], False),
127+
}
128+
129+
106130
class BackupSelectionResourceType(AWSProperty):
107131
"""
108132
`BackupSelectionResourceType <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-backup-backupselection-backupselectionresourcetype.html>`__
109133
"""
110134

111135
props: PropsDictType = {
112-
"Conditions": (dict, False),
136+
"Conditions": (Conditions, False),
113137
"IamRoleArn": (str, True),
114138
"ListOfTags": ([ConditionResourceType], False),
115139
"NotResources": ([str], False),
@@ -140,9 +164,9 @@ class LockConfigurationType(AWSProperty):
140164
"""
141165

142166
props: PropsDictType = {
143-
"ChangeableForDays": (double, False),
144-
"MaxRetentionDays": (double, False),
145-
"MinRetentionDays": (double, True),
167+
"ChangeableForDays": (integer, False),
168+
"MaxRetentionDays": (integer, False),
169+
"MinRetentionDays": (integer, True),
146170
}
147171

148172

@@ -185,6 +209,18 @@ class ControlInputParameter(AWSProperty):
185209
}
186210

187211

212+
class ControlScope(AWSProperty):
213+
"""
214+
`ControlScope <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-backup-framework-controlscope.html>`__
215+
"""
216+
217+
props: PropsDictType = {
218+
"ComplianceResourceIds": ([str], False),
219+
"ComplianceResourceTypes": ([str], False),
220+
"Tags": (Tags, False),
221+
}
222+
223+
188224
class FrameworkControl(AWSProperty):
189225
"""
190226
`FrameworkControl <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-backup-framework-frameworkcontrol.html>`__
@@ -193,7 +229,7 @@ class FrameworkControl(AWSProperty):
193229
props: PropsDictType = {
194230
"ControlInputParameters": ([ControlInputParameter], False),
195231
"ControlName": (str, True),
196-
"ControlScope": (dict, False),
232+
"ControlScope": (ControlScope, False),
197233
}
198234

199235

@@ -212,6 +248,32 @@ class Framework(AWSObject):
212248
}
213249

214250

251+
class ReportDeliveryChannel(AWSProperty):
252+
"""
253+
`ReportDeliveryChannel <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-backup-reportplan-reportdeliverychannel.html>`__
254+
"""
255+
256+
props: PropsDictType = {
257+
"Formats": ([str], False),
258+
"S3BucketName": (str, True),
259+
"S3KeyPrefix": (str, False),
260+
}
261+
262+
263+
class ReportSetting(AWSProperty):
264+
"""
265+
`ReportSetting <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-backup-reportplan-reportsetting.html>`__
266+
"""
267+
268+
props: PropsDictType = {
269+
"Accounts": ([str], False),
270+
"FrameworkArns": ([str], False),
271+
"OrganizationUnits": ([str], False),
272+
"Regions": ([str], False),
273+
"ReportTemplate": (str, True),
274+
}
275+
276+
215277
class ReportPlan(AWSObject):
216278
"""
217279
`ReportPlan <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-backup-reportplan.html>`__
@@ -220,9 +282,9 @@ class ReportPlan(AWSObject):
220282
resource_type = "AWS::Backup::ReportPlan"
221283

222284
props: PropsDictType = {
223-
"ReportDeliveryChannel": (dict, True),
285+
"ReportDeliveryChannel": (ReportDeliveryChannel, True),
224286
"ReportPlanDescription": (str, False),
225287
"ReportPlanName": (str, False),
226288
"ReportPlanTags": (Tags, False),
227-
"ReportSetting": (dict, True),
289+
"ReportSetting": (ReportSetting, True),
228290
}

troposphere/billingconductor.py

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88

99
from . import AWSObject, AWSProperty, PropsDictType, Tags
10-
from .validators import double
10+
from .validators import boolean, double
1111

1212

1313
class AccountGrouping(AWSProperty):
@@ -123,6 +123,26 @@ class PricingPlan(AWSObject):
123123
}
124124

125125

126+
class FreeTier(AWSProperty):
127+
"""
128+
`FreeTier <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-billingconductor-pricingrule-freetier.html>`__
129+
"""
130+
131+
props: PropsDictType = {
132+
"Activated": (boolean, True),
133+
}
134+
135+
136+
class Tiering(AWSProperty):
137+
"""
138+
`Tiering <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-billingconductor-pricingrule-tiering.html>`__
139+
"""
140+
141+
props: PropsDictType = {
142+
"FreeTier": (FreeTier, False),
143+
}
144+
145+
126146
class PricingRule(AWSObject):
127147
"""
128148
`PricingRule <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-billingconductor-pricingrule.html>`__
@@ -133,10 +153,11 @@ class PricingRule(AWSObject):
133153
props: PropsDictType = {
134154
"BillingEntity": (str, False),
135155
"Description": (str, False),
136-
"ModifierPercentage": (double, True),
156+
"ModifierPercentage": (double, False),
137157
"Name": (str, True),
138158
"Scope": (str, True),
139159
"Service": (str, False),
140160
"Tags": (Tags, False),
161+
"Tiering": (Tiering, False),
141162
"Type": (str, True),
142163
}

troposphere/cloudformation.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,16 @@ class AutoDeployment(AWSProperty):
218218
}
219219

220220

221+
class ManagedExecution(AWSProperty):
222+
"""
223+
`ManagedExecution <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudformation-stackset-managedexecution.html>`__
224+
"""
225+
226+
props: PropsDictType = {
227+
"Active": (boolean, False),
228+
}
229+
230+
221231
class OperationPreferences(AWSProperty):
222232
"""
223233
`OperationPreferences <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudformation-stackset-operationpreferences.html>`__
@@ -282,7 +292,7 @@ class StackSet(AWSObject):
282292
"Capabilities": ([str], False),
283293
"Description": (str, False),
284294
"ExecutionRoleName": (str, False),
285-
"ManagedExecution": (dict, False),
295+
"ManagedExecution": (ManagedExecution, False),
286296
"OperationPreferences": (OperationPreferences, False),
287297
"Parameters": ([Parameter], False),
288298
"PermissionModel": (str, True),

troposphere/codeguruprofiler.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@
99
from . import AWSObject, AWSProperty, PropsDictType, Tags
1010

1111

12+
class AgentPermissions(AWSProperty):
13+
"""
14+
`AgentPermissions <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codeguruprofiler-profilinggroup-agentpermissions.html>`__
15+
"""
16+
17+
props: PropsDictType = {
18+
"Principals": ([str], True),
19+
}
20+
21+
1222
class Channel(AWSProperty):
1323
"""
1424
`Channel <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codeguruprofiler-profilinggroup-channel.html>`__
@@ -28,7 +38,7 @@ class ProfilingGroup(AWSObject):
2838
resource_type = "AWS::CodeGuruProfiler::ProfilingGroup"
2939

3040
props: PropsDictType = {
31-
"AgentPermissions": (dict, False),
41+
"AgentPermissions": (AgentPermissions, False),
3242
"AnomalyDetectionNotificationConfiguration": ([Channel], False),
3343
"ComputePlatform": (str, False),
3444
"ProfilingGroupName": (str, True),

troposphere/config.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,17 @@ class ConformancePackInputParameter(AWSProperty):
176176
}
177177

178178

179+
class TemplateSSMDocumentDetails(AWSProperty):
180+
"""
181+
`TemplateSSMDocumentDetails <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-conformancepack-templatessmdocumentdetails.html>`__
182+
"""
183+
184+
props: PropsDictType = {
185+
"DocumentName": (str, False),
186+
"DocumentVersion": (str, False),
187+
}
188+
189+
179190
class ConformancePack(AWSObject):
180191
"""
181192
`ConformancePack <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-conformancepack.html>`__
@@ -190,7 +201,7 @@ class ConformancePack(AWSObject):
190201
"DeliveryS3KeyPrefix": (str, False),
191202
"TemplateBody": (str, False),
192203
"TemplateS3Uri": (str, False),
193-
"TemplateSSMDocumentDetails": (dict, False),
204+
"TemplateSSMDocumentDetails": (TemplateSSMDocumentDetails, False),
194205
}
195206

196207

0 commit comments

Comments
 (0)