Documentation
¶
Index ¶
Constants ¶
View Source
const ( KeyAccessKey = "access_key" KeySecretKey = "secret_key" KeyRegion = "region" )
Variables ¶
View Source
var ( AliyunCreds aliyunCreds EssEndpointList EssEndpointRespInfoList )
Functions ¶
func CreateSDKClient ¶
func CreateSDKClient(regionID string) (result *ess20220222.Client, err error)
*
- 使用AK&SK初始化账号Client
- @param accessKeyId
- @param accessKeySecret
- @return Client
- @throws Exception
func TerraformSetupBuilder ¶
TerraformSetupBuilder builds Terraform a terraform.SetupFn function which returns Terraform provider setup configuration
Types ¶
type EssEndpointResp ¶
type EssEndpointResp struct {
Code int `json:"code"`
Data EssEndpointRespData `json:"data"`
}
每个区域的 endpoint 需要匹配, 否则无法查询到对应的资源信息. 展示页: https://api.aliyun.com/product/Ess API: https://api.aliyun.com/meta/v1/products/Ess/endpoints.json
type EssEndpointRespData ¶
type EssEndpointRespData struct {
Type string `json:"type"`
Endpoints EssEndpointRespInfoList `json:"endpoints"`
}
type EssEndpointRespInfo ¶
type EssEndpointRespInfoList ¶
type EssEndpointRespInfoList []EssEndpointRespInfo
func (EssEndpointRespInfoList) Empty ¶
func (r EssEndpointRespInfoList) Empty() bool
func (EssEndpointRespInfoList) Get ¶
func (r EssEndpointRespInfoList) Get(regionID string) (string, error)
func (EssEndpointRespInfoList) Init ¶
func (r EssEndpointRespInfoList) Init() (err error)
Click to show internal directories.
Click to hide internal directories.