本文整理汇总了Golang中github.com/awslabs/aws-sdk-go/gen/endpoints.Lookup函数的典型用法代码示例。如果您正苦于以下问题:Golang Lookup函数的具体用法?Golang Lookup怎么用?Golang Lookup使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了Lookup函数的17个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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",
},
}
}
开发者ID:ComeOn-Wuhan,项目名称:lantern,代码行数:21,代码来源:logs.go
示例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",
},
}
}
开发者ID:ComeOn-Wuhan,项目名称:lantern,代码行数:21,代码来源:ecs.go
示例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",
},
}
}
开发者ID:2722,项目名称:lantern,代码行数:21,代码来源:dynamodb.go
示例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",
},
}
}
开发者ID:ComeOn-Wuhan,项目名称:lantern,代码行数:21,代码来源:cloudhsm.go
示例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",
},
}
}
开发者ID:ComeOn-Wuhan,项目名称:lantern,代码行数:21,代码来源:support.go
示例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",
},
}
}
开发者ID:ComeOn-Wuhan,项目名称:lantern,代码行数:21,代码来源:cloudtrail.go
示例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",
},
}
}
开发者ID:ComeOn-Wuhan,项目名称:lantern,代码行数:21,代码来源:importexport.go
示例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",
},
}
}
开发者ID:ComeOn-Wuhan,项目名称:lantern,代码行数:21,代码来源:emr.go
示例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",
},
}
}
开发者ID:ComeOn-Wuhan,项目名称:lantern,代码行数:21,代码来源:config.go
示例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",
},
}
}
开发者ID:yang1006,项目名称:lantern,代码行数:21,代码来源:cloudsearchdomain.go
示例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",
},
}
}
开发者ID:2722,项目名称:lantern,代码行数:21,代码来源:route53domains.go
示例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",
},
}
}
开发者ID:2722,项目名称:lantern,代码行数:21,代码来源:cloudwatch.go
示例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",
},
}
}
开发者ID:ComeOn-Wuhan,项目名称:lantern,代码行数:21,代码来源:datapipeline.go
示例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",
},
}
}
开发者ID:2722,项目名称:lantern,代码行数:21,代码来源:directconnect.go
示例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",
},
}
}
开发者ID:xiaojianqing,项目名称:lantern,代码行数:21,代码来源:elb.go
示例16: New
// New returns a new ElasticTranscoder client.
func New(creds aws.CredentialsProvider, region string, client *http.Client) *ElasticTranscoder {
if client == nil {
client = http.DefaultClient
}
endpoint, service, region := endpoints.Lookup("elastictranscoder", region)
return &ElasticTranscoder{
client: &aws.RestClient{
Context: aws.Context{
Credentials: creds,
Service: service,
Region: region,
},
Client: client,
Endpoint: endpoint,
APIVersion: "2012-09-25",
},
}
}
开发者ID:2722,项目名称:lantern,代码行数:21,代码来源:elastictranscoder.go
示例17: New
// New returns a new CognitoSync client.
func New(creds aws.CredentialsProvider, region string, client *http.Client) *CognitoSync {
if client == nil {
client = http.DefaultClient
}
endpoint, service, region := endpoints.Lookup("cognito-sync", region)
return &CognitoSync{
client: &aws.RestClient{
Context: aws.Context{
Credentials: creds,
Service: service,
Region: region,
},
Client: client,
Endpoint: endpoint,
APIVersion: "2014-06-30",
},
}
}
开发者ID:2722,项目名称:lantern,代码行数:21,代码来源:sync.go
注:本文中的github.com/awslabs/aws-sdk-go/gen/endpoints.Lookup函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论