tccli 3.0.1036.1__py2.py3-none-any.whl → 3.0.1037.1__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (282) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/examples/cdc/v20201214/DescribeDedicatedClusterHosts.md +2 -0
  3. tccli/examples/cdc/v20201214/DescribeDedicatedClusterOverview.md +59 -7
  4. tccli/examples/cdwch/v20200915/DescribeInstanceNodes.md +41 -0
  5. tccli/examples/cdwch/v20200915/DescribeSpec.md +27 -20
  6. tccli/examples/cwp/v20180228/CreateMalwareWhiteList.md +10 -4
  7. tccli/examples/cwp/v20180228/DescribeMachineFileTamperRules.md +9 -8
  8. tccli/examples/cwp/v20180228/ModifyLoginWhiteRecord.md +11 -10
  9. tccli/examples/hai/v20230812/DescribeApplications.md +6 -2
  10. tccli/examples/mrs/v20200910/ImageMaskAsync.md +25 -0
  11. tccli/examples/mrs/v20200910/ImageMaskAsyncGetResult.md +21 -0
  12. tccli/examples/tcss/v20201101/DescribeAssetSuperNodeList.md +41 -0
  13. tccli/examples/tcss/v20201101/DescribeClusterNodes.md +42 -0
  14. tccli/examples/tcss/v20201101/DescribeSuperNodePodList.md +41 -0
  15. tccli/examples/tcss/v20201101/DescribeUserPodList.md +56 -0
  16. tccli/services/aa/aa_client.py +2 -1
  17. tccli/services/aai/aai_client.py +5 -4
  18. tccli/services/acp/acp_client.py +9 -8
  19. tccli/services/advisor/advisor_client.py +3 -2
  20. tccli/services/af/af_client.py +4 -3
  21. tccli/services/afc/afc_client.py +4 -3
  22. tccli/services/aiart/aiart_client.py +3 -2
  23. tccli/services/aiart/v20221229/api.json +3 -3
  24. tccli/services/ame/ame_client.py +32 -31
  25. tccli/services/ams/ams_client.py +10 -9
  26. tccli/services/anicloud/anicloud_client.py +4 -3
  27. tccli/services/antiddos/antiddos_client.py +96 -95
  28. tccli/services/apcas/apcas_client.py +8 -7
  29. tccli/services/ape/ape_client.py +9 -8
  30. tccli/services/api/api_client.py +4 -3
  31. tccli/services/apigateway/apigateway_client.py +97 -96
  32. tccli/services/apm/apm_client.py +10 -9
  33. tccli/services/asr/asr_client.py +26 -25
  34. tccli/services/asw/asw_client.py +10 -9
  35. tccli/services/autoscaling/autoscaling_client.py +58 -57
  36. tccli/services/ba/ba_client.py +4 -3
  37. tccli/services/batch/batch_client.py +32 -31
  38. tccli/services/bda/bda_client.py +19 -18
  39. tccli/services/bi/bi_client.py +23 -22
  40. tccli/services/billing/billing_client.py +33 -32
  41. tccli/services/bizlive/bizlive_client.py +7 -6
  42. tccli/services/bm/bm_client.py +54 -53
  43. tccli/services/bma/bma_client.py +38 -37
  44. tccli/services/bmeip/bmeip_client.py +21 -20
  45. tccli/services/bmlb/bmlb_client.py +50 -49
  46. tccli/services/bmvpc/bmvpc_client.py +62 -61
  47. tccli/services/bpaas/bpaas_client.py +3 -2
  48. tccli/services/bri/bri_client.py +2 -1
  49. tccli/services/bsca/bsca_client.py +8 -7
  50. tccli/services/btoe/btoe_client.py +15 -14
  51. tccli/services/cam/cam_client.py +88 -87
  52. tccli/services/captcha/captcha_client.py +19 -18
  53. tccli/services/car/car_client.py +7 -6
  54. tccli/services/cat/cat_client.py +13 -12
  55. tccli/services/cbs/cbs_client.py +42 -41
  56. tccli/services/ccc/ccc_client.py +42 -41
  57. tccli/services/cdb/cdb_client.py +159 -158
  58. tccli/services/cdc/cdc_client.py +21 -20
  59. tccli/services/cdc/v20201214/api.json +110 -24
  60. tccli/services/cdc/v20201214/examples.json +2 -2
  61. tccli/services/cdn/cdn_client.py +82 -81
  62. tccli/services/cdn/v20180606/api.json +10 -1
  63. tccli/services/cds/cds_client.py +7 -6
  64. tccli/services/cdwch/cdwch_client.py +109 -55
  65. tccli/services/cdwch/v20200915/api.json +253 -3
  66. tccli/services/cdwch/v20200915/examples.json +10 -2
  67. tccli/services/cdwdoris/cdwdoris_client.py +18 -17
  68. tccli/services/cdwpg/cdwpg_client.py +9 -8
  69. tccli/services/cfg/cfg_client.py +13 -12
  70. tccli/services/cfs/cfs_client.py +44 -43
  71. tccli/services/cfw/cfw_client.py +112 -111
  72. tccli/services/chdfs/chdfs_client.py +30 -29
  73. tccli/services/ciam/ciam_client.py +24 -23
  74. tccli/services/cii/cii_client.py +14 -13
  75. tccli/services/cim/cim_client.py +2 -1
  76. tccli/services/cis/cis_client.py +8 -7
  77. tccli/services/ckafka/ckafka_client.py +82 -81
  78. tccli/services/clb/clb_client.py +86 -85
  79. tccli/services/cloudaudit/cloudaudit_client.py +20 -19
  80. tccli/services/cloudhsm/cloudhsm_client.py +15 -14
  81. tccli/services/cloudstudio/cloudstudio_client.py +10 -9
  82. tccli/services/cls/cls_client.py +90 -89
  83. tccli/services/cme/cme_client.py +51 -50
  84. tccli/services/cmq/cmq_client.py +18 -17
  85. tccli/services/cms/cms_client.py +7 -6
  86. tccli/services/config/config_client.py +4 -3
  87. tccli/services/cpdp/cpdp_client.py +220 -219
  88. tccli/services/cr/cr_client.py +29 -28
  89. tccli/services/csip/csip_client.py +35 -34
  90. tccli/services/csxg/csxg_client.py +6 -5
  91. tccli/services/cvm/cvm_client.py +95 -94
  92. tccli/services/cwp/cwp_client.py +519 -518
  93. tccli/services/cwp/v20180228/api.json +17 -16
  94. tccli/services/cwp/v20180228/examples.json +5 -5
  95. tccli/services/cws/cws_client.py +20 -19
  96. tccli/services/cynosdb/cynosdb_client.py +131 -130
  97. tccli/services/dasb/dasb_client.py +56 -55
  98. tccli/services/dataintegration/dataintegration_client.py +2 -1
  99. tccli/services/dayu/dayu_client.py +113 -112
  100. tccli/services/dbbrain/dbbrain_client.py +62 -61
  101. tccli/services/dbdc/dbdc_client.py +7 -6
  102. tccli/services/dc/dc_client.py +22 -21
  103. tccli/services/dcdb/dcdb_client.py +74 -73
  104. tccli/services/dlc/dlc_client.py +124 -123
  105. tccli/services/dnspod/dnspod_client.py +73 -72
  106. tccli/services/domain/domain_client.py +34 -33
  107. tccli/services/drm/drm_client.py +12 -11
  108. tccli/services/ds/ds_client.py +13 -12
  109. tccli/services/dsgc/dsgc_client.py +149 -148
  110. tccli/services/dtf/dtf_client.py +2 -1
  111. tccli/services/dts/dts_client.py +69 -68
  112. tccli/services/dts/v20211206/api.json +1 -0
  113. tccli/services/eb/eb_client.py +33 -32
  114. tccli/services/ecc/ecc_client.py +5 -4
  115. tccli/services/ecdn/ecdn_client.py +17 -16
  116. tccli/services/ecm/ecm_client.py +140 -139
  117. tccli/services/eiam/eiam_client.py +43 -42
  118. tccli/services/eis/eis_client.py +9 -8
  119. tccli/services/emr/emr_client.py +36 -35
  120. tccli/services/es/es_client.py +43 -42
  121. tccli/services/ess/ess_client.py +72 -71
  122. tccli/services/ess/v20201111/api.json +2 -2
  123. tccli/services/essbasic/essbasic_client.py +123 -122
  124. tccli/services/essbasic/v20210526/api.json +11 -11
  125. tccli/services/facefusion/facefusion_client.py +5 -4
  126. tccli/services/faceid/faceid_client.py +36 -35
  127. tccli/services/fmu/fmu_client.py +11 -10
  128. tccli/services/ft/ft_client.py +7 -6
  129. tccli/services/gaap/gaap_client.py +104 -103
  130. tccli/services/gme/gme_client.py +29 -28
  131. tccli/services/goosefs/goosefs_client.py +21 -20
  132. tccli/services/gpm/gpm_client.py +19 -18
  133. tccli/services/gs/gs_client.py +9 -8
  134. tccli/services/gse/gse_client.py +75 -74
  135. tccli/services/habo/habo_client.py +3 -2
  136. tccli/services/hai/hai_client.py +12 -11
  137. tccli/services/hai/v20230812/api.json +59 -1
  138. tccli/services/hai/v20230812/examples.json +1 -1
  139. tccli/services/hasim/hasim_client.py +23 -22
  140. tccli/services/hcm/hcm_client.py +2 -1
  141. tccli/services/hunyuan/hunyuan_client.py +4 -3
  142. tccli/services/iai/iai_client.py +36 -35
  143. tccli/services/ic/ic_client.py +10 -9
  144. tccli/services/icr/icr_client.py +2 -1
  145. tccli/services/ie/ie_client.py +11 -10
  146. tccli/services/iecp/iecp_client.py +103 -102
  147. tccli/services/iir/iir_client.py +2 -1
  148. tccli/services/ims/ims_client.py +3 -2
  149. tccli/services/ioa/ioa_client.py +2 -1
  150. tccli/services/iot/iot_client.py +46 -45
  151. tccli/services/iotcloud/iotcloud_client.py +86 -85
  152. tccli/services/iotexplorer/iotexplorer_client.py +93 -92
  153. tccli/services/iottid/iottid_client.py +10 -9
  154. tccli/services/iotvideo/iotvideo_client.py +158 -157
  155. tccli/services/iotvideoindustry/iotvideoindustry_client.py +105 -104
  156. tccli/services/irp/irp_client.py +12 -11
  157. tccli/services/iss/iss_client.py +83 -82
  158. tccli/services/ivld/ivld_client.py +26 -25
  159. tccli/services/keewidb/keewidb_client.py +39 -38
  160. tccli/services/kms/kms_client.py +54 -53
  161. tccli/services/lcic/lcic_client.py +61 -60
  162. tccli/services/lighthouse/lighthouse_client.py +108 -107
  163. tccli/services/lighthouse/v20200324/api.json +1 -1
  164. tccli/services/live/live_client.py +154 -153
  165. tccli/services/lowcode/lowcode_client.py +2 -1
  166. tccli/services/lp/lp_client.py +2 -1
  167. tccli/services/mall/mall_client.py +2 -1
  168. tccli/services/mariadb/mariadb_client.py +73 -72
  169. tccli/services/market/market_client.py +3 -2
  170. tccli/services/memcached/memcached_client.py +2 -1
  171. tccli/services/mgobe/mgobe_client.py +8 -7
  172. tccli/services/mmps/mmps_client.py +16 -15
  173. tccli/services/mna/mna_client.py +24 -23
  174. tccli/services/mongodb/mongodb_client.py +43 -42
  175. tccli/services/monitor/monitor_client.py +151 -150
  176. tccli/services/mps/mps_client.py +101 -100
  177. tccli/services/mrs/mrs_client.py +115 -8
  178. tccli/services/mrs/v20200910/api.json +97 -0
  179. tccli/services/mrs/v20200910/examples.json +16 -0
  180. tccli/services/ms/ms_client.py +24 -23
  181. tccli/services/msp/msp_client.py +8 -7
  182. tccli/services/mvj/mvj_client.py +2 -1
  183. tccli/services/nlp/nlp_client.py +13 -12
  184. tccli/services/npp/npp_client.py +9 -8
  185. tccli/services/oceanus/oceanus_client.py +39 -38
  186. tccli/services/oceanus/v20190422/api.json +4 -4
  187. tccli/services/ocr/ocr_client.py +82 -81
  188. tccli/services/omics/omics_client.py +16 -15
  189. tccli/services/organization/organization_client.py +48 -47
  190. tccli/services/partners/partners_client.py +20 -19
  191. tccli/services/pds/pds_client.py +3 -2
  192. tccli/services/postgres/postgres_client.py +91 -90
  193. tccli/services/privatedns/privatedns_client.py +26 -25
  194. tccli/services/pts/pts_client.py +45 -44
  195. tccli/services/rce/rce_client.py +4 -3
  196. tccli/services/redis/redis_client.py +96 -95
  197. tccli/services/region/region_client.py +4 -3
  198. tccli/services/rkp/rkp_client.py +4 -3
  199. tccli/services/rp/rp_client.py +2 -1
  200. tccli/services/rum/rum_client.py +66 -65
  201. tccli/services/scf/scf_client.py +47 -46
  202. tccli/services/ses/ses_client.py +28 -27
  203. tccli/services/smh/smh_client.py +11 -10
  204. tccli/services/smop/smop_client.py +2 -1
  205. tccli/services/smpn/smpn_client.py +6 -5
  206. tccli/services/sms/sms_client.py +19 -18
  207. tccli/services/soe/soe_client.py +5 -4
  208. tccli/services/solar/solar_client.py +18 -17
  209. tccli/services/sqlserver/sqlserver_client.py +145 -144
  210. tccli/services/ssa/ssa_client.py +24 -23
  211. tccli/services/ssl/ssl_client.py +58 -57
  212. tccli/services/sslpod/sslpod_client.py +11 -10
  213. tccli/services/ssm/ssm_client.py +25 -24
  214. tccli/services/sts/sts_client.py +7 -6
  215. tccli/services/taf/taf_client.py +4 -3
  216. tccli/services/tag/tag_client.py +32 -31
  217. tccli/services/tan/tan_client.py +2 -1
  218. tccli/services/tat/tat_client.py +29 -28
  219. tccli/services/tav/tav_client.py +5 -4
  220. tccli/services/tbaas/tbaas_client.py +26 -25
  221. tccli/services/tbm/tbm_client.py +10 -9
  222. tccli/services/tbp/tbp_client.py +5 -4
  223. tccli/services/tcaplusdb/tcaplusdb_client.py +54 -53
  224. tccli/services/tcb/tcb_client.py +90 -89
  225. tccli/services/tcbr/tcbr_client.py +11 -10
  226. tccli/services/tcex/tcex_client.py +3 -2
  227. tccli/services/tchd/tchd_client.py +2 -1
  228. tccli/services/tci/tci_client.py +42 -41
  229. tccli/services/tcm/tcm_client.py +13 -12
  230. tccli/services/tcr/tcr_client.py +110 -109
  231. tccli/services/tcss/tcss_client.py +558 -345
  232. tccli/services/tcss/v20201101/api.json +1200 -0
  233. tccli/services/tcss/v20201101/examples.json +32 -0
  234. tccli/services/tdcpg/tdcpg_client.py +26 -25
  235. tccli/services/tdid/tdid_client.py +14 -13
  236. tccli/services/tdmq/tdmq_client.py +128 -127
  237. tccli/services/tds/tds_client.py +5 -4
  238. tccli/services/tem/tem_client.py +61 -60
  239. tccli/services/teo/teo_client.py +79 -78
  240. tccli/services/thpc/thpc_client.py +19 -18
  241. tccli/services/tia/tia_client.py +11 -10
  242. tccli/services/tic/tic_client.py +14 -13
  243. tccli/services/ticm/ticm_client.py +4 -3
  244. tccli/services/tics/tics_client.py +5 -4
  245. tccli/services/tiems/tiems_client.py +26 -25
  246. tccli/services/tiia/tiia_client.py +24 -23
  247. tccli/services/tione/tione_client.py +98 -97
  248. tccli/services/tiw/tiw_client.py +61 -60
  249. tccli/services/tke/tke_client.py +219 -218
  250. tccli/services/tkgdq/tkgdq_client.py +4 -3
  251. tccli/services/tms/tms_client.py +6 -5
  252. tccli/services/tmt/tmt_client.py +8 -7
  253. tccli/services/tourism/tourism_client.py +2 -1
  254. tccli/services/trdp/trdp_client.py +2 -1
  255. tccli/services/trocket/trocket_client.py +23 -22
  256. tccli/services/trp/trp_client.py +54 -53
  257. tccli/services/trro/trro_client.py +24 -23
  258. tccli/services/trtc/trtc_client.py +44 -43
  259. tccli/services/tse/tse_client.py +66 -65
  260. tccli/services/tsf/tsf_client.py +220 -219
  261. tccli/services/tsw/tsw_client.py +5 -4
  262. tccli/services/tts/tts_client.py +4 -3
  263. tccli/services/ump/ump_client.py +18 -17
  264. tccli/services/vm/vm_client.py +7 -6
  265. tccli/services/vms/vms_client.py +3 -2
  266. tccli/services/vod/vod_client.py +169 -168
  267. tccli/services/vpc/vpc_client.py +317 -316
  268. tccli/services/vrs/vrs_client.py +8 -7
  269. tccli/services/waf/waf_client.py +133 -132
  270. tccli/services/wav/wav_client.py +27 -26
  271. tccli/services/wedata/wedata_client.py +319 -318
  272. tccli/services/weilingwith/weilingwith_client.py +58 -57
  273. tccli/services/wss/wss_client.py +4 -3
  274. tccli/services/yinsuda/yinsuda_client.py +21 -20
  275. tccli/services/youmall/youmall_client.py +32 -31
  276. tccli/services/yunjing/yunjing_client.py +101 -100
  277. tccli/services/yunsou/yunsou_client.py +3 -2
  278. {tccli-3.0.1036.1.dist-info → tccli-3.0.1037.1.dist-info}/METADATA +2 -2
  279. {tccli-3.0.1036.1.dist-info → tccli-3.0.1037.1.dist-info}/RECORD +282 -275
  280. {tccli-3.0.1036.1.dist-info → tccli-3.0.1037.1.dist-info}/WHEEL +0 -0
  281. {tccli-3.0.1036.1.dist-info → tccli-3.0.1037.1.dist-info}/entry_points.txt +0 -0
  282. {tccli-3.0.1036.1.dist-info → tccli-3.0.1037.1.dist-info}/license_files/LICENSE +0 -0
@@ -27,7 +27,7 @@ def doModifySubscribeConsumeTime(args, parsed_globals):
27
27
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
28
28
  cred = credential.STSAssumeRoleCredential(
29
29
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
30
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
30
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
31
31
  )
32
32
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
33
33
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -79,7 +79,7 @@ def doCreateModifyCheckSyncJob(args, parsed_globals):
79
79
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
80
80
  cred = credential.STSAssumeRoleCredential(
81
81
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
82
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
82
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
83
83
  )
84
84
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
85
85
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -131,7 +131,7 @@ def doModifyMigrationJob(args, parsed_globals):
131
131
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
132
132
  cred = credential.STSAssumeRoleCredential(
133
133
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
134
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
134
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
135
135
  )
136
136
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
137
137
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -183,7 +183,7 @@ def doDescribeSyncJobs(args, parsed_globals):
183
183
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
184
184
  cred = credential.STSAssumeRoleCredential(
185
185
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
186
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
186
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
187
187
  )
188
188
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
189
189
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -235,7 +235,7 @@ def doModifyMigrateRuntimeAttribute(args, parsed_globals):
235
235
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
236
236
  cred = credential.STSAssumeRoleCredential(
237
237
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
238
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
238
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
239
239
  )
240
240
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
241
241
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -287,7 +287,7 @@ def doCreateMigrationService(args, parsed_globals):
287
287
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
288
288
  cred = credential.STSAssumeRoleCredential(
289
289
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
290
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
290
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
291
291
  )
292
292
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
293
293
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -339,7 +339,7 @@ def doModifyMigrateRateLimit(args, parsed_globals):
339
339
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
340
340
  cred = credential.STSAssumeRoleCredential(
341
341
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
342
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
342
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
343
343
  )
344
344
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
345
345
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -391,7 +391,7 @@ def doDeleteMigrateJob(args, parsed_globals):
391
391
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
392
392
  cred = credential.STSAssumeRoleCredential(
393
393
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
394
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
394
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
395
395
  )
396
396
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
397
397
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -443,7 +443,7 @@ def doIsolateSyncJob(args, parsed_globals):
443
443
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
444
444
  cred = credential.STSAssumeRoleCredential(
445
445
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
446
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
446
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
447
447
  )
448
448
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
449
449
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -495,7 +495,7 @@ def doStopCompare(args, parsed_globals):
495
495
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
496
496
  cred = credential.STSAssumeRoleCredential(
497
497
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
498
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
498
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
499
499
  )
500
500
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
501
501
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -547,7 +547,7 @@ def doCreateSyncJob(args, parsed_globals):
547
547
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
548
548
  cred = credential.STSAssumeRoleCredential(
549
549
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
550
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
550
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
551
551
  )
552
552
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
553
553
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -599,7 +599,7 @@ def doDeleteCompareTask(args, parsed_globals):
599
599
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
600
600
  cred = credential.STSAssumeRoleCredential(
601
601
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
602
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
602
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
603
603
  )
604
604
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
605
605
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -651,7 +651,7 @@ def doStartSyncJob(args, parsed_globals):
651
651
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
652
652
  cred = credential.STSAssumeRoleCredential(
653
653
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
654
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
654
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
655
655
  )
656
656
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
657
657
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -703,7 +703,7 @@ def doCreateCheckSyncJob(args, parsed_globals):
703
703
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
704
704
  cred = credential.STSAssumeRoleCredential(
705
705
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
706
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
706
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
707
707
  )
708
708
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
709
709
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -755,7 +755,7 @@ def doDescribeCompareReport(args, parsed_globals):
755
755
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
756
756
  cred = credential.STSAssumeRoleCredential(
757
757
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
758
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
758
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
759
759
  )
760
760
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
761
761
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -807,7 +807,7 @@ def doContinueMigrateJob(args, parsed_globals):
807
807
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
808
808
  cred = credential.STSAssumeRoleCredential(
809
809
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
810
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
810
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
811
811
  )
812
812
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
813
813
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -859,7 +859,7 @@ def doModifyCompareTask(args, parsed_globals):
859
859
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
860
860
  cred = credential.STSAssumeRoleCredential(
861
861
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
862
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
862
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
863
863
  )
864
864
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
865
865
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -911,7 +911,7 @@ def doPauseMigrateJob(args, parsed_globals):
911
911
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
912
912
  cred = credential.STSAssumeRoleCredential(
913
913
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
914
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
914
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
915
915
  )
916
916
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
917
917
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -963,7 +963,7 @@ def doDescribeMigrateCheckJob(args, parsed_globals):
963
963
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
964
964
  cred = credential.STSAssumeRoleCredential(
965
965
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
966
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
966
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
967
967
  )
968
968
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
969
969
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -1015,7 +1015,7 @@ def doModifySubscribeObjects(args, parsed_globals):
1015
1015
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1016
1016
  cred = credential.STSAssumeRoleCredential(
1017
1017
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1018
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
1018
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1019
1019
  )
1020
1020
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1021
1021
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -1067,7 +1067,7 @@ def doConfigureSyncJob(args, parsed_globals):
1067
1067
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1068
1068
  cred = credential.STSAssumeRoleCredential(
1069
1069
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1070
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
1070
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1071
1071
  )
1072
1072
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1073
1073
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -1119,7 +1119,7 @@ def doIsolateSubscribe(args, parsed_globals):
1119
1119
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1120
1120
  cred = credential.STSAssumeRoleCredential(
1121
1121
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1122
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
1122
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1123
1123
  )
1124
1124
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1125
1125
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -1171,7 +1171,7 @@ def doResizeSyncJob(args, parsed_globals):
1171
1171
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1172
1172
  cred = credential.STSAssumeRoleCredential(
1173
1173
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1174
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
1174
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1175
1175
  )
1176
1176
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1177
1177
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -1223,7 +1223,7 @@ def doModifySubscribeAutoRenewFlag(args, parsed_globals):
1223
1223
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1224
1224
  cred = credential.STSAssumeRoleCredential(
1225
1225
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1226
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
1226
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1227
1227
  )
1228
1228
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1229
1229
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -1275,7 +1275,7 @@ def doModifySyncJobConfig(args, parsed_globals):
1275
1275
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1276
1276
  cred = credential.STSAssumeRoleCredential(
1277
1277
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1278
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
1278
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1279
1279
  )
1280
1280
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1281
1281
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -1327,7 +1327,7 @@ def doResumeMigrateJob(args, parsed_globals):
1327
1327
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1328
1328
  cred = credential.STSAssumeRoleCredential(
1329
1329
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1330
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
1330
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1331
1331
  )
1332
1332
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1333
1333
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -1379,7 +1379,7 @@ def doStopMigrateJob(args, parsed_globals):
1379
1379
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1380
1380
  cred = credential.STSAssumeRoleCredential(
1381
1381
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1382
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
1382
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1383
1383
  )
1384
1384
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1385
1385
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -1431,7 +1431,7 @@ def doDescribeRegionConf(args, parsed_globals):
1431
1431
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1432
1432
  cred = credential.STSAssumeRoleCredential(
1433
1433
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1434
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
1434
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1435
1435
  )
1436
1436
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1437
1437
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -1483,7 +1483,7 @@ def doPauseSyncJob(args, parsed_globals):
1483
1483
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1484
1484
  cred = credential.STSAssumeRoleCredential(
1485
1485
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1486
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
1486
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1487
1487
  )
1488
1488
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1489
1489
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -1535,7 +1535,7 @@ def doStartModifySyncJob(args, parsed_globals):
1535
1535
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1536
1536
  cred = credential.STSAssumeRoleCredential(
1537
1537
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1538
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
1538
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1539
1539
  )
1540
1540
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1541
1541
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -1587,7 +1587,7 @@ def doDescribeSubscribes(args, parsed_globals):
1587
1587
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1588
1588
  cred = credential.STSAssumeRoleCredential(
1589
1589
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1590
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
1590
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1591
1591
  )
1592
1592
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1593
1593
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -1639,7 +1639,7 @@ def doStartCompare(args, parsed_globals):
1639
1639
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1640
1640
  cred = credential.STSAssumeRoleCredential(
1641
1641
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1642
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
1642
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1643
1643
  )
1644
1644
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1645
1645
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -1691,7 +1691,7 @@ def doModifySubscribeName(args, parsed_globals):
1691
1691
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1692
1692
  cred = credential.STSAssumeRoleCredential(
1693
1693
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1694
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
1694
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1695
1695
  )
1696
1696
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1697
1697
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -1743,7 +1743,7 @@ def doContinueSyncJob(args, parsed_globals):
1743
1743
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1744
1744
  cred = credential.STSAssumeRoleCredential(
1745
1745
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1746
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
1746
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1747
1747
  )
1748
1748
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1749
1749
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -1795,7 +1795,7 @@ def doStopSyncJob(args, parsed_globals):
1795
1795
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1796
1796
  cred = credential.STSAssumeRoleCredential(
1797
1797
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1798
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
1798
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1799
1799
  )
1800
1800
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1801
1801
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -1847,7 +1847,7 @@ def doActivateSubscribe(args, parsed_globals):
1847
1847
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1848
1848
  cred = credential.STSAssumeRoleCredential(
1849
1849
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1850
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
1850
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1851
1851
  )
1852
1852
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1853
1853
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -1899,7 +1899,7 @@ def doDescribeMigrateDBInstances(args, parsed_globals):
1899
1899
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1900
1900
  cred = credential.STSAssumeRoleCredential(
1901
1901
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1902
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
1902
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1903
1903
  )
1904
1904
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1905
1905
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -1951,7 +1951,7 @@ def doSkipCheckItem(args, parsed_globals):
1951
1951
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1952
1952
  cred = credential.STSAssumeRoleCredential(
1953
1953
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1954
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
1954
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1955
1955
  )
1956
1956
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1957
1957
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -2003,7 +2003,7 @@ def doCreateMigrateJob(args, parsed_globals):
2003
2003
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2004
2004
  cred = credential.STSAssumeRoleCredential(
2005
2005
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2006
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2006
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2007
2007
  )
2008
2008
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2009
2009
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -2055,7 +2055,7 @@ def doModifySubscribeVipVport(args, parsed_globals):
2055
2055
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2056
2056
  cred = credential.STSAssumeRoleCredential(
2057
2057
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2058
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2058
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2059
2059
  )
2060
2060
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2061
2061
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -2107,7 +2107,7 @@ def doCreateMigrateCheckJob(args, parsed_globals):
2107
2107
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2108
2108
  cred = credential.STSAssumeRoleCredential(
2109
2109
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2110
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2110
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2111
2111
  )
2112
2112
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2113
2113
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -2159,7 +2159,7 @@ def doIsolateMigrateJob(args, parsed_globals):
2159
2159
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2160
2160
  cred = credential.STSAssumeRoleCredential(
2161
2161
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2162
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2162
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2163
2163
  )
2164
2164
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2165
2165
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -2211,7 +2211,7 @@ def doDescribeCheckSyncJobResult(args, parsed_globals):
2211
2211
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2212
2212
  cred = credential.STSAssumeRoleCredential(
2213
2213
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2214
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2214
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2215
2215
  )
2216
2216
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2217
2217
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -2263,7 +2263,7 @@ def doDescribeCompareTasks(args, parsed_globals):
2263
2263
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2264
2264
  cred = credential.STSAssumeRoleCredential(
2265
2265
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2266
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2266
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2267
2267
  )
2268
2268
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2269
2269
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -2315,7 +2315,7 @@ def doSkipSyncCheckItem(args, parsed_globals):
2315
2315
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2316
2316
  cred = credential.STSAssumeRoleCredential(
2317
2317
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2318
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2318
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2319
2319
  )
2320
2320
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2321
2321
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -2367,7 +2367,7 @@ def doDescribeMigrateJobs(args, parsed_globals):
2367
2367
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2368
2368
  cred = credential.STSAssumeRoleCredential(
2369
2369
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2370
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2370
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2371
2371
  )
2372
2372
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2373
2373
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -2419,7 +2419,7 @@ def doDescribeMigrationJobs(args, parsed_globals):
2419
2419
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2420
2420
  cred = credential.STSAssumeRoleCredential(
2421
2421
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2422
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2422
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2423
2423
  )
2424
2424
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2425
2425
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -2471,7 +2471,7 @@ def doRecoverMigrateJob(args, parsed_globals):
2471
2471
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2472
2472
  cred = credential.STSAssumeRoleCredential(
2473
2473
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2474
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2474
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2475
2475
  )
2476
2476
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2477
2477
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -2523,7 +2523,7 @@ def doCreateSubscribe(args, parsed_globals):
2523
2523
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2524
2524
  cred = credential.STSAssumeRoleCredential(
2525
2525
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2526
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2526
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2527
2527
  )
2528
2528
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2529
2529
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -2575,7 +2575,7 @@ def doRecoverSyncJob(args, parsed_globals):
2575
2575
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2576
2576
  cred = credential.STSAssumeRoleCredential(
2577
2577
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2578
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2578
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2579
2579
  )
2580
2580
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2581
2581
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -2627,7 +2627,7 @@ def doResetSubscribe(args, parsed_globals):
2627
2627
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2628
2628
  cred = credential.STSAssumeRoleCredential(
2629
2629
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2630
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2630
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2631
2631
  )
2632
2632
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2633
2633
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -2679,7 +2679,7 @@ def doCreateCompareTask(args, parsed_globals):
2679
2679
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2680
2680
  cred = credential.STSAssumeRoleCredential(
2681
2681
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2682
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2682
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2683
2683
  )
2684
2684
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2685
2685
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -2731,7 +2731,7 @@ def doDescribeModifyCheckSyncJobResult(args, parsed_globals):
2731
2731
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2732
2732
  cred = credential.STSAssumeRoleCredential(
2733
2733
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2734
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2734
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2735
2735
  )
2736
2736
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2737
2737
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -2783,7 +2783,7 @@ def doModifyMigrateJob(args, parsed_globals):
2783
2783
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2784
2784
  cred = credential.STSAssumeRoleCredential(
2785
2785
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2786
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2786
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2787
2787
  )
2788
2788
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2789
2789
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -2835,7 +2835,7 @@ def doDestroyMigrateJob(args, parsed_globals):
2835
2835
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2836
2836
  cred = credential.STSAssumeRoleCredential(
2837
2837
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2838
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2838
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2839
2839
  )
2840
2840
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2841
2841
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -2887,7 +2887,7 @@ def doOfflineIsolatedSubscribe(args, parsed_globals):
2887
2887
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2888
2888
  cred = credential.STSAssumeRoleCredential(
2889
2889
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2890
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2890
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2891
2891
  )
2892
2892
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2893
2893
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -2939,7 +2939,7 @@ def doDescribeMigrationDetail(args, parsed_globals):
2939
2939
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2940
2940
  cred = credential.STSAssumeRoleCredential(
2941
2941
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2942
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2942
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2943
2943
  )
2944
2944
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2945
2945
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -2991,7 +2991,7 @@ def doDescribeSubscribeConf(args, parsed_globals):
2991
2991
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2992
2992
  cred = credential.STSAssumeRoleCredential(
2993
2993
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2994
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2994
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2995
2995
  )
2996
2996
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2997
2997
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -3043,7 +3043,7 @@ def doModifySyncRateLimit(args, parsed_globals):
3043
3043
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3044
3044
  cred = credential.STSAssumeRoleCredential(
3045
3045
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3046
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
3046
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3047
3047
  )
3048
3048
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3049
3049
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -3095,7 +3095,7 @@ def doResumeSyncJob(args, parsed_globals):
3095
3095
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3096
3096
  cred = credential.STSAssumeRoleCredential(
3097
3097
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3098
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
3098
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3099
3099
  )
3100
3100
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3101
3101
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -3147,7 +3147,7 @@ def doDescribeMigrationCheckJob(args, parsed_globals):
3147
3147
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3148
3148
  cred = credential.STSAssumeRoleCredential(
3149
3149
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3150
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
3150
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3151
3151
  )
3152
3152
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3153
3153
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -3199,7 +3199,7 @@ def doStartMigrateJob(args, parsed_globals):
3199
3199
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3200
3200
  cred = credential.STSAssumeRoleCredential(
3201
3201
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3202
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
3202
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3203
3203
  )
3204
3204
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3205
3205
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -3251,7 +3251,7 @@ def doModifyMigrateJobSpec(args, parsed_globals):
3251
3251
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3252
3252
  cred = credential.STSAssumeRoleCredential(
3253
3253
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3254
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
3254
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3255
3255
  )
3256
3256
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3257
3257
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -3303,7 +3303,7 @@ def doDescribeAsyncRequestInfo(args, parsed_globals):
3303
3303
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3304
3304
  cred = credential.STSAssumeRoleCredential(
3305
3305
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3306
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
3306
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3307
3307
  )
3308
3308
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3309
3309
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -3355,7 +3355,7 @@ def doDestroySyncJob(args, parsed_globals):
3355
3355
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3356
3356
  cred = credential.STSAssumeRoleCredential(
3357
3357
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3358
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
3358
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3359
3359
  )
3360
3360
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3361
3361
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -3407,7 +3407,7 @@ def doModifyCompareTaskName(args, parsed_globals):
3407
3407
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3408
3408
  cred = credential.STSAssumeRoleCredential(
3409
3409
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3410
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
3410
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3411
3411
  )
3412
3412
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3413
3413
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -3459,7 +3459,7 @@ def doModifyMigrateName(args, parsed_globals):
3459
3459
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3460
3460
  cred = credential.STSAssumeRoleCredential(
3461
3461
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3462
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
3462
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3463
3463
  )
3464
3464
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3465
3465
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -3511,7 +3511,7 @@ def doCompleteMigrateJob(args, parsed_globals):
3511
3511
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3512
3512
  cred = credential.STSAssumeRoleCredential(
3513
3513
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3514
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
3514
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3515
3515
  )
3516
3516
  elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3517
3517
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -3717,6 +3717,7 @@ def parse_global_arg(parsed_globals):
3717
3717
 
3718
3718
  if g_param[OptionsDefine.Endpoint] is None:
3719
3719
  g_param[OptionsDefine.Endpoint] = conf["dts"][OptionsDefine.Endpoint]
3720
+ g_param["sts_cred_endpoint"] = conf.get("sts", {}).get("endpoint")
3720
3721
  except Exception as err:
3721
3722
  raise ConfigurationError("config file:%s error, %s" % (conf_path, str(err)))
3722
3723