alibabacloud-fc20230330 2.0.0__py3-none-any.whl → 3.0.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -158,19 +158,17 @@ class AsyncConfig(TeaModel):
158
158
  self,
159
159
  created_time: str = None,
160
160
  destination_config: DestinationConfig = None,
161
- function_name: str = None,
161
+ function_arn: str = None,
162
162
  last_modified_time: str = None,
163
163
  max_async_event_age_in_seconds: int = None,
164
164
  max_async_retry_attempts: int = None,
165
- qualifier: str = None,
166
165
  ):
167
166
  self.created_time = created_time
168
167
  self.destination_config = destination_config
169
- self.function_name = function_name
168
+ self.function_arn = function_arn
170
169
  self.last_modified_time = last_modified_time
171
170
  self.max_async_event_age_in_seconds = max_async_event_age_in_seconds
172
171
  self.max_async_retry_attempts = max_async_retry_attempts
173
- self.qualifier = qualifier
174
172
 
175
173
  def validate(self):
176
174
  if self.destination_config:
@@ -186,16 +184,14 @@ class AsyncConfig(TeaModel):
186
184
  result['createdTime'] = self.created_time
187
185
  if self.destination_config is not None:
188
186
  result['destinationConfig'] = self.destination_config.to_map()
189
- if self.function_name is not None:
190
- result['functionName'] = self.function_name
187
+ if self.function_arn is not None:
188
+ result['functionArn'] = self.function_arn
191
189
  if self.last_modified_time is not None:
192
190
  result['lastModifiedTime'] = self.last_modified_time
193
191
  if self.max_async_event_age_in_seconds is not None:
194
192
  result['maxAsyncEventAgeInSeconds'] = self.max_async_event_age_in_seconds
195
193
  if self.max_async_retry_attempts is not None:
196
194
  result['maxAsyncRetryAttempts'] = self.max_async_retry_attempts
197
- if self.qualifier is not None:
198
- result['qualifier'] = self.qualifier
199
195
  return result
200
196
 
201
197
  def from_map(self, m: dict = None):
@@ -205,16 +201,47 @@ class AsyncConfig(TeaModel):
205
201
  if m.get('destinationConfig') is not None:
206
202
  temp_model = DestinationConfig()
207
203
  self.destination_config = temp_model.from_map(m['destinationConfig'])
208
- if m.get('functionName') is not None:
209
- self.function_name = m.get('functionName')
204
+ if m.get('functionArn') is not None:
205
+ self.function_arn = m.get('functionArn')
210
206
  if m.get('lastModifiedTime') is not None:
211
207
  self.last_modified_time = m.get('lastModifiedTime')
212
208
  if m.get('maxAsyncEventAgeInSeconds') is not None:
213
209
  self.max_async_event_age_in_seconds = m.get('maxAsyncEventAgeInSeconds')
214
210
  if m.get('maxAsyncRetryAttempts') is not None:
215
211
  self.max_async_retry_attempts = m.get('maxAsyncRetryAttempts')
216
- if m.get('qualifier') is not None:
217
- self.qualifier = m.get('qualifier')
212
+ return self
213
+
214
+
215
+ class AuthConfig(TeaModel):
216
+ def __init__(
217
+ self,
218
+ auth_info: str = None,
219
+ auth_type: str = None,
220
+ ):
221
+ self.auth_info = auth_info
222
+ self.auth_type = auth_type
223
+
224
+ def validate(self):
225
+ pass
226
+
227
+ def to_map(self):
228
+ _map = super().to_map()
229
+ if _map is not None:
230
+ return _map
231
+
232
+ result = dict()
233
+ if self.auth_info is not None:
234
+ result['authInfo'] = self.auth_info
235
+ if self.auth_type is not None:
236
+ result['authType'] = self.auth_type
237
+ return result
238
+
239
+ def from_map(self, m: dict = None):
240
+ m = m or dict()
241
+ if m.get('authInfo') is not None:
242
+ self.auth_info = m.get('authInfo')
243
+ if m.get('authType') is not None:
244
+ self.auth_type = m.get('authType')
218
245
  return self
219
246
 
220
247
 
@@ -335,74 +362,6 @@ class CreateAliasInput(TeaModel):
335
362
  return self
336
363
 
337
364
 
338
- class RewriteRegexRule(TeaModel):
339
- def __init__(
340
- self,
341
- regex_str: str = None,
342
- replacement: str = None,
343
- ):
344
- self.regex_str = regex_str
345
- self.replacement = replacement
346
-
347
- def validate(self):
348
- pass
349
-
350
- def to_map(self):
351
- _map = super().to_map()
352
- if _map is not None:
353
- return _map
354
-
355
- result = dict()
356
- if self.regex_str is not None:
357
- result['regexStr'] = self.regex_str
358
- if self.replacement is not None:
359
- result['replacement'] = self.replacement
360
- return result
361
-
362
- def from_map(self, m: dict = None):
363
- m = m or dict()
364
- if m.get('regexStr') is not None:
365
- self.regex_str = m.get('regexStr')
366
- if m.get('replacement') is not None:
367
- self.replacement = m.get('replacement')
368
- return self
369
-
370
-
371
- class InnerRewriteConfig(TeaModel):
372
- def __init__(
373
- self,
374
- regex_rules: List[RewriteRegexRule] = None,
375
- ):
376
- self.regex_rules = regex_rules
377
-
378
- def validate(self):
379
- if self.regex_rules:
380
- for k in self.regex_rules:
381
- if k:
382
- k.validate()
383
-
384
- def to_map(self):
385
- _map = super().to_map()
386
- if _map is not None:
387
- return _map
388
-
389
- result = dict()
390
- result['regexRules'] = []
391
- if self.regex_rules is not None:
392
- for k in self.regex_rules:
393
- result['regexRules'].append(k.to_map() if k else None)
394
- return result
395
-
396
- def from_map(self, m: dict = None):
397
- m = m or dict()
398
- self.regex_rules = []
399
- if m.get('regexRules') is not None:
400
- for k in m.get('regexRules'):
401
- temp_model = RewriteRegexRule()
402
- self.regex_rules.append(temp_model.from_map(k))
403
- return self
404
-
405
-
406
365
  class EqualRule(TeaModel):
407
366
  def __init__(
408
367
  self,
@@ -570,27 +529,19 @@ class RewriteConfig(TeaModel):
570
529
  class PathConfig(TeaModel):
571
530
  def __init__(
572
531
  self,
573
- account_id: str = None,
574
532
  function_name: str = None,
575
- inner_rewrite_config: InnerRewriteConfig = None,
576
533
  methods: List[str] = None,
577
534
  path: str = None,
578
535
  qualifier: str = None,
579
536
  rewrite_config: RewriteConfig = None,
580
- service_name: str = None,
581
537
  ):
582
- self.account_id = account_id
583
538
  self.function_name = function_name
584
- self.inner_rewrite_config = inner_rewrite_config
585
539
  self.methods = methods
586
540
  self.path = path
587
541
  self.qualifier = qualifier
588
542
  self.rewrite_config = rewrite_config
589
- self.service_name = service_name
590
543
 
591
544
  def validate(self):
592
- if self.inner_rewrite_config:
593
- self.inner_rewrite_config.validate()
594
545
  if self.rewrite_config:
595
546
  self.rewrite_config.validate()
596
547
 
@@ -600,12 +551,8 @@ class PathConfig(TeaModel):
600
551
  return _map
601
552
 
602
553
  result = dict()
603
- if self.account_id is not None:
604
- result['accountId'] = self.account_id
605
554
  if self.function_name is not None:
606
555
  result['functionName'] = self.function_name
607
- if self.inner_rewrite_config is not None:
608
- result['innerRewriteConfig'] = self.inner_rewrite_config.to_map()
609
556
  if self.methods is not None:
610
557
  result['methods'] = self.methods
611
558
  if self.path is not None:
@@ -614,19 +561,12 @@ class PathConfig(TeaModel):
614
561
  result['qualifier'] = self.qualifier
615
562
  if self.rewrite_config is not None:
616
563
  result['rewriteConfig'] = self.rewrite_config.to_map()
617
- if self.service_name is not None:
618
- result['serviceName'] = self.service_name
619
564
  return result
620
565
 
621
566
  def from_map(self, m: dict = None):
622
567
  m = m or dict()
623
- if m.get('accountId') is not None:
624
- self.account_id = m.get('accountId')
625
568
  if m.get('functionName') is not None:
626
569
  self.function_name = m.get('functionName')
627
- if m.get('innerRewriteConfig') is not None:
628
- temp_model = InnerRewriteConfig()
629
- self.inner_rewrite_config = temp_model.from_map(m['innerRewriteConfig'])
630
570
  if m.get('methods') is not None:
631
571
  self.methods = m.get('methods')
632
572
  if m.get('path') is not None:
@@ -636,8 +576,6 @@ class PathConfig(TeaModel):
636
576
  if m.get('rewriteConfig') is not None:
637
577
  temp_model = RewriteConfig()
638
578
  self.rewrite_config = temp_model.from_map(m['rewriteConfig'])
639
- if m.get('serviceName') is not None:
640
- self.service_name = m.get('serviceName')
641
579
  return self
642
580
 
643
581
 
@@ -745,6 +683,7 @@ class WAFConfig(TeaModel):
745
683
  class CreateCustomDomainInput(TeaModel):
746
684
  def __init__(
747
685
  self,
686
+ auth_config: AuthConfig = None,
748
687
  cert_config: CertConfig = None,
749
688
  domain_name: str = None,
750
689
  protocol: str = None,
@@ -752,6 +691,7 @@ class CreateCustomDomainInput(TeaModel):
752
691
  tls_config: TLSConfig = None,
753
692
  waf_config: WAFConfig = None,
754
693
  ):
694
+ self.auth_config = auth_config
755
695
  self.cert_config = cert_config
756
696
  self.domain_name = domain_name
757
697
  self.protocol = protocol
@@ -760,6 +700,8 @@ class CreateCustomDomainInput(TeaModel):
760
700
  self.waf_config = waf_config
761
701
 
762
702
  def validate(self):
703
+ if self.auth_config:
704
+ self.auth_config.validate()
763
705
  if self.cert_config:
764
706
  self.cert_config.validate()
765
707
  if self.route_config:
@@ -775,6 +717,8 @@ class CreateCustomDomainInput(TeaModel):
775
717
  return _map
776
718
 
777
719
  result = dict()
720
+ if self.auth_config is not None:
721
+ result['authConfig'] = self.auth_config.to_map()
778
722
  if self.cert_config is not None:
779
723
  result['certConfig'] = self.cert_config.to_map()
780
724
  if self.domain_name is not None:
@@ -791,6 +735,9 @@ class CreateCustomDomainInput(TeaModel):
791
735
 
792
736
  def from_map(self, m: dict = None):
793
737
  m = m or dict()
738
+ if m.get('authConfig') is not None:
739
+ temp_model = AuthConfig()
740
+ self.auth_config = temp_model.from_map(m['authConfig'])
794
741
  if m.get('certConfig') is not None:
795
742
  temp_model = CertConfig()
796
743
  self.cert_config = temp_model.from_map(m['certConfig'])
@@ -950,7 +897,7 @@ class CustomContainerConfig(TeaModel):
950
897
  if self.acceleration_type is not None:
951
898
  result['accelerationType'] = self.acceleration_type
952
899
  if self.acr_instance_id is not None:
953
- result['acrInstanceID'] = self.acr_instance_id
900
+ result['acrInstanceId'] = self.acr_instance_id
954
901
  if self.command is not None:
955
902
  result['command'] = self.command
956
903
  if self.entrypoint is not None:
@@ -970,8 +917,8 @@ class CustomContainerConfig(TeaModel):
970
917
  self.acceleration_info = temp_model.from_map(m['accelerationInfo'])
971
918
  if m.get('accelerationType') is not None:
972
919
  self.acceleration_type = m.get('accelerationType')
973
- if m.get('acrInstanceID') is not None:
974
- self.acr_instance_id = m.get('acrInstanceID')
920
+ if m.get('acrInstanceId') is not None:
921
+ self.acr_instance_id = m.get('acrInstanceId')
975
922
  if m.get('command') is not None:
976
923
  self.command = m.get('command')
977
924
  if m.get('entrypoint') is not None:
@@ -1473,33 +1420,6 @@ class TracingConfig(TeaModel):
1473
1420
  return self
1474
1421
 
1475
1422
 
1476
- class VPCBinding(TeaModel):
1477
- def __init__(
1478
- self,
1479
- vpc_ids: List[str] = None,
1480
- ):
1481
- self.vpc_ids = vpc_ids
1482
-
1483
- def validate(self):
1484
- pass
1485
-
1486
- def to_map(self):
1487
- _map = super().to_map()
1488
- if _map is not None:
1489
- return _map
1490
-
1491
- result = dict()
1492
- if self.vpc_ids is not None:
1493
- result['vpcIds'] = self.vpc_ids
1494
- return result
1495
-
1496
- def from_map(self, m: dict = None):
1497
- m = m or dict()
1498
- if m.get('vpcIds') is not None:
1499
- self.vpc_ids = m.get('vpcIds')
1500
- return self
1501
-
1502
-
1503
1423
  class VPCConfig(TeaModel):
1504
1424
  def __init__(
1505
1425
  self,
@@ -1565,7 +1485,6 @@ class CreateFunctionInput(TeaModel):
1565
1485
  runtime: str = None,
1566
1486
  timeout: int = None,
1567
1487
  tracing_config: TracingConfig = None,
1568
- vpc_binding: VPCBinding = None,
1569
1488
  vpc_config: VPCConfig = None,
1570
1489
  ):
1571
1490
  self.code = code
@@ -1591,7 +1510,6 @@ class CreateFunctionInput(TeaModel):
1591
1510
  self.runtime = runtime
1592
1511
  self.timeout = timeout
1593
1512
  self.tracing_config = tracing_config
1594
- self.vpc_binding = vpc_binding
1595
1513
  self.vpc_config = vpc_config
1596
1514
 
1597
1515
  def validate(self):
@@ -1615,8 +1533,6 @@ class CreateFunctionInput(TeaModel):
1615
1533
  self.oss_mount_config.validate()
1616
1534
  if self.tracing_config:
1617
1535
  self.tracing_config.validate()
1618
- if self.vpc_binding:
1619
- self.vpc_binding.validate()
1620
1536
  if self.vpc_config:
1621
1537
  self.vpc_config.validate()
1622
1538
 
@@ -1672,8 +1588,6 @@ class CreateFunctionInput(TeaModel):
1672
1588
  result['timeout'] = self.timeout
1673
1589
  if self.tracing_config is not None:
1674
1590
  result['tracingConfig'] = self.tracing_config.to_map()
1675
- if self.vpc_binding is not None:
1676
- result['vpcBinding'] = self.vpc_binding.to_map()
1677
1591
  if self.vpc_config is not None:
1678
1592
  result['vpcConfig'] = self.vpc_config.to_map()
1679
1593
  return result
@@ -1736,9 +1650,6 @@ class CreateFunctionInput(TeaModel):
1736
1650
  if m.get('tracingConfig') is not None:
1737
1651
  temp_model = TracingConfig()
1738
1652
  self.tracing_config = temp_model.from_map(m['tracingConfig'])
1739
- if m.get('vpcBinding') is not None:
1740
- temp_model = VPCBinding()
1741
- self.vpc_binding = temp_model.from_map(m['vpcBinding'])
1742
1653
  if m.get('vpcConfig') is not None:
1743
1654
  temp_model = VPCConfig()
1744
1655
  self.vpc_config = temp_model.from_map(m['vpcConfig'])
@@ -1855,11 +1766,39 @@ class CreateTriggerInput(TeaModel):
1855
1766
  return self
1856
1767
 
1857
1768
 
1769
+ class CreateVpcBindingInput(TeaModel):
1770
+ def __init__(
1771
+ self,
1772
+ vpc_id: str = None,
1773
+ ):
1774
+ self.vpc_id = vpc_id
1775
+
1776
+ def validate(self):
1777
+ pass
1778
+
1779
+ def to_map(self):
1780
+ _map = super().to_map()
1781
+ if _map is not None:
1782
+ return _map
1783
+
1784
+ result = dict()
1785
+ if self.vpc_id is not None:
1786
+ result['vpcId'] = self.vpc_id
1787
+ return result
1788
+
1789
+ def from_map(self, m: dict = None):
1790
+ m = m or dict()
1791
+ if m.get('vpcId') is not None:
1792
+ self.vpc_id = m.get('vpcId')
1793
+ return self
1794
+
1795
+
1858
1796
  class CustomDomain(TeaModel):
1859
1797
  def __init__(
1860
1798
  self,
1861
1799
  account_id: str = None,
1862
1800
  api_version: str = None,
1801
+ auth_config: AuthConfig = None,
1863
1802
  cert_config: CertConfig = None,
1864
1803
  created_time: str = None,
1865
1804
  domain_name: str = None,
@@ -1872,6 +1811,7 @@ class CustomDomain(TeaModel):
1872
1811
  ):
1873
1812
  self.account_id = account_id
1874
1813
  self.api_version = api_version
1814
+ self.auth_config = auth_config
1875
1815
  self.cert_config = cert_config
1876
1816
  self.created_time = created_time
1877
1817
  self.domain_name = domain_name
@@ -1883,6 +1823,8 @@ class CustomDomain(TeaModel):
1883
1823
  self.waf_config = waf_config
1884
1824
 
1885
1825
  def validate(self):
1826
+ if self.auth_config:
1827
+ self.auth_config.validate()
1886
1828
  if self.cert_config:
1887
1829
  self.cert_config.validate()
1888
1830
  if self.route_config:
@@ -1902,6 +1844,8 @@ class CustomDomain(TeaModel):
1902
1844
  result['accountId'] = self.account_id
1903
1845
  if self.api_version is not None:
1904
1846
  result['apiVersion'] = self.api_version
1847
+ if self.auth_config is not None:
1848
+ result['authConfig'] = self.auth_config.to_map()
1905
1849
  if self.cert_config is not None:
1906
1850
  result['certConfig'] = self.cert_config.to_map()
1907
1851
  if self.created_time is not None:
@@ -1928,6 +1872,9 @@ class CustomDomain(TeaModel):
1928
1872
  self.account_id = m.get('accountId')
1929
1873
  if m.get('apiVersion') is not None:
1930
1874
  self.api_version = m.get('apiVersion')
1875
+ if m.get('authConfig') is not None:
1876
+ temp_model = AuthConfig()
1877
+ self.auth_config = temp_model.from_map(m['authConfig'])
1931
1878
  if m.get('certConfig') is not None:
1932
1879
  temp_model = CertConfig()
1933
1880
  self.cert_config = temp_model.from_map(m['certConfig'])
@@ -1974,21 +1921,21 @@ class Error(TeaModel):
1974
1921
 
1975
1922
  result = dict()
1976
1923
  if self.code is not None:
1977
- result['code'] = self.code
1924
+ result['Code'] = self.code
1978
1925
  if self.message is not None:
1979
- result['message'] = self.message
1926
+ result['Message'] = self.message
1980
1927
  if self.request_id is not None:
1981
- result['requestId'] = self.request_id
1928
+ result['RequestId'] = self.request_id
1982
1929
  return result
1983
1930
 
1984
1931
  def from_map(self, m: dict = None):
1985
1932
  m = m or dict()
1986
- if m.get('code') is not None:
1987
- self.code = m.get('code')
1988
- if m.get('message') is not None:
1989
- self.message = m.get('message')
1990
- if m.get('requestId') is not None:
1991
- self.request_id = m.get('requestId')
1933
+ if m.get('Code') is not None:
1934
+ self.code = m.get('Code')
1935
+ if m.get('Message') is not None:
1936
+ self.message = m.get('Message')
1937
+ if m.get('RequestId') is not None:
1938
+ self.request_id = m.get('RequestId')
1992
1939
  return self
1993
1940
 
1994
1941
 
@@ -2056,7 +2003,6 @@ class Function(TeaModel):
2056
2003
  runtime: str = None,
2057
2004
  timeout: int = None,
2058
2005
  tracing_config: TracingConfig = None,
2059
- vpc_binding: VPCBinding = None,
2060
2006
  vpc_config: VPCConfig = None,
2061
2007
  ):
2062
2008
  self.code_checksum = code_checksum
@@ -2087,7 +2033,6 @@ class Function(TeaModel):
2087
2033
  self.runtime = runtime
2088
2034
  self.timeout = timeout
2089
2035
  self.tracing_config = tracing_config
2090
- self.vpc_binding = vpc_binding
2091
2036
  self.vpc_config = vpc_config
2092
2037
 
2093
2038
  def validate(self):
@@ -2113,8 +2058,6 @@ class Function(TeaModel):
2113
2058
  self.oss_mount_config.validate()
2114
2059
  if self.tracing_config:
2115
2060
  self.tracing_config.validate()
2116
- if self.vpc_binding:
2117
- self.vpc_binding.validate()
2118
2061
  if self.vpc_config:
2119
2062
  self.vpc_config.validate()
2120
2063
 
@@ -2182,8 +2125,6 @@ class Function(TeaModel):
2182
2125
  result['timeout'] = self.timeout
2183
2126
  if self.tracing_config is not None:
2184
2127
  result['tracingConfig'] = self.tracing_config.to_map()
2185
- if self.vpc_binding is not None:
2186
- result['vpcBinding'] = self.vpc_binding.to_map()
2187
2128
  if self.vpc_config is not None:
2188
2129
  result['vpcConfig'] = self.vpc_config.to_map()
2189
2130
  return result
@@ -2258,9 +2199,6 @@ class Function(TeaModel):
2258
2199
  if m.get('tracingConfig') is not None:
2259
2200
  temp_model = TracingConfig()
2260
2201
  self.tracing_config = temp_model.from_map(m['tracingConfig'])
2261
- if m.get('vpcBinding') is not None:
2262
- temp_model = VPCBinding()
2263
- self.vpc_binding = temp_model.from_map(m['vpcBinding'])
2264
2202
  if m.get('vpcConfig') is not None:
2265
2203
  temp_model = VPCConfig()
2266
2204
  self.vpc_config = temp_model.from_map(m['vpcConfig'])
@@ -2270,9 +2208,11 @@ class Function(TeaModel):
2270
2208
  class GetResourceTagsOutput(TeaModel):
2271
2209
  def __init__(
2272
2210
  self,
2211
+ resouce_type: str = None,
2273
2212
  resource_arn: str = None,
2274
2213
  tags: Dict[str, str] = None,
2275
2214
  ):
2215
+ self.resouce_type = resouce_type
2276
2216
  self.resource_arn = resource_arn
2277
2217
  self.tags = tags
2278
2218
 
@@ -2285,6 +2225,8 @@ class GetResourceTagsOutput(TeaModel):
2285
2225
  return _map
2286
2226
 
2287
2227
  result = dict()
2228
+ if self.resouce_type is not None:
2229
+ result['resouceType'] = self.resouce_type
2288
2230
  if self.resource_arn is not None:
2289
2231
  result['resourceArn'] = self.resource_arn
2290
2232
  if self.tags is not None:
@@ -2293,6 +2235,8 @@ class GetResourceTagsOutput(TeaModel):
2293
2235
 
2294
2236
  def from_map(self, m: dict = None):
2295
2237
  m = m or dict()
2238
+ if m.get('resouceType') is not None:
2239
+ self.resouce_type = m.get('resouceType')
2296
2240
  if m.get('resourceArn') is not None:
2297
2241
  self.resource_arn = m.get('resourceArn')
2298
2242
  if m.get('tags') is not None:
@@ -2333,63 +2277,6 @@ class HTTPTrigger(TeaModel):
2333
2277
  return self
2334
2278
 
2335
2279
 
2336
- class HealthCheckConfig(TeaModel):
2337
- def __init__(
2338
- self,
2339
- failure_threshold: int = None,
2340
- http_get_url: str = None,
2341
- initial_delay_seconds: int = None,
2342
- period_seconds: int = None,
2343
- success_threshold: int = None,
2344
- timeout_seconds: int = None,
2345
- ):
2346
- self.failure_threshold = failure_threshold
2347
- self.http_get_url = http_get_url
2348
- self.initial_delay_seconds = initial_delay_seconds
2349
- self.period_seconds = period_seconds
2350
- self.success_threshold = success_threshold
2351
- self.timeout_seconds = timeout_seconds
2352
-
2353
- def validate(self):
2354
- pass
2355
-
2356
- def to_map(self):
2357
- _map = super().to_map()
2358
- if _map is not None:
2359
- return _map
2360
-
2361
- result = dict()
2362
- if self.failure_threshold is not None:
2363
- result['failureThreshold'] = self.failure_threshold
2364
- if self.http_get_url is not None:
2365
- result['httpGetUrl'] = self.http_get_url
2366
- if self.initial_delay_seconds is not None:
2367
- result['initialDelaySeconds'] = self.initial_delay_seconds
2368
- if self.period_seconds is not None:
2369
- result['periodSeconds'] = self.period_seconds
2370
- if self.success_threshold is not None:
2371
- result['successThreshold'] = self.success_threshold
2372
- if self.timeout_seconds is not None:
2373
- result['timeoutSeconds'] = self.timeout_seconds
2374
- return result
2375
-
2376
- def from_map(self, m: dict = None):
2377
- m = m or dict()
2378
- if m.get('failureThreshold') is not None:
2379
- self.failure_threshold = m.get('failureThreshold')
2380
- if m.get('httpGetUrl') is not None:
2381
- self.http_get_url = m.get('httpGetUrl')
2382
- if m.get('initialDelaySeconds') is not None:
2383
- self.initial_delay_seconds = m.get('initialDelaySeconds')
2384
- if m.get('periodSeconds') is not None:
2385
- self.period_seconds = m.get('periodSeconds')
2386
- if m.get('successThreshold') is not None:
2387
- self.success_threshold = m.get('successThreshold')
2388
- if m.get('timeoutSeconds') is not None:
2389
- self.timeout_seconds = m.get('timeoutSeconds')
2390
- return self
2391
-
2392
-
2393
2280
  class InstanceInfo(TeaModel):
2394
2281
  def __init__(
2395
2282
  self,
@@ -3105,9 +2992,11 @@ class ListProvisionConfigsOutput(TeaModel):
3105
2992
  class Resource(TeaModel):
3106
2993
  def __init__(
3107
2994
  self,
2995
+ resouce_type: str = None,
3108
2996
  resource_arn: str = None,
3109
2997
  tags: Dict[str, str] = None,
3110
2998
  ):
2999
+ self.resouce_type = resouce_type
3111
3000
  self.resource_arn = resource_arn
3112
3001
  self.tags = tags
3113
3002
 
@@ -3120,6 +3009,8 @@ class Resource(TeaModel):
3120
3009
  return _map
3121
3010
 
3122
3011
  result = dict()
3012
+ if self.resouce_type is not None:
3013
+ result['resouceType'] = self.resouce_type
3123
3014
  if self.resource_arn is not None:
3124
3015
  result['resourceArn'] = self.resource_arn
3125
3016
  if self.tags is not None:
@@ -3128,6 +3019,8 @@ class Resource(TeaModel):
3128
3019
 
3129
3020
  def from_map(self, m: dict = None):
3130
3021
  m = m or dict()
3022
+ if m.get('resouceType') is not None:
3023
+ self.resouce_type = m.get('resouceType')
3131
3024
  if m.get('resourceArn') is not None:
3132
3025
  self.resource_arn = m.get('resourceArn')
3133
3026
  if m.get('tags') is not None:
@@ -3323,13 +3216,11 @@ class Version(TeaModel):
3323
3216
  self,
3324
3217
  created_time: str = None,
3325
3218
  description: str = None,
3326
- function_version_arn: str = None,
3327
3219
  last_modified_time: str = None,
3328
3220
  version_id: str = None,
3329
3221
  ):
3330
3222
  self.created_time = created_time
3331
3223
  self.description = description
3332
- self.function_version_arn = function_version_arn
3333
3224
  self.last_modified_time = last_modified_time
3334
3225
  self.version_id = version_id
3335
3226
 
@@ -3346,8 +3237,6 @@ class Version(TeaModel):
3346
3237
  result['createdTime'] = self.created_time
3347
3238
  if self.description is not None:
3348
3239
  result['description'] = self.description
3349
- if self.function_version_arn is not None:
3350
- result['functionVersionArn'] = self.function_version_arn
3351
3240
  if self.last_modified_time is not None:
3352
3241
  result['lastModifiedTime'] = self.last_modified_time
3353
3242
  if self.version_id is not None:
@@ -3360,8 +3249,6 @@ class Version(TeaModel):
3360
3249
  self.created_time = m.get('createdTime')
3361
3250
  if m.get('description') is not None:
3362
3251
  self.description = m.get('description')
3363
- if m.get('functionVersionArn') is not None:
3364
- self.function_version_arn = m.get('functionVersionArn')
3365
3252
  if m.get('lastModifiedTime') is not None:
3366
3253
  self.last_modified_time = m.get('lastModifiedTime')
3367
3254
  if m.get('versionId') is not None:
@@ -3416,14 +3303,12 @@ class ListVersionsOutput(TeaModel):
3416
3303
  return self
3417
3304
 
3418
3305
 
3419
- class OutputFuncCode(TeaModel):
3306
+ class ListVpcBindingsOutput(TeaModel):
3420
3307
  def __init__(
3421
3308
  self,
3422
- checksum: str = None,
3423
- url: str = None,
3309
+ vpc_ids: List[str] = None,
3424
3310
  ):
3425
- self.checksum = checksum
3426
- self.url = url
3311
+ self.vpc_ids = vpc_ids
3427
3312
 
3428
3313
  def validate(self):
3429
3314
  pass
@@ -3434,33 +3319,25 @@ class OutputFuncCode(TeaModel):
3434
3319
  return _map
3435
3320
 
3436
3321
  result = dict()
3437
- if self.checksum is not None:
3438
- result['checksum'] = self.checksum
3439
- if self.url is not None:
3440
- result['url'] = self.url
3322
+ if self.vpc_ids is not None:
3323
+ result['vpcIds'] = self.vpc_ids
3441
3324
  return result
3442
3325
 
3443
3326
  def from_map(self, m: dict = None):
3444
3327
  m = m or dict()
3445
- if m.get('checksum') is not None:
3446
- self.checksum = m.get('checksum')
3447
- if m.get('url') is not None:
3448
- self.url = m.get('url')
3328
+ if m.get('vpcIds') is not None:
3329
+ self.vpc_ids = m.get('vpcIds')
3449
3330
  return self
3450
3331
 
3451
3332
 
3452
- class PolicyItem(TeaModel):
3333
+ class OutputFuncCode(TeaModel):
3453
3334
  def __init__(
3454
3335
  self,
3455
- key: str = None,
3456
- operator: str = None,
3457
- type: str = None,
3458
- value: str = None,
3336
+ checksum: str = None,
3337
+ url: str = None,
3459
3338
  ):
3460
- self.key = key
3461
- self.operator = operator
3462
- self.type = type
3463
- self.value = value
3339
+ self.checksum = checksum
3340
+ self.url = url
3464
3341
 
3465
3342
  def validate(self):
3466
3343
  pass
@@ -3471,26 +3348,18 @@ class PolicyItem(TeaModel):
3471
3348
  return _map
3472
3349
 
3473
3350
  result = dict()
3474
- if self.key is not None:
3475
- result['key'] = self.key
3476
- if self.operator is not None:
3477
- result['operator'] = self.operator
3478
- if self.type is not None:
3479
- result['type'] = self.type
3480
- if self.value is not None:
3481
- result['value'] = self.value
3351
+ if self.checksum is not None:
3352
+ result['checksum'] = self.checksum
3353
+ if self.url is not None:
3354
+ result['url'] = self.url
3482
3355
  return result
3483
3356
 
3484
3357
  def from_map(self, m: dict = None):
3485
3358
  m = m or dict()
3486
- if m.get('key') is not None:
3487
- self.key = m.get('key')
3488
- if m.get('operator') is not None:
3489
- self.operator = m.get('operator')
3490
- if m.get('type') is not None:
3491
- self.type = m.get('type')
3492
- if m.get('value') is not None:
3493
- self.value = m.get('value')
3359
+ if m.get('checksum') is not None:
3360
+ self.checksum = m.get('checksum')
3361
+ if m.get('url') is not None:
3362
+ self.url = m.get('url')
3494
3363
  return self
3495
3364
 
3496
3365
 
@@ -3651,89 +3520,13 @@ class PutProvisionConfigInput(TeaModel):
3651
3520
  return self
3652
3521
 
3653
3522
 
3654
- class RoutePolicy(TeaModel):
3655
- def __init__(
3656
- self,
3657
- condition: str = None,
3658
- policy_items: List[PolicyItem] = None,
3659
- ):
3660
- self.condition = condition
3661
- self.policy_items = policy_items
3662
-
3663
- def validate(self):
3664
- if self.policy_items:
3665
- for k in self.policy_items:
3666
- if k:
3667
- k.validate()
3668
-
3669
- def to_map(self):
3670
- _map = super().to_map()
3671
- if _map is not None:
3672
- return _map
3673
-
3674
- result = dict()
3675
- if self.condition is not None:
3676
- result['condition'] = self.condition
3677
- result['policyItems'] = []
3678
- if self.policy_items is not None:
3679
- for k in self.policy_items:
3680
- result['policyItems'].append(k.to_map() if k else None)
3681
- return result
3682
-
3683
- def from_map(self, m: dict = None):
3684
- m = m or dict()
3685
- if m.get('condition') is not None:
3686
- self.condition = m.get('condition')
3687
- self.policy_items = []
3688
- if m.get('policyItems') is not None:
3689
- for k in m.get('policyItems'):
3690
- temp_model = PolicyItem()
3691
- self.policy_items.append(temp_model.from_map(k))
3692
- return self
3693
-
3694
-
3695
- class Tag(TeaModel):
3696
- def __init__(
3697
- self,
3698
- key: str = None,
3699
- value: str = None,
3700
- ):
3701
- self.key = key
3702
- self.value = value
3703
-
3704
- def validate(self):
3705
- pass
3706
-
3707
- def to_map(self):
3708
- _map = super().to_map()
3709
- if _map is not None:
3710
- return _map
3711
-
3712
- result = dict()
3713
- if self.key is not None:
3714
- result['key'] = self.key
3715
- if self.value is not None:
3716
- result['value'] = self.value
3717
- return result
3718
-
3719
- def from_map(self, m: dict = None):
3720
- m = m or dict()
3721
- if m.get('key') is not None:
3722
- self.key = m.get('key')
3723
- if m.get('value') is not None:
3724
- self.value = m.get('value')
3725
- return self
3726
-
3727
-
3728
3523
  class TagResourceInput(TeaModel):
3729
3524
  def __init__(
3730
3525
  self,
3731
3526
  resource_arn: str = None,
3732
- resource_type: str = None,
3733
3527
  tags: Dict[str, str] = None,
3734
3528
  ):
3735
3529
  self.resource_arn = resource_arn
3736
- self.resource_type = resource_type
3737
3530
  self.tags = tags
3738
3531
 
3739
3532
  def validate(self):
@@ -3747,8 +3540,6 @@ class TagResourceInput(TeaModel):
3747
3540
  result = dict()
3748
3541
  if self.resource_arn is not None:
3749
3542
  result['resourceArn'] = self.resource_arn
3750
- if self.resource_type is not None:
3751
- result['resourceType'] = self.resource_type
3752
3543
  if self.tags is not None:
3753
3544
  result['tags'] = self.tags
3754
3545
  return result
@@ -3757,8 +3548,6 @@ class TagResourceInput(TeaModel):
3757
3548
  m = m or dict()
3758
3549
  if m.get('resourceArn') is not None:
3759
3550
  self.resource_arn = m.get('resourceArn')
3760
- if m.get('resourceType') is not None:
3761
- self.resource_type = m.get('resourceType')
3762
3551
  if m.get('tags') is not None:
3763
3552
  self.tags = m.get('tags')
3764
3553
  return self
@@ -3806,12 +3595,14 @@ class UpdateAliasInput(TeaModel):
3806
3595
  class UpdateCustomDomainInput(TeaModel):
3807
3596
  def __init__(
3808
3597
  self,
3598
+ auth_config: AuthConfig = None,
3809
3599
  cert_config: CertConfig = None,
3810
3600
  protocol: str = None,
3811
3601
  route_config: RouteConfig = None,
3812
3602
  tls_config: TLSConfig = None,
3813
3603
  waf_config: WAFConfig = None,
3814
3604
  ):
3605
+ self.auth_config = auth_config
3815
3606
  self.cert_config = cert_config
3816
3607
  self.protocol = protocol
3817
3608
  self.route_config = route_config
@@ -3819,6 +3610,8 @@ class UpdateCustomDomainInput(TeaModel):
3819
3610
  self.waf_config = waf_config
3820
3611
 
3821
3612
  def validate(self):
3613
+ if self.auth_config:
3614
+ self.auth_config.validate()
3822
3615
  if self.cert_config:
3823
3616
  self.cert_config.validate()
3824
3617
  if self.route_config:
@@ -3834,6 +3627,8 @@ class UpdateCustomDomainInput(TeaModel):
3834
3627
  return _map
3835
3628
 
3836
3629
  result = dict()
3630
+ if self.auth_config is not None:
3631
+ result['authConfig'] = self.auth_config.to_map()
3837
3632
  if self.cert_config is not None:
3838
3633
  result['certConfig'] = self.cert_config.to_map()
3839
3634
  if self.protocol is not None:
@@ -3848,6 +3643,9 @@ class UpdateCustomDomainInput(TeaModel):
3848
3643
 
3849
3644
  def from_map(self, m: dict = None):
3850
3645
  m = m or dict()
3646
+ if m.get('authConfig') is not None:
3647
+ temp_model = AuthConfig()
3648
+ self.auth_config = temp_model.from_map(m['authConfig'])
3851
3649
  if m.get('certConfig') is not None:
3852
3650
  temp_model = CertConfig()
3853
3651
  self.cert_config = temp_model.from_map(m['certConfig'])
@@ -3890,7 +3688,6 @@ class UpdateFunctionInput(TeaModel):
3890
3688
  runtime: str = None,
3891
3689
  timeout: int = None,
3892
3690
  tracing_config: TracingConfig = None,
3893
- vpc_binding: VPCBinding = None,
3894
3691
  vpc_config: VPCConfig = None,
3895
3692
  ):
3896
3693
  self.code = code
@@ -3915,7 +3712,6 @@ class UpdateFunctionInput(TeaModel):
3915
3712
  self.runtime = runtime
3916
3713
  self.timeout = timeout
3917
3714
  self.tracing_config = tracing_config
3918
- self.vpc_binding = vpc_binding
3919
3715
  self.vpc_config = vpc_config
3920
3716
 
3921
3717
  def validate(self):
@@ -3939,8 +3735,6 @@ class UpdateFunctionInput(TeaModel):
3939
3735
  self.oss_mount_config.validate()
3940
3736
  if self.tracing_config:
3941
3737
  self.tracing_config.validate()
3942
- if self.vpc_binding:
3943
- self.vpc_binding.validate()
3944
3738
  if self.vpc_config:
3945
3739
  self.vpc_config.validate()
3946
3740
 
@@ -3994,8 +3788,6 @@ class UpdateFunctionInput(TeaModel):
3994
3788
  result['timeout'] = self.timeout
3995
3789
  if self.tracing_config is not None:
3996
3790
  result['tracingConfig'] = self.tracing_config.to_map()
3997
- if self.vpc_binding is not None:
3998
- result['vpcBinding'] = self.vpc_binding.to_map()
3999
3791
  if self.vpc_config is not None:
4000
3792
  result['vpcConfig'] = self.vpc_config.to_map()
4001
3793
  return result
@@ -4056,9 +3848,6 @@ class UpdateFunctionInput(TeaModel):
4056
3848
  if m.get('tracingConfig') is not None:
4057
3849
  temp_model = TracingConfig()
4058
3850
  self.tracing_config = temp_model.from_map(m['tracingConfig'])
4059
- if m.get('vpcBinding') is not None:
4060
- temp_model = VPCBinding()
4061
- self.vpc_binding = temp_model.from_map(m['vpcBinding'])
4062
3851
  if m.get('vpcConfig') is not None:
4063
3852
  temp_model = VPCConfig()
4064
3853
  self.vpc_config = temp_model.from_map(m['vpcConfig'])
@@ -4475,6 +4264,69 @@ class CreateTriggerResponse(TeaModel):
4475
4264
  return self
4476
4265
 
4477
4266
 
4267
+ class CreateVpcBindingRequest(TeaModel):
4268
+ def __init__(
4269
+ self,
4270
+ body: CreateVpcBindingInput = None,
4271
+ ):
4272
+ self.body = body
4273
+
4274
+ def validate(self):
4275
+ if self.body:
4276
+ self.body.validate()
4277
+
4278
+ def to_map(self):
4279
+ _map = super().to_map()
4280
+ if _map is not None:
4281
+ return _map
4282
+
4283
+ result = dict()
4284
+ if self.body is not None:
4285
+ result['body'] = self.body.to_map()
4286
+ return result
4287
+
4288
+ def from_map(self, m: dict = None):
4289
+ m = m or dict()
4290
+ if m.get('body') is not None:
4291
+ temp_model = CreateVpcBindingInput()
4292
+ self.body = temp_model.from_map(m['body'])
4293
+ return self
4294
+
4295
+
4296
+ class CreateVpcBindingResponse(TeaModel):
4297
+ def __init__(
4298
+ self,
4299
+ headers: Dict[str, str] = None,
4300
+ status_code: int = None,
4301
+ ):
4302
+ self.headers = headers
4303
+ self.status_code = status_code
4304
+
4305
+ def validate(self):
4306
+ self.validate_required(self.headers, 'headers')
4307
+ self.validate_required(self.status_code, 'status_code')
4308
+
4309
+ def to_map(self):
4310
+ _map = super().to_map()
4311
+ if _map is not None:
4312
+ return _map
4313
+
4314
+ result = dict()
4315
+ if self.headers is not None:
4316
+ result['headers'] = self.headers
4317
+ if self.status_code is not None:
4318
+ result['statusCode'] = self.status_code
4319
+ return result
4320
+
4321
+ def from_map(self, m: dict = None):
4322
+ m = m or dict()
4323
+ if m.get('headers') is not None:
4324
+ self.headers = m.get('headers')
4325
+ if m.get('statusCode') is not None:
4326
+ self.status_code = m.get('statusCode')
4327
+ return self
4328
+
4329
+
4478
4330
  class DeleteAliasResponse(TeaModel):
4479
4331
  def __init__(
4480
4332
  self,
@@ -4835,6 +4687,40 @@ class DeleteTriggerResponse(TeaModel):
4835
4687
  return self
4836
4688
 
4837
4689
 
4690
+ class DeleteVpcBindingResponse(TeaModel):
4691
+ def __init__(
4692
+ self,
4693
+ headers: Dict[str, str] = None,
4694
+ status_code: int = None,
4695
+ ):
4696
+ self.headers = headers
4697
+ self.status_code = status_code
4698
+
4699
+ def validate(self):
4700
+ self.validate_required(self.headers, 'headers')
4701
+ self.validate_required(self.status_code, 'status_code')
4702
+
4703
+ def to_map(self):
4704
+ _map = super().to_map()
4705
+ if _map is not None:
4706
+ return _map
4707
+
4708
+ result = dict()
4709
+ if self.headers is not None:
4710
+ result['headers'] = self.headers
4711
+ if self.status_code is not None:
4712
+ result['statusCode'] = self.status_code
4713
+ return result
4714
+
4715
+ def from_map(self, m: dict = None):
4716
+ m = m or dict()
4717
+ if m.get('headers') is not None:
4718
+ self.headers = m.get('headers')
4719
+ if m.get('statusCode') is not None:
4720
+ self.status_code = m.get('statusCode')
4721
+ return self
4722
+
4723
+
4838
4724
  class GetAliasResponse(TeaModel):
4839
4725
  def __init__(
4840
4726
  self,
@@ -6402,9 +6288,11 @@ class ListTaggedResourcesRequest(TeaModel):
6402
6288
  self,
6403
6289
  limit: int = None,
6404
6290
  next_token: str = None,
6291
+ resource_type: str = None,
6405
6292
  ):
6406
6293
  self.limit = limit
6407
6294
  self.next_token = next_token
6295
+ self.resource_type = resource_type
6408
6296
 
6409
6297
  def validate(self):
6410
6298
  pass
@@ -6419,6 +6307,8 @@ class ListTaggedResourcesRequest(TeaModel):
6419
6307
  result['limit'] = self.limit
6420
6308
  if self.next_token is not None:
6421
6309
  result['nextToken'] = self.next_token
6310
+ if self.resource_type is not None:
6311
+ result['resourceType'] = self.resource_type
6422
6312
  return result
6423
6313
 
6424
6314
  def from_map(self, m: dict = None):
@@ -6427,6 +6317,8 @@ class ListTaggedResourcesRequest(TeaModel):
6427
6317
  self.limit = m.get('limit')
6428
6318
  if m.get('nextToken') is not None:
6429
6319
  self.next_token = m.get('nextToken')
6320
+ if m.get('resourceType') is not None:
6321
+ self.resource_type = m.get('resourceType')
6430
6322
  return self
6431
6323
 
6432
6324
 
@@ -6557,6 +6449,50 @@ class ListTriggersResponse(TeaModel):
6557
6449
  return self
6558
6450
 
6559
6451
 
6452
+ class ListVpcBindingsResponse(TeaModel):
6453
+ def __init__(
6454
+ self,
6455
+ headers: Dict[str, str] = None,
6456
+ status_code: int = None,
6457
+ body: ListVpcBindingsOutput = None,
6458
+ ):
6459
+ self.headers = headers
6460
+ self.status_code = status_code
6461
+ self.body = body
6462
+
6463
+ def validate(self):
6464
+ self.validate_required(self.headers, 'headers')
6465
+ self.validate_required(self.status_code, 'status_code')
6466
+ self.validate_required(self.body, 'body')
6467
+ if self.body:
6468
+ self.body.validate()
6469
+
6470
+ def to_map(self):
6471
+ _map = super().to_map()
6472
+ if _map is not None:
6473
+ return _map
6474
+
6475
+ result = dict()
6476
+ if self.headers is not None:
6477
+ result['headers'] = self.headers
6478
+ if self.status_code is not None:
6479
+ result['statusCode'] = self.status_code
6480
+ if self.body is not None:
6481
+ result['body'] = self.body.to_map()
6482
+ return result
6483
+
6484
+ def from_map(self, m: dict = None):
6485
+ m = m or dict()
6486
+ if m.get('headers') is not None:
6487
+ self.headers = m.get('headers')
6488
+ if m.get('statusCode') is not None:
6489
+ self.status_code = m.get('statusCode')
6490
+ if m.get('body') is not None:
6491
+ temp_model = ListVpcBindingsOutput()
6492
+ self.body = temp_model.from_map(m['body'])
6493
+ return self
6494
+
6495
+
6560
6496
  class PublishFunctionVersionRequest(TeaModel):
6561
6497
  def __init__(
6562
6498
  self,
@@ -6956,18 +6892,13 @@ class TagResourceResponse(TeaModel):
6956
6892
  self,
6957
6893
  headers: Dict[str, str] = None,
6958
6894
  status_code: int = None,
6959
- body: Tag = None,
6960
6895
  ):
6961
6896
  self.headers = headers
6962
6897
  self.status_code = status_code
6963
- self.body = body
6964
6898
 
6965
6899
  def validate(self):
6966
6900
  self.validate_required(self.headers, 'headers')
6967
6901
  self.validate_required(self.status_code, 'status_code')
6968
- self.validate_required(self.body, 'body')
6969
- if self.body:
6970
- self.body.validate()
6971
6902
 
6972
6903
  def to_map(self):
6973
6904
  _map = super().to_map()
@@ -6979,8 +6910,6 @@ class TagResourceResponse(TeaModel):
6979
6910
  result['headers'] = self.headers
6980
6911
  if self.status_code is not None:
6981
6912
  result['statusCode'] = self.status_code
6982
- if self.body is not None:
6983
- result['body'] = self.body.to_map()
6984
6913
  return result
6985
6914
 
6986
6915
  def from_map(self, m: dict = None):
@@ -6989,9 +6918,6 @@ class TagResourceResponse(TeaModel):
6989
6918
  self.headers = m.get('headers')
6990
6919
  if m.get('statusCode') is not None:
6991
6920
  self.status_code = m.get('statusCode')
6992
- if m.get('body') is not None:
6993
- temp_model = Tag()
6994
- self.body = temp_model.from_map(m['body'])
6995
6921
  return self
6996
6922
 
6997
6923