本文整理汇总了Golang中github.com/awslabs/aws-sdk-go/gen/endpoints.Lookup函数的典型用法代码示例。如果您正苦于以下问题:Golang Lookup函数的具体用法?Golang Lookup怎么用?Golang Lookup使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了Lookup函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: New
// New returns a new Logs client.
func New(creds aws.CredentialsProvider, region string, client *http.Client) *Logs {
if client == nil {
client = http.DefaultClient
}
endpoint, service, region := endpoints.Lookup("logs", region)
return &Logs{
client: &aws.JSONClient{
Context: aws.Context{
Credentials: creds,
Service: service,
Region: region,
}, Client: client,
Endpoint: endpoint,
JSONVersion: "1.1",
TargetPrefix: "Logs_20140328",
},
}
}
示例2: New
// New returns a new ECS client.
func New(creds aws.CredentialsProvider, region string, client *http.Client) *ECS {
if client == nil {
client = http.DefaultClient
}
endpoint, service, region := endpoints.Lookup("ecs", region)
return &ECS{
client: &aws.QueryClient{
Context: aws.Context{
Credentials: creds,
Service: service,
Region: region,
},
Client: client,
Endpoint: endpoint,
APIVersion: "2014-11-13",
},
}
}
示例3: New
// New returns a new DynamoDB client.
func New(creds aws.CredentialsProvider, region string, client *http.Client) *DynamoDB {
if client == nil {
client = http.DefaultClient
}
endpoint, service, region := endpoints.Lookup("dynamodb", region)
return &DynamoDB{
client: &aws.JSONClient{
Context: aws.Context{
Credentials: creds,
Service: service,
Region: region,
}, Client: client,
Endpoint: endpoint,
JSONVersion: "1.0",
TargetPrefix: "DynamoDB_20120810",
},
}
}
示例4: New
// New returns a new CloudHSM client.
func New(creds aws.CredentialsProvider, region string, client *http.Client) *CloudHSM {
if client == nil {
client = http.DefaultClient
}
endpoint, service, region := endpoints.Lookup("cloudhsm", region)
return &CloudHSM{
client: &aws.JSONClient{
Context: aws.Context{
Credentials: creds,
Service: service,
Region: region,
}, Client: client,
Endpoint: endpoint,
JSONVersion: "1.1",
TargetPrefix: "CloudHsmFrontendService",
},
}
}
示例5: New
// New returns a new Support client.
func New(creds aws.CredentialsProvider, region string, client *http.Client) *Support {
if client == nil {
client = http.DefaultClient
}
endpoint, service, region := endpoints.Lookup("support", region)
return &Support{
client: &aws.JSONClient{
Context: aws.Context{
Credentials: creds,
Service: service,
Region: region,
}, Client: client,
Endpoint: endpoint,
JSONVersion: "1.1",
TargetPrefix: "AWSSupport_20130415",
},
}
}
示例6: New
// New returns a new CloudTrail client.
func New(creds aws.CredentialsProvider, region string, client *http.Client) *CloudTrail {
if client == nil {
client = http.DefaultClient
}
endpoint, service, region := endpoints.Lookup("cloudtrail", region)
return &CloudTrail{
client: &aws.JSONClient{
Context: aws.Context{
Credentials: creds,
Service: service,
Region: region,
}, Client: client,
Endpoint: endpoint,
JSONVersion: "1.1",
TargetPrefix: "com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101",
},
}
}
示例7: New
// New returns a new ImportExport client.
func New(creds aws.CredentialsProvider, region string, client *http.Client) *ImportExport {
if client == nil {
client = http.DefaultClient
}
endpoint, service, region := endpoints.Lookup("importexport", region)
return &ImportExport{
client: &aws.QueryClient{
Context: aws.Context{
Credentials: creds,
Service: service,
Region: region,
},
Client: client,
Endpoint: endpoint,
APIVersion: "2010-06-01",
},
}
}
示例8: New
// New returns a new EMR client.
func New(creds aws.CredentialsProvider, region string, client *http.Client) *EMR {
if client == nil {
client = http.DefaultClient
}
endpoint, service, region := endpoints.Lookup("elasticmapreduce", region)
return &EMR{
client: &aws.JSONClient{
Context: aws.Context{
Credentials: creds,
Service: service,
Region: region,
}, Client: client,
Endpoint: endpoint,
JSONVersion: "1.1",
TargetPrefix: "ElasticMapReduce",
},
}
}
示例9: New
// New returns a new Config client.
func New(creds aws.CredentialsProvider, region string, client *http.Client) *Config {
if client == nil {
client = http.DefaultClient
}
endpoint, service, region := endpoints.Lookup("config", region)
return &Config{
client: &aws.JSONClient{
Context: aws.Context{
Credentials: creds,
Service: service,
Region: region,
}, Client: client,
Endpoint: endpoint,
JSONVersion: "1.1",
TargetPrefix: "StarlingDoveService",
},
}
}
示例10: New
// New returns a new CloudSearchDomain client.
func New(creds aws.CredentialsProvider, region string, client *http.Client) *CloudSearchDomain {
if client == nil {
client = http.DefaultClient
}
endpoint, service, region := endpoints.Lookup("cloudsearchdomain", region)
return &CloudSearchDomain{
client: &aws.RestClient{
Context: aws.Context{
Credentials: creds,
Service: service,
Region: region,
},
Client: client,
Endpoint: endpoint,
APIVersion: "2013-01-01",
},
}
}
示例11: New
// New returns a new Route53Domains client.
func New(creds aws.CredentialsProvider, region string, client *http.Client) *Route53Domains {
if client == nil {
client = http.DefaultClient
}
endpoint, service, region := endpoints.Lookup("route53domains", region)
return &Route53Domains{
client: &aws.JSONClient{
Context: aws.Context{
Credentials: creds,
Service: service,
Region: region,
}, Client: client,
Endpoint: endpoint,
JSONVersion: "1.1",
TargetPrefix: "Route53Domains_v20140515",
},
}
}
示例12: New
// New returns a new CloudWatch client.
func New(creds aws.CredentialsProvider, region string, client *http.Client) *CloudWatch {
if client == nil {
client = http.DefaultClient
}
endpoint, service, region := endpoints.Lookup("monitoring", region)
return &CloudWatch{
client: &aws.QueryClient{
Context: aws.Context{
Credentials: creds,
Service: service,
Region: region,
},
Client: client,
Endpoint: endpoint,
APIVersion: "2010-08-01",
},
}
}
示例13: New
// New returns a new DataPipeline client.
func New(creds aws.CredentialsProvider, region string, client *http.Client) *DataPipeline {
if client == nil {
client = http.DefaultClient
}
endpoint, service, region := endpoints.Lookup("datapipeline", region)
return &DataPipeline{
client: &aws.JSONClient{
Context: aws.Context{
Credentials: creds,
Service: service,
Region: region,
}, Client: client,
Endpoint: endpoint,
JSONVersion: "1.1",
TargetPrefix: "DataPipeline",
},
}
}
示例14: New
// New returns a new DirectConnect client.
func New(creds aws.CredentialsProvider, region string, client *http.Client) *DirectConnect {
if client == nil {
client = http.DefaultClient
}
endpoint, service, region := endpoints.Lookup("directconnect", region)
return &DirectConnect{
client: &aws.JSONClient{
Context: aws.Context{
Credentials: creds,
Service: service,
Region: region,
}, Client: client,
Endpoint: endpoint,
JSONVersion: "1.1",
TargetPrefix: "OvertureService",
},
}
}
示例15: New
// New returns a new ELB client.
func New(creds aws.CredentialsProvider, region string, client *http.Client) *ELB {
if client == nil {
client = http.DefaultClient
}
endpoint, service, region := endpoints.Lookup("elasticloadbalancing", region)
return &ELB{
client: &aws.QueryClient{
Context: aws.Context{
Credentials: creds,
Service: service,
Region: region,
},
Client: client,
Endpoint: endpoint,
APIVersion: "2012-06-01",
},
}
}