tccli 3.0.1035.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 (292) 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/examples/tms/v20201229/ModerateText.md +80 -0
  17. tccli/examples/vod/v20180717/PullEvents.md +2 -1
  18. tccli/services/aa/aa_client.py +2 -1
  19. tccli/services/aai/aai_client.py +5 -4
  20. tccli/services/acp/acp_client.py +9 -8
  21. tccli/services/advisor/advisor_client.py +3 -2
  22. tccli/services/af/af_client.py +4 -3
  23. tccli/services/afc/afc_client.py +4 -3
  24. tccli/services/aiart/aiart_client.py +3 -2
  25. tccli/services/aiart/v20221229/api.json +3 -3
  26. tccli/services/ame/ame_client.py +32 -31
  27. tccli/services/ams/ams_client.py +10 -9
  28. tccli/services/anicloud/anicloud_client.py +4 -3
  29. tccli/services/antiddos/antiddos_client.py +96 -95
  30. tccli/services/apcas/apcas_client.py +8 -7
  31. tccli/services/ape/ape_client.py +9 -8
  32. tccli/services/api/api_client.py +4 -3
  33. tccli/services/apigateway/apigateway_client.py +97 -96
  34. tccli/services/apm/apm_client.py +10 -9
  35. tccli/services/asr/asr_client.py +26 -25
  36. tccli/services/asw/asw_client.py +10 -9
  37. tccli/services/autoscaling/autoscaling_client.py +58 -57
  38. tccli/services/ba/ba_client.py +4 -3
  39. tccli/services/batch/batch_client.py +32 -31
  40. tccli/services/batch/v20170312/api.json +3 -3
  41. tccli/services/bda/bda_client.py +19 -18
  42. tccli/services/bi/bi_client.py +23 -22
  43. tccli/services/billing/billing_client.py +33 -32
  44. tccli/services/bizlive/bizlive_client.py +7 -6
  45. tccli/services/bm/bm_client.py +54 -53
  46. tccli/services/bma/bma_client.py +38 -37
  47. tccli/services/bmeip/bmeip_client.py +21 -20
  48. tccli/services/bmlb/bmlb_client.py +50 -49
  49. tccli/services/bmvpc/bmvpc_client.py +62 -61
  50. tccli/services/bpaas/bpaas_client.py +3 -2
  51. tccli/services/bri/bri_client.py +2 -1
  52. tccli/services/bsca/bsca_client.py +8 -7
  53. tccli/services/btoe/btoe_client.py +15 -14
  54. tccli/services/cam/cam_client.py +88 -87
  55. tccli/services/captcha/captcha_client.py +19 -18
  56. tccli/services/car/car_client.py +7 -6
  57. tccli/services/cat/cat_client.py +13 -12
  58. tccli/services/cbs/cbs_client.py +42 -41
  59. tccli/services/ccc/ccc_client.py +42 -41
  60. tccli/services/cdb/cdb_client.py +159 -158
  61. tccli/services/cdb/v20170320/api.json +1 -1
  62. tccli/services/cdc/cdc_client.py +21 -20
  63. tccli/services/cdc/v20201214/api.json +113 -27
  64. tccli/services/cdc/v20201214/examples.json +2 -2
  65. tccli/services/cdn/cdn_client.py +82 -81
  66. tccli/services/cdn/v20180606/api.json +10 -1
  67. tccli/services/cds/cds_client.py +7 -6
  68. tccli/services/cdwch/cdwch_client.py +109 -55
  69. tccli/services/cdwch/v20200915/api.json +253 -3
  70. tccli/services/cdwch/v20200915/examples.json +10 -2
  71. tccli/services/cdwdoris/cdwdoris_client.py +18 -17
  72. tccli/services/cdwdoris/v20211228/api.json +1 -1
  73. tccli/services/cdwpg/cdwpg_client.py +9 -8
  74. tccli/services/cfg/cfg_client.py +13 -12
  75. tccli/services/cfs/cfs_client.py +44 -43
  76. tccli/services/cfw/cfw_client.py +112 -111
  77. tccli/services/chdfs/chdfs_client.py +30 -29
  78. tccli/services/ciam/ciam_client.py +24 -23
  79. tccli/services/cii/cii_client.py +14 -13
  80. tccli/services/cim/cim_client.py +2 -1
  81. tccli/services/cis/cis_client.py +8 -7
  82. tccli/services/ckafka/ckafka_client.py +82 -81
  83. tccli/services/clb/clb_client.py +86 -85
  84. tccli/services/cloudaudit/cloudaudit_client.py +20 -19
  85. tccli/services/cloudhsm/cloudhsm_client.py +15 -14
  86. tccli/services/cloudstudio/cloudstudio_client.py +10 -9
  87. tccli/services/cls/cls_client.py +90 -89
  88. tccli/services/cme/cme_client.py +51 -50
  89. tccli/services/cmq/cmq_client.py +18 -17
  90. tccli/services/cms/cms_client.py +7 -6
  91. tccli/services/config/config_client.py +4 -3
  92. tccli/services/cpdp/cpdp_client.py +220 -219
  93. tccli/services/cr/cr_client.py +29 -28
  94. tccli/services/csip/csip_client.py +35 -34
  95. tccli/services/csxg/csxg_client.py +6 -5
  96. tccli/services/cvm/cvm_client.py +95 -94
  97. tccli/services/cvm/v20170312/api.json +6 -4
  98. tccli/services/cwp/cwp_client.py +519 -518
  99. tccli/services/cwp/v20180228/api.json +17 -16
  100. tccli/services/cwp/v20180228/examples.json +5 -5
  101. tccli/services/cws/cws_client.py +20 -19
  102. tccli/services/cynosdb/cynosdb_client.py +131 -130
  103. tccli/services/dasb/dasb_client.py +56 -55
  104. tccli/services/dataintegration/dataintegration_client.py +2 -1
  105. tccli/services/dayu/dayu_client.py +113 -112
  106. tccli/services/dbbrain/dbbrain_client.py +62 -61
  107. tccli/services/dbdc/dbdc_client.py +7 -6
  108. tccli/services/dc/dc_client.py +22 -21
  109. tccli/services/dcdb/dcdb_client.py +74 -73
  110. tccli/services/dlc/dlc_client.py +124 -123
  111. tccli/services/dnspod/dnspod_client.py +73 -72
  112. tccli/services/domain/domain_client.py +34 -33
  113. tccli/services/drm/drm_client.py +12 -11
  114. tccli/services/ds/ds_client.py +13 -12
  115. tccli/services/dsgc/dsgc_client.py +149 -148
  116. tccli/services/dtf/dtf_client.py +2 -1
  117. tccli/services/dts/dts_client.py +69 -68
  118. tccli/services/dts/v20211206/api.json +1 -0
  119. tccli/services/eb/eb_client.py +33 -32
  120. tccli/services/ecc/ecc_client.py +5 -4
  121. tccli/services/ecdn/ecdn_client.py +17 -16
  122. tccli/services/ecm/ecm_client.py +140 -139
  123. tccli/services/eiam/eiam_client.py +43 -42
  124. tccli/services/eis/eis_client.py +9 -8
  125. tccli/services/emr/emr_client.py +36 -35
  126. tccli/services/es/es_client.py +43 -42
  127. tccli/services/ess/ess_client.py +72 -71
  128. tccli/services/ess/v20201111/api.json +2 -2
  129. tccli/services/essbasic/essbasic_client.py +123 -122
  130. tccli/services/essbasic/v20210526/api.json +11 -11
  131. tccli/services/facefusion/facefusion_client.py +5 -4
  132. tccli/services/faceid/faceid_client.py +36 -35
  133. tccli/services/fmu/fmu_client.py +11 -10
  134. tccli/services/ft/ft_client.py +7 -6
  135. tccli/services/gaap/gaap_client.py +104 -103
  136. tccli/services/gme/gme_client.py +29 -28
  137. tccli/services/goosefs/goosefs_client.py +21 -20
  138. tccli/services/gpm/gpm_client.py +19 -18
  139. tccli/services/gs/gs_client.py +9 -8
  140. tccli/services/gse/gse_client.py +75 -74
  141. tccli/services/habo/habo_client.py +3 -2
  142. tccli/services/hai/hai_client.py +12 -11
  143. tccli/services/hai/v20230812/api.json +59 -1
  144. tccli/services/hai/v20230812/examples.json +1 -1
  145. tccli/services/hasim/hasim_client.py +23 -22
  146. tccli/services/hcm/hcm_client.py +2 -1
  147. tccli/services/hunyuan/hunyuan_client.py +4 -3
  148. tccli/services/iai/iai_client.py +36 -35
  149. tccli/services/ic/ic_client.py +10 -9
  150. tccli/services/icr/icr_client.py +2 -1
  151. tccli/services/ie/ie_client.py +11 -10
  152. tccli/services/iecp/iecp_client.py +103 -102
  153. tccli/services/iir/iir_client.py +2 -1
  154. tccli/services/ims/ims_client.py +3 -2
  155. tccli/services/ioa/ioa_client.py +2 -1
  156. tccli/services/iot/iot_client.py +46 -45
  157. tccli/services/iotcloud/iotcloud_client.py +86 -85
  158. tccli/services/iotexplorer/iotexplorer_client.py +93 -92
  159. tccli/services/iottid/iottid_client.py +10 -9
  160. tccli/services/iotvideo/iotvideo_client.py +158 -157
  161. tccli/services/iotvideoindustry/iotvideoindustry_client.py +105 -104
  162. tccli/services/irp/irp_client.py +12 -11
  163. tccli/services/iss/iss_client.py +83 -82
  164. tccli/services/ivld/ivld_client.py +26 -25
  165. tccli/services/keewidb/keewidb_client.py +39 -38
  166. tccli/services/kms/kms_client.py +54 -53
  167. tccli/services/lcic/lcic_client.py +61 -60
  168. tccli/services/lighthouse/lighthouse_client.py +108 -107
  169. tccli/services/lighthouse/v20200324/api.json +1 -1
  170. tccli/services/live/live_client.py +154 -153
  171. tccli/services/lowcode/lowcode_client.py +2 -1
  172. tccli/services/lp/lp_client.py +2 -1
  173. tccli/services/mall/mall_client.py +2 -1
  174. tccli/services/mariadb/mariadb_client.py +73 -72
  175. tccli/services/market/market_client.py +3 -2
  176. tccli/services/memcached/memcached_client.py +2 -1
  177. tccli/services/mgobe/mgobe_client.py +8 -7
  178. tccli/services/mmps/mmps_client.py +16 -15
  179. tccli/services/mna/mna_client.py +24 -23
  180. tccli/services/mongodb/mongodb_client.py +43 -42
  181. tccli/services/monitor/monitor_client.py +151 -150
  182. tccli/services/mps/mps_client.py +101 -100
  183. tccli/services/mrs/mrs_client.py +115 -8
  184. tccli/services/mrs/v20200910/api.json +97 -0
  185. tccli/services/mrs/v20200910/examples.json +16 -0
  186. tccli/services/ms/ms_client.py +24 -23
  187. tccli/services/msp/msp_client.py +8 -7
  188. tccli/services/mvj/mvj_client.py +2 -1
  189. tccli/services/nlp/nlp_client.py +13 -12
  190. tccli/services/npp/npp_client.py +9 -8
  191. tccli/services/oceanus/oceanus_client.py +39 -38
  192. tccli/services/oceanus/v20190422/api.json +39 -4
  193. tccli/services/ocr/ocr_client.py +82 -81
  194. tccli/services/omics/omics_client.py +16 -15
  195. tccli/services/organization/organization_client.py +48 -47
  196. tccli/services/partners/partners_client.py +20 -19
  197. tccli/services/pds/pds_client.py +3 -2
  198. tccli/services/postgres/postgres_client.py +91 -90
  199. tccli/services/privatedns/privatedns_client.py +26 -25
  200. tccli/services/pts/pts_client.py +45 -44
  201. tccli/services/rce/rce_client.py +4 -3
  202. tccli/services/redis/redis_client.py +96 -95
  203. tccli/services/region/region_client.py +4 -3
  204. tccli/services/rkp/rkp_client.py +4 -3
  205. tccli/services/rp/rp_client.py +2 -1
  206. tccli/services/rum/rum_client.py +66 -65
  207. tccli/services/scf/scf_client.py +47 -46
  208. tccli/services/ses/ses_client.py +28 -27
  209. tccli/services/smh/smh_client.py +11 -10
  210. tccli/services/smop/smop_client.py +2 -1
  211. tccli/services/smpn/smpn_client.py +6 -5
  212. tccli/services/sms/sms_client.py +19 -18
  213. tccli/services/soe/soe_client.py +5 -4
  214. tccli/services/solar/solar_client.py +18 -17
  215. tccli/services/sqlserver/sqlserver_client.py +145 -144
  216. tccli/services/ssa/ssa_client.py +24 -23
  217. tccli/services/ssl/ssl_client.py +58 -57
  218. tccli/services/sslpod/sslpod_client.py +11 -10
  219. tccli/services/ssm/ssm_client.py +25 -24
  220. tccli/services/sts/sts_client.py +7 -6
  221. tccli/services/taf/taf_client.py +4 -3
  222. tccli/services/tag/tag_client.py +32 -31
  223. tccli/services/tan/tan_client.py +2 -1
  224. tccli/services/tat/tat_client.py +29 -28
  225. tccli/services/tav/tav_client.py +5 -4
  226. tccli/services/tbaas/tbaas_client.py +26 -25
  227. tccli/services/tbm/tbm_client.py +10 -9
  228. tccli/services/tbp/tbp_client.py +5 -4
  229. tccli/services/tcaplusdb/tcaplusdb_client.py +54 -53
  230. tccli/services/tcb/tcb_client.py +90 -89
  231. tccli/services/tcbr/tcbr_client.py +11 -10
  232. tccli/services/tcex/tcex_client.py +3 -2
  233. tccli/services/tchd/tchd_client.py +2 -1
  234. tccli/services/tci/tci_client.py +42 -41
  235. tccli/services/tcm/tcm_client.py +13 -12
  236. tccli/services/tcr/tcr_client.py +110 -109
  237. tccli/services/tcss/tcss_client.py +558 -345
  238. tccli/services/tcss/v20201101/api.json +1200 -0
  239. tccli/services/tcss/v20201101/examples.json +32 -0
  240. tccli/services/tdcpg/tdcpg_client.py +26 -25
  241. tccli/services/tdid/tdid_client.py +14 -13
  242. tccli/services/tdmq/tdmq_client.py +128 -127
  243. tccli/services/tds/tds_client.py +5 -4
  244. tccli/services/tem/tem_client.py +61 -60
  245. tccli/services/teo/teo_client.py +79 -78
  246. tccli/services/thpc/thpc_client.py +19 -18
  247. tccli/services/tia/tia_client.py +11 -10
  248. tccli/services/tic/tic_client.py +14 -13
  249. tccli/services/ticm/ticm_client.py +4 -3
  250. tccli/services/tics/tics_client.py +5 -4
  251. tccli/services/tiems/tiems_client.py +26 -25
  252. tccli/services/tiia/tiia_client.py +24 -23
  253. tccli/services/tione/tione_client.py +98 -97
  254. tccli/services/tiw/tiw_client.py +61 -60
  255. tccli/services/tke/tke_client.py +219 -218
  256. tccli/services/tkgdq/tkgdq_client.py +4 -3
  257. tccli/services/tms/tms_client.py +62 -8
  258. tccli/services/tms/v20201229/api.json +371 -17
  259. tccli/services/tms/v20201229/examples.json +8 -0
  260. tccli/services/tmt/tmt_client.py +8 -7
  261. tccli/services/tourism/tourism_client.py +2 -1
  262. tccli/services/trdp/trdp_client.py +2 -1
  263. tccli/services/trocket/trocket_client.py +23 -22
  264. tccli/services/trp/trp_client.py +54 -53
  265. tccli/services/trro/trro_client.py +24 -23
  266. tccli/services/trtc/trtc_client.py +44 -43
  267. tccli/services/tse/tse_client.py +66 -65
  268. tccli/services/tsf/tsf_client.py +220 -219
  269. tccli/services/tsw/tsw_client.py +5 -4
  270. tccli/services/tts/tts_client.py +4 -3
  271. tccli/services/ump/ump_client.py +18 -17
  272. tccli/services/vm/vm_client.py +7 -6
  273. tccli/services/vms/vms_client.py +3 -2
  274. tccli/services/vod/v20180717/api.json +10 -10
  275. tccli/services/vod/v20180717/examples.json +1 -1
  276. tccli/services/vod/vod_client.py +169 -168
  277. tccli/services/vpc/vpc_client.py +317 -316
  278. tccli/services/vrs/vrs_client.py +8 -7
  279. tccli/services/waf/waf_client.py +133 -132
  280. tccli/services/wav/wav_client.py +27 -26
  281. tccli/services/wedata/wedata_client.py +319 -318
  282. tccli/services/weilingwith/weilingwith_client.py +58 -57
  283. tccli/services/wss/wss_client.py +4 -3
  284. tccli/services/yinsuda/yinsuda_client.py +21 -20
  285. tccli/services/youmall/youmall_client.py +32 -31
  286. tccli/services/yunjing/yunjing_client.py +101 -100
  287. tccli/services/yunsou/yunsou_client.py +3 -2
  288. {tccli-3.0.1035.1.dist-info → tccli-3.0.1037.1.dist-info}/METADATA +2 -2
  289. {tccli-3.0.1035.1.dist-info → tccli-3.0.1037.1.dist-info}/RECORD +292 -284
  290. {tccli-3.0.1035.1.dist-info → tccli-3.0.1037.1.dist-info}/WHEEL +0 -0
  291. {tccli-3.0.1035.1.dist-info → tccli-3.0.1037.1.dist-info}/entry_points.txt +0 -0
  292. {tccli-3.0.1035.1.dist-info → tccli-3.0.1037.1.dist-info}/license_files/LICENSE +0 -0
@@ -25,7 +25,7 @@ def doModifyCCIpAllowDeny(args, parsed_globals):
25
25
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
26
26
  cred = credential.STSAssumeRoleCredential(
27
27
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
28
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
28
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
29
29
  )
30
30
  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):
31
31
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -77,7 +77,7 @@ def doDescribeDDoSCount(args, parsed_globals):
77
77
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
78
78
  cred = credential.STSAssumeRoleCredential(
79
79
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
80
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
80
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
81
81
  )
82
82
  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):
83
83
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -129,7 +129,7 @@ def doDeleteNewL4Rules(args, parsed_globals):
129
129
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
130
130
  cred = credential.STSAssumeRoleCredential(
131
131
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
132
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
132
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
133
133
  )
134
134
  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):
135
135
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -181,7 +181,7 @@ def doDescribeRuleSets(args, parsed_globals):
181
181
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
182
182
  cred = credential.STSAssumeRoleCredential(
183
183
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
184
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
184
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
185
185
  )
186
186
  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):
187
187
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -233,7 +233,7 @@ def doCreateNewL7RulesUpload(args, parsed_globals):
233
233
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
234
234
  cred = credential.STSAssumeRoleCredential(
235
235
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
236
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
236
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
237
237
  )
238
238
  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):
239
239
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -285,7 +285,7 @@ def doCreateL7CCRule(args, parsed_globals):
285
285
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
286
286
  cred = credential.STSAssumeRoleCredential(
287
287
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
288
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
288
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
289
289
  )
290
290
  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):
291
291
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -337,7 +337,7 @@ def doCreateCCSelfDefinePolicy(args, parsed_globals):
337
337
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
338
338
  cred = credential.STSAssumeRoleCredential(
339
339
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
340
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
340
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
341
341
  )
342
342
  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):
343
343
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -389,7 +389,7 @@ def doDescribleL7Rules(args, parsed_globals):
389
389
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
390
390
  cred = credential.STSAssumeRoleCredential(
391
391
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
392
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
392
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
393
393
  )
394
394
  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):
395
395
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -441,7 +441,7 @@ def doModifyResBindDDoSPolicy(args, parsed_globals):
441
441
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
442
442
  cred = credential.STSAssumeRoleCredential(
443
443
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
444
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
444
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
445
445
  )
446
446
  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):
447
447
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -493,7 +493,7 @@ def doDescribeNewL7RulesErrHealth(args, parsed_globals):
493
493
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
494
494
  cred = credential.STSAssumeRoleCredential(
495
495
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
496
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
496
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
497
497
  )
498
498
  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):
499
499
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -545,7 +545,7 @@ def doCreateDDoSPolicyCase(args, parsed_globals):
545
545
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
546
546
  cred = credential.STSAssumeRoleCredential(
547
547
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
548
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
548
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
549
549
  )
550
550
  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):
551
551
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -597,7 +597,7 @@ def doDescribeDDoSNetTrend(args, parsed_globals):
597
597
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
598
598
  cred = credential.STSAssumeRoleCredential(
599
599
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
600
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
600
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
601
601
  )
602
602
  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):
603
603
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -649,7 +649,7 @@ def doModifyDDoSPolicyName(args, parsed_globals):
649
649
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
650
650
  cred = credential.STSAssumeRoleCredential(
651
651
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
652
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
652
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
653
653
  )
654
654
  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):
655
655
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -701,7 +701,7 @@ def doModifyL4Health(args, parsed_globals):
701
701
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
702
702
  cred = credential.STSAssumeRoleCredential(
703
703
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
704
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
704
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
705
705
  )
706
706
  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):
707
707
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -753,7 +753,7 @@ def doDescribeDDoSUsedStatis(args, parsed_globals):
753
753
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
754
754
  cred = credential.STSAssumeRoleCredential(
755
755
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
756
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
756
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
757
757
  )
758
758
  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):
759
759
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -805,7 +805,7 @@ def doDescribeDDoSDefendStatus(args, parsed_globals):
805
805
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
806
806
  cred = credential.STSAssumeRoleCredential(
807
807
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
808
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
808
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
809
809
  )
810
810
  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):
811
811
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -857,7 +857,7 @@ def doDescribeCCAlarmThreshold(args, parsed_globals):
857
857
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
858
858
  cred = credential.STSAssumeRoleCredential(
859
859
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
860
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
860
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
861
861
  )
862
862
  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):
863
863
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -909,7 +909,7 @@ def doDescribePcap(args, parsed_globals):
909
909
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
910
910
  cred = credential.STSAssumeRoleCredential(
911
911
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
912
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
912
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
913
913
  )
914
914
  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):
915
915
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -961,7 +961,7 @@ def doDescribeNewL4Rules(args, parsed_globals):
961
961
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
962
962
  cred = credential.STSAssumeRoleCredential(
963
963
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
964
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
964
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
965
965
  )
966
966
  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):
967
967
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -1013,7 +1013,7 @@ def doCreateNewL7Rules(args, parsed_globals):
1013
1013
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1014
1014
  cred = credential.STSAssumeRoleCredential(
1015
1015
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1016
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
1016
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1017
1017
  )
1018
1018
  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):
1019
1019
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -1065,7 +1065,7 @@ def doModifyElasticLimit(args, parsed_globals):
1065
1065
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1066
1066
  cred = credential.STSAssumeRoleCredential(
1067
1067
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1068
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
1068
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1069
1069
  )
1070
1070
  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):
1071
1071
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -1117,7 +1117,7 @@ def doDescribeDDoSNetIpLog(args, parsed_globals):
1117
1117
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1118
1118
  cred = credential.STSAssumeRoleCredential(
1119
1119
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1120
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
1120
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1121
1121
  )
1122
1122
  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):
1123
1123
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -1169,7 +1169,7 @@ def doModifyCCAlarmThreshold(args, parsed_globals):
1169
1169
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1170
1170
  cred = credential.STSAssumeRoleCredential(
1171
1171
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1172
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
1172
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1173
1173
  )
1174
1174
  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):
1175
1175
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -1221,7 +1221,7 @@ def doDescribeDDoSEvList(args, parsed_globals):
1221
1221
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1222
1222
  cred = credential.STSAssumeRoleCredential(
1223
1223
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1224
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
1224
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1225
1225
  )
1226
1226
  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):
1227
1227
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -1273,7 +1273,7 @@ def doDescribeIpBlockList(args, parsed_globals):
1273
1273
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1274
1274
  cred = credential.STSAssumeRoleCredential(
1275
1275
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1276
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
1276
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1277
1277
  )
1278
1278
  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):
1279
1279
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -1325,7 +1325,7 @@ def doDescribeL4HealthConfig(args, parsed_globals):
1325
1325
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1326
1326
  cred = credential.STSAssumeRoleCredential(
1327
1327
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1328
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
1328
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1329
1329
  )
1330
1330
  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):
1331
1331
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -1377,7 +1377,7 @@ def doDescribeSecIndex(args, parsed_globals):
1377
1377
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1378
1378
  cred = credential.STSAssumeRoleCredential(
1379
1379
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1380
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
1380
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1381
1381
  )
1382
1382
  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):
1383
1383
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -1429,7 +1429,7 @@ def doDescribeSchedulingDomainList(args, parsed_globals):
1429
1429
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1430
1430
  cred = credential.STSAssumeRoleCredential(
1431
1431
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1432
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
1432
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1433
1433
  )
1434
1434
  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):
1435
1435
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -1481,7 +1481,7 @@ def doDescribeCCFrequencyRules(args, parsed_globals):
1481
1481
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1482
1482
  cred = credential.STSAssumeRoleCredential(
1483
1483
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1484
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
1484
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1485
1485
  )
1486
1486
  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):
1487
1487
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -1533,7 +1533,7 @@ def doDeleteDDoSPolicyCase(args, parsed_globals):
1533
1533
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1534
1534
  cred = credential.STSAssumeRoleCredential(
1535
1535
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1536
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
1536
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1537
1537
  )
1538
1538
  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):
1539
1539
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -1585,7 +1585,7 @@ def doDeleteL7Rules(args, parsed_globals):
1585
1585
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1586
1586
  cred = credential.STSAssumeRoleCredential(
1587
1587
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1588
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
1588
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1589
1589
  )
1590
1590
  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):
1591
1591
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -1637,7 +1637,7 @@ def doCreateNewL4Rules(args, parsed_globals):
1637
1637
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1638
1638
  cred = credential.STSAssumeRoleCredential(
1639
1639
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1640
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
1640
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1641
1641
  )
1642
1642
  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):
1643
1643
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -1689,7 +1689,7 @@ def doCreateL4Rules(args, parsed_globals):
1689
1689
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1690
1690
  cred = credential.STSAssumeRoleCredential(
1691
1691
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1692
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
1692
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1693
1693
  )
1694
1694
  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):
1695
1695
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -1741,7 +1741,7 @@ def doDescribeBaradData(args, parsed_globals):
1741
1741
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1742
1742
  cred = credential.STSAssumeRoleCredential(
1743
1743
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1744
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
1744
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1745
1745
  )
1746
1746
  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):
1747
1747
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -1793,7 +1793,7 @@ def doModifyCCFrequencyRules(args, parsed_globals):
1793
1793
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1794
1794
  cred = credential.STSAssumeRoleCredential(
1795
1795
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1796
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
1796
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1797
1797
  )
1798
1798
  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):
1799
1799
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -1845,7 +1845,7 @@ def doCreateDDoSPolicy(args, parsed_globals):
1845
1845
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1846
1846
  cred = credential.STSAssumeRoleCredential(
1847
1847
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1848
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
1848
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1849
1849
  )
1850
1850
  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):
1851
1851
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -1897,7 +1897,7 @@ def doModifyCCPolicySwitch(args, parsed_globals):
1897
1897
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1898
1898
  cred = credential.STSAssumeRoleCredential(
1899
1899
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1900
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
1900
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1901
1901
  )
1902
1902
  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):
1903
1903
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -1949,7 +1949,7 @@ def doModifyNetReturnSwitch(args, parsed_globals):
1949
1949
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1950
1950
  cred = credential.STSAssumeRoleCredential(
1951
1951
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1952
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
1952
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1953
1953
  )
1954
1954
  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):
1955
1955
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -2001,7 +2001,7 @@ def doDescribeNewL4RulesErrHealth(args, parsed_globals):
2001
2001
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2002
2002
  cred = credential.STSAssumeRoleCredential(
2003
2003
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2004
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2004
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2005
2005
  )
2006
2006
  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):
2007
2007
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -2053,7 +2053,7 @@ def doDescribeSourceIpSegment(args, parsed_globals):
2053
2053
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2054
2054
  cred = credential.STSAssumeRoleCredential(
2055
2055
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2056
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2056
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2057
2057
  )
2058
2058
  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):
2059
2059
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -2105,7 +2105,7 @@ def doModifyCCUrlAllow(args, parsed_globals):
2105
2105
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2106
2106
  cred = credential.STSAssumeRoleCredential(
2107
2107
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2108
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2108
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2109
2109
  )
2110
2110
  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):
2111
2111
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -2157,7 +2157,7 @@ def doDescribeBasicDeviceThreshold(args, parsed_globals):
2157
2157
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2158
2158
  cred = credential.STSAssumeRoleCredential(
2159
2159
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2160
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2160
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2161
2161
  )
2162
2162
  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):
2163
2163
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -2209,7 +2209,7 @@ def doCreateUnblockIp(args, parsed_globals):
2209
2209
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2210
2210
  cred = credential.STSAssumeRoleCredential(
2211
2211
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2212
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2212
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2213
2213
  )
2214
2214
  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):
2215
2215
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -2261,7 +2261,7 @@ def doModifyNewL4Rule(args, parsed_globals):
2261
2261
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2262
2262
  cred = credential.STSAssumeRoleCredential(
2263
2263
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2264
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2264
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2265
2265
  )
2266
2266
  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):
2267
2267
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -2313,7 +2313,7 @@ def doDeleteDDoSPolicy(args, parsed_globals):
2313
2313
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2314
2314
  cred = credential.STSAssumeRoleCredential(
2315
2315
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2316
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2316
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2317
2317
  )
2318
2318
  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):
2319
2319
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -2365,7 +2365,7 @@ def doDescribeDDoSNetCount(args, parsed_globals):
2365
2365
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2366
2366
  cred = credential.STSAssumeRoleCredential(
2367
2367
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2368
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2368
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2369
2369
  )
2370
2370
  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):
2371
2371
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -2417,7 +2417,7 @@ def doDescribeBizHttpStatus(args, parsed_globals):
2417
2417
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2418
2418
  cred = credential.STSAssumeRoleCredential(
2419
2419
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2420
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2420
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2421
2421
  )
2422
2422
  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):
2423
2423
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -2469,7 +2469,7 @@ def doDeleteCCSelfDefinePolicy(args, parsed_globals):
2469
2469
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2470
2470
  cred = credential.STSAssumeRoleCredential(
2471
2471
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2472
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2472
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2473
2473
  )
2474
2474
  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):
2475
2475
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -2521,7 +2521,7 @@ def doDescribePolicyCase(args, parsed_globals):
2521
2521
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2522
2522
  cred = credential.STSAssumeRoleCredential(
2523
2523
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2524
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2524
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2525
2525
  )
2526
2526
  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):
2527
2527
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -2573,7 +2573,7 @@ def doDescribeActionLog(args, parsed_globals):
2573
2573
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2574
2574
  cred = credential.STSAssumeRoleCredential(
2575
2575
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2576
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2576
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2577
2577
  )
2578
2578
  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):
2579
2579
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -2625,7 +2625,7 @@ def doModifyL4Rules(args, parsed_globals):
2625
2625
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2626
2626
  cred = credential.STSAssumeRoleCredential(
2627
2627
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2628
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2628
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2629
2629
  )
2630
2630
  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):
2631
2631
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -2677,7 +2677,7 @@ def doDescribeDDoSIpLog(args, parsed_globals):
2677
2677
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2678
2678
  cred = credential.STSAssumeRoleCredential(
2679
2679
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2680
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2680
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2681
2681
  )
2682
2682
  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):
2683
2683
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -2729,7 +2729,7 @@ def doDescribeDDoSAlarmThreshold(args, parsed_globals):
2729
2729
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2730
2730
  cred = credential.STSAssumeRoleCredential(
2731
2731
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2732
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2732
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2733
2733
  )
2734
2734
  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):
2735
2735
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -2781,7 +2781,7 @@ def doDescribePackIndex(args, parsed_globals):
2781
2781
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2782
2782
  cred = credential.STSAssumeRoleCredential(
2783
2783
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2784
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2784
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2785
2785
  )
2786
2786
  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):
2787
2787
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -2833,7 +2833,7 @@ def doDescribleNewL7Rules(args, parsed_globals):
2833
2833
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2834
2834
  cred = credential.STSAssumeRoleCredential(
2835
2835
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2836
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2836
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2837
2837
  )
2838
2838
  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):
2839
2839
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -2885,7 +2885,7 @@ def doCreateBasicDDoSAlarmThreshold(args, parsed_globals):
2885
2885
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2886
2886
  cred = credential.STSAssumeRoleCredential(
2887
2887
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2888
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2888
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2889
2889
  )
2890
2890
  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):
2891
2891
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -2937,7 +2937,7 @@ def doModifyDDoSThreshold(args, parsed_globals):
2937
2937
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2938
2938
  cred = credential.STSAssumeRoleCredential(
2939
2939
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2940
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2940
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2941
2941
  )
2942
2942
  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):
2943
2943
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -2989,7 +2989,7 @@ def doCreateL7RuleCert(args, parsed_globals):
2989
2989
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2990
2990
  cred = credential.STSAssumeRoleCredential(
2991
2991
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2992
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2992
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2993
2993
  )
2994
2994
  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):
2995
2995
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -3041,7 +3041,7 @@ def doModifyDDoSAIStatus(args, parsed_globals):
3041
3041
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3042
3042
  cred = credential.STSAssumeRoleCredential(
3043
3043
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3044
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
3044
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3045
3045
  )
3046
3046
  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):
3047
3047
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -3093,7 +3093,7 @@ def doDescribeCCIpAllowDeny(args, parsed_globals):
3093
3093
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3094
3094
  cred = credential.STSAssumeRoleCredential(
3095
3095
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3096
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
3096
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3097
3097
  )
3098
3098
  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):
3099
3099
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -3145,7 +3145,7 @@ def doCreateL4HealthConfig(args, parsed_globals):
3145
3145
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3146
3146
  cred = credential.STSAssumeRoleCredential(
3147
3147
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3148
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
3148
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3149
3149
  )
3150
3150
  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):
3151
3151
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -3197,7 +3197,7 @@ def doDescribeResourceList(args, parsed_globals):
3197
3197
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3198
3198
  cred = credential.STSAssumeRoleCredential(
3199
3199
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3200
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
3200
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3201
3201
  )
3202
3202
  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):
3203
3203
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -3249,7 +3249,7 @@ def doCreateBoundIP(args, parsed_globals):
3249
3249
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3250
3250
  cred = credential.STSAssumeRoleCredential(
3251
3251
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3252
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
3252
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3253
3253
  )
3254
3254
  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):
3255
3255
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -3301,7 +3301,7 @@ def doModifyDDoSPolicy(args, parsed_globals):
3301
3301
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3302
3302
  cred = credential.STSAssumeRoleCredential(
3303
3303
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3304
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
3304
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3305
3305
  )
3306
3306
  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):
3307
3307
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -3353,7 +3353,7 @@ def doModifyDDoSPolicyCase(args, parsed_globals):
3353
3353
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3354
3354
  cred = credential.STSAssumeRoleCredential(
3355
3355
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3356
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
3356
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3357
3357
  )
3358
3358
  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):
3359
3359
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -3405,7 +3405,7 @@ def doModifyDDoSAlarmThreshold(args, parsed_globals):
3405
3405
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3406
3406
  cred = credential.STSAssumeRoleCredential(
3407
3407
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3408
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
3408
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3409
3409
  )
3410
3410
  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):
3411
3411
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -3457,7 +3457,7 @@ def doDescribeDDoSNetEvInfo(args, parsed_globals):
3457
3457
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3458
3458
  cred = credential.STSAssumeRoleCredential(
3459
3459
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3460
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
3460
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3461
3461
  )
3462
3462
  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):
3463
3463
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -3509,7 +3509,7 @@ def doDeleteCCFrequencyRules(args, parsed_globals):
3509
3509
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3510
3510
  cred = credential.STSAssumeRoleCredential(
3511
3511
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3512
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
3512
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3513
3513
  )
3514
3514
  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):
3515
3515
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -3561,7 +3561,7 @@ def doModifyL4KeepTime(args, parsed_globals):
3561
3561
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3562
3562
  cred = credential.STSAssumeRoleCredential(
3563
3563
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3564
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
3564
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3565
3565
  )
3566
3566
  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):
3567
3567
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -3613,7 +3613,7 @@ def doDescribeL4RulesErrHealth(args, parsed_globals):
3613
3613
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3614
3614
  cred = credential.STSAssumeRoleCredential(
3615
3615
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3616
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
3616
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3617
3617
  )
3618
3618
  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):
3619
3619
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -3665,7 +3665,7 @@ def doCreateL7RulesUpload(args, parsed_globals):
3665
3665
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3666
3666
  cred = credential.STSAssumeRoleCredential(
3667
3667
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3668
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
3668
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3669
3669
  )
3670
3670
  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):
3671
3671
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -3717,7 +3717,7 @@ def doDescribeDDoSPolicy(args, parsed_globals):
3717
3717
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3718
3718
  cred = credential.STSAssumeRoleCredential(
3719
3719
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3720
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
3720
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3721
3721
  )
3722
3722
  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):
3723
3723
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -3769,7 +3769,7 @@ def doDescribeTransmitStatis(args, parsed_globals):
3769
3769
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3770
3770
  cred = credential.STSAssumeRoleCredential(
3771
3771
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3772
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
3772
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3773
3773
  )
3774
3774
  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):
3775
3775
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -3821,7 +3821,7 @@ def doModifyCCLevel(args, parsed_globals):
3821
3821
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3822
3822
  cred = credential.STSAssumeRoleCredential(
3823
3823
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3824
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
3824
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3825
3825
  )
3826
3826
  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):
3827
3827
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -3873,7 +3873,7 @@ def doModifyDDoSDefendStatus(args, parsed_globals):
3873
3873
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3874
3874
  cred = credential.STSAssumeRoleCredential(
3875
3875
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3876
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
3876
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3877
3877
  )
3878
3878
  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):
3879
3879
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -3925,7 +3925,7 @@ def doDescribeUnBlockStatis(args, parsed_globals):
3925
3925
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3926
3926
  cred = credential.STSAssumeRoleCredential(
3927
3927
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3928
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
3928
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3929
3929
  )
3930
3930
  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):
3931
3931
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -3977,7 +3977,7 @@ def doDescribeDDoSTrend(args, parsed_globals):
3977
3977
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3978
3978
  cred = credential.STSAssumeRoleCredential(
3979
3979
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3980
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
3980
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3981
3981
  )
3982
3982
  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):
3983
3983
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -4029,7 +4029,7 @@ def doCreateNetReturn(args, parsed_globals):
4029
4029
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4030
4030
  cred = credential.STSAssumeRoleCredential(
4031
4031
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4032
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
4032
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4033
4033
  )
4034
4034
  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):
4035
4035
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -4081,7 +4081,7 @@ def doModifyDDoSSwitch(args, parsed_globals):
4081
4081
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4082
4082
  cred = credential.STSAssumeRoleCredential(
4083
4083
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4084
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
4084
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4085
4085
  )
4086
4086
  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):
4087
4087
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -4133,7 +4133,7 @@ def doModifyDDoSLevel(args, parsed_globals):
4133
4133
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4134
4134
  cred = credential.STSAssumeRoleCredential(
4135
4135
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4136
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
4136
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4137
4137
  )
4138
4138
  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):
4139
4139
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -4185,7 +4185,7 @@ def doDescribeDDoSAttackSource(args, parsed_globals):
4185
4185
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4186
4186
  cred = credential.STSAssumeRoleCredential(
4187
4187
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4188
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
4188
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4189
4189
  )
4190
4190
  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):
4191
4191
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -4237,7 +4237,7 @@ def doDeleteNewL7Rules(args, parsed_globals):
4237
4237
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4238
4238
  cred = credential.STSAssumeRoleCredential(
4239
4239
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4240
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
4240
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4241
4241
  )
4242
4242
  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):
4243
4243
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -4289,7 +4289,7 @@ def doDescribeCCEvList(args, parsed_globals):
4289
4289
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4290
4290
  cred = credential.STSAssumeRoleCredential(
4291
4291
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4292
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
4292
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4293
4293
  )
4294
4294
  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):
4295
4295
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -4341,7 +4341,7 @@ def doModifyDDoSWaterKey(args, parsed_globals):
4341
4341
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4342
4342
  cred = credential.STSAssumeRoleCredential(
4343
4343
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4344
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
4344
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4345
4345
  )
4346
4346
  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):
4347
4347
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -4393,7 +4393,7 @@ def doDescribeInsurePacks(args, parsed_globals):
4393
4393
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4394
4394
  cred = credential.STSAssumeRoleCredential(
4395
4395
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4396
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
4396
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4397
4397
  )
4398
4398
  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):
4399
4399
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -4445,7 +4445,7 @@ def doDeleteL4Rules(args, parsed_globals):
4445
4445
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4446
4446
  cred = credential.STSAssumeRoleCredential(
4447
4447
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4448
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
4448
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4449
4449
  )
4450
4450
  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):
4451
4451
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -4497,7 +4497,7 @@ def doDescribeDDoSNetEvList(args, parsed_globals):
4497
4497
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4498
4498
  cred = credential.STSAssumeRoleCredential(
4499
4499
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4500
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
4500
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4501
4501
  )
4502
4502
  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):
4503
4503
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -4549,7 +4549,7 @@ def doModifyCCHostProtection(args, parsed_globals):
4549
4549
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4550
4550
  cred = credential.STSAssumeRoleCredential(
4551
4551
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4552
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
4552
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4553
4553
  )
4554
4554
  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):
4555
4555
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -4601,7 +4601,7 @@ def doDescribeBizTrend(args, parsed_globals):
4601
4601
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4602
4602
  cred = credential.STSAssumeRoleCredential(
4603
4603
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4604
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
4604
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4605
4605
  )
4606
4606
  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):
4607
4607
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -4653,7 +4653,7 @@ def doDescribleRegionCount(args, parsed_globals):
4653
4653
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4654
4654
  cred = credential.STSAssumeRoleCredential(
4655
4655
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4656
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
4656
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4657
4657
  )
4658
4658
  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):
4659
4659
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -4705,7 +4705,7 @@ def doCreateL7Rules(args, parsed_globals):
4705
4705
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4706
4706
  cred = credential.STSAssumeRoleCredential(
4707
4707
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4708
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
4708
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4709
4709
  )
4710
4710
  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):
4711
4711
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -4757,7 +4757,7 @@ def doDescribeIpUnBlockList(args, parsed_globals):
4757
4757
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4758
4758
  cred = credential.STSAssumeRoleCredential(
4759
4759
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4760
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
4760
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4761
4761
  )
4762
4762
  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):
4763
4763
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -4809,7 +4809,7 @@ def doDescribeIPProductInfo(args, parsed_globals):
4809
4809
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4810
4810
  cred = credential.STSAssumeRoleCredential(
4811
4811
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4812
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
4812
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4813
4813
  )
4814
4814
  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):
4815
4815
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -4861,7 +4861,7 @@ def doDescribeCCSelfDefinePolicy(args, parsed_globals):
4861
4861
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4862
4862
  cred = credential.STSAssumeRoleCredential(
4863
4863
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4864
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
4864
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4865
4865
  )
4866
4866
  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):
4867
4867
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -4913,7 +4913,7 @@ def doModifyCCFrequencyRulesStatus(args, parsed_globals):
4913
4913
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4914
4914
  cred = credential.STSAssumeRoleCredential(
4915
4915
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4916
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
4916
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4917
4917
  )
4918
4918
  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):
4919
4919
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -4965,7 +4965,7 @@ def doModifyCCThreshold(args, parsed_globals):
4965
4965
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4966
4966
  cred = credential.STSAssumeRoleCredential(
4967
4967
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4968
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
4968
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4969
4969
  )
4970
4970
  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):
4971
4971
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -5017,7 +5017,7 @@ def doDescribleL4Rules(args, parsed_globals):
5017
5017
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
5018
5018
  cred = credential.STSAssumeRoleCredential(
5019
5019
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5020
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
5020
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5021
5021
  )
5022
5022
  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):
5023
5023
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -5069,7 +5069,7 @@ def doModifyNewDomainRules(args, parsed_globals):
5069
5069
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
5070
5070
  cred = credential.STSAssumeRoleCredential(
5071
5071
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5072
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
5072
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5073
5073
  )
5074
5074
  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):
5075
5075
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -5121,7 +5121,7 @@ def doDescribeCCUrlAllow(args, parsed_globals):
5121
5121
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
5122
5122
  cred = credential.STSAssumeRoleCredential(
5123
5123
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5124
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
5124
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5125
5125
  )
5126
5126
  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):
5127
5127
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -5173,7 +5173,7 @@ def doDescribeL7HealthConfig(args, parsed_globals):
5173
5173
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
5174
5174
  cred = credential.STSAssumeRoleCredential(
5175
5175
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5176
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
5176
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5177
5177
  )
5178
5178
  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):
5179
5179
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -5225,7 +5225,7 @@ def doDescribeCCTrend(args, parsed_globals):
5225
5225
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
5226
5226
  cred = credential.STSAssumeRoleCredential(
5227
5227
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5228
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
5228
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5229
5229
  )
5230
5230
  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):
5231
5231
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -5277,7 +5277,7 @@ def doCreateCCFrequencyRules(args, parsed_globals):
5277
5277
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
5278
5278
  cred = credential.STSAssumeRoleCredential(
5279
5279
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5280
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
5280
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5281
5281
  )
5282
5282
  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):
5283
5283
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -5329,7 +5329,7 @@ def doModifyL7Rules(args, parsed_globals):
5329
5329
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
5330
5330
  cred = credential.STSAssumeRoleCredential(
5331
5331
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5332
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
5332
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5333
5333
  )
5334
5334
  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):
5335
5335
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -5381,7 +5381,7 @@ def doDescribeBasicCCThreshold(args, parsed_globals):
5381
5381
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
5382
5382
  cred = credential.STSAssumeRoleCredential(
5383
5383
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5384
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
5384
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5385
5385
  )
5386
5386
  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):
5387
5387
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -5433,7 +5433,7 @@ def doCreateL7HealthConfig(args, parsed_globals):
5433
5433
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
5434
5434
  cred = credential.STSAssumeRoleCredential(
5435
5435
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5436
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
5436
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5437
5437
  )
5438
5438
  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):
5439
5439
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -5485,7 +5485,7 @@ def doDescribeResIpList(args, parsed_globals):
5485
5485
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
5486
5486
  cred = credential.STSAssumeRoleCredential(
5487
5487
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5488
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
5488
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5489
5489
  )
5490
5490
  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):
5491
5491
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -5537,7 +5537,7 @@ def doCreateInstanceName(args, parsed_globals):
5537
5537
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
5538
5538
  cred = credential.STSAssumeRoleCredential(
5539
5539
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5540
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
5540
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5541
5541
  )
5542
5542
  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):
5543
5543
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -5589,7 +5589,7 @@ def doDescribeBGPIPL7RuleMaxCnt(args, parsed_globals):
5589
5589
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
5590
5590
  cred = credential.STSAssumeRoleCredential(
5591
5591
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5592
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
5592
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5593
5593
  )
5594
5594
  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):
5595
5595
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -5641,7 +5641,7 @@ def doModifyResourceRenewFlag(args, parsed_globals):
5641
5641
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
5642
5642
  cred = credential.STSAssumeRoleCredential(
5643
5643
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5644
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
5644
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5645
5645
  )
5646
5646
  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):
5647
5647
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -5693,7 +5693,7 @@ def doModifyCCSelfDefinePolicy(args, parsed_globals):
5693
5693
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
5694
5694
  cred = credential.STSAssumeRoleCredential(
5695
5695
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5696
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
5696
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5697
5697
  )
5698
5698
  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):
5699
5699
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -5745,7 +5745,7 @@ def doDescribeDDoSEvInfo(args, parsed_globals):
5745
5745
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
5746
5746
  cred = credential.STSAssumeRoleCredential(
5747
5747
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5748
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
5748
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5749
5749
  )
5750
5750
  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):
5751
5751
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -5797,7 +5797,7 @@ def doDescribeDDoSAttackIPRegionMap(args, parsed_globals):
5797
5797
  elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
5798
5798
  cred = credential.STSAssumeRoleCredential(
5799
5799
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5800
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
5800
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5801
5801
  )
5802
5802
  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):
5803
5803
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
@@ -6044,6 +6044,7 @@ def parse_global_arg(parsed_globals):
6044
6044
 
6045
6045
  if g_param[OptionsDefine.Endpoint] is None:
6046
6046
  g_param[OptionsDefine.Endpoint] = conf["dayu"][OptionsDefine.Endpoint]
6047
+ g_param["sts_cred_endpoint"] = conf.get("sts", {}).get("endpoint")
6047
6048
  except Exception as err:
6048
6049
  raise ConfigurationError("config file:%s error, %s" % (conf_path, str(err)))
6049
6050