mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-06 22:18:28 +00:00
Upgrade AWS SDK to the latest version
This commit is contained in:
209
vendor/github.com/aws/aws-sdk-go/service/simpledb/api.go
generated
vendored
209
vendor/github.com/aws/aws-sdk-go/service/simpledb/api.go
generated
vendored
@@ -1,6 +1,5 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package simpledb provides a client for Amazon SimpleDB.
|
||||
package simpledb
|
||||
|
||||
import (
|
||||
@@ -17,19 +16,18 @@ const opBatchDeleteAttributes = "BatchDeleteAttributes"
|
||||
|
||||
// BatchDeleteAttributesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the BatchDeleteAttributes operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See BatchDeleteAttributes for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the BatchDeleteAttributes method directly
|
||||
// instead.
|
||||
// See BatchDeleteAttributes for more information on using the BatchDeleteAttributes
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the BatchDeleteAttributesRequest method.
|
||||
// req, resp := client.BatchDeleteAttributesRequest(params)
|
||||
@@ -114,19 +112,18 @@ const opBatchPutAttributes = "BatchPutAttributes"
|
||||
|
||||
// BatchPutAttributesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the BatchPutAttributes operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See BatchPutAttributes for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the BatchPutAttributes method directly
|
||||
// instead.
|
||||
// See BatchPutAttributes for more information on using the BatchPutAttributes
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the BatchPutAttributesRequest method.
|
||||
// req, resp := client.BatchPutAttributesRequest(params)
|
||||
@@ -259,19 +256,18 @@ const opCreateDomain = "CreateDomain"
|
||||
|
||||
// CreateDomainRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CreateDomain operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See CreateDomain for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the CreateDomain method directly
|
||||
// instead.
|
||||
// See CreateDomain for more information on using the CreateDomain
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the CreateDomainRequest method.
|
||||
// req, resp := client.CreateDomainRequest(params)
|
||||
@@ -352,19 +348,18 @@ const opDeleteAttributes = "DeleteAttributes"
|
||||
|
||||
// DeleteAttributesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteAttributes operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DeleteAttributes for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeleteAttributes method directly
|
||||
// instead.
|
||||
// See DeleteAttributes for more information on using the DeleteAttributes
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeleteAttributesRequest method.
|
||||
// req, resp := client.DeleteAttributesRequest(params)
|
||||
@@ -450,19 +445,18 @@ const opDeleteDomain = "DeleteDomain"
|
||||
|
||||
// DeleteDomainRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteDomain operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DeleteDomain for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeleteDomain method directly
|
||||
// instead.
|
||||
// See DeleteDomain for more information on using the DeleteDomain
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeleteDomainRequest method.
|
||||
// req, resp := client.DeleteDomainRequest(params)
|
||||
@@ -534,19 +528,18 @@ const opDomainMetadata = "DomainMetadata"
|
||||
|
||||
// DomainMetadataRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DomainMetadata operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DomainMetadata for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DomainMetadata method directly
|
||||
// instead.
|
||||
// See DomainMetadata for more information on using the DomainMetadata
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DomainMetadataRequest method.
|
||||
// req, resp := client.DomainMetadataRequest(params)
|
||||
@@ -616,19 +609,18 @@ const opGetAttributes = "GetAttributes"
|
||||
|
||||
// GetAttributesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetAttributes operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See GetAttributes for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the GetAttributes method directly
|
||||
// instead.
|
||||
// See GetAttributes for more information on using the GetAttributes
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the GetAttributesRequest method.
|
||||
// req, resp := client.GetAttributesRequest(params)
|
||||
@@ -708,19 +700,18 @@ const opListDomains = "ListDomains"
|
||||
|
||||
// ListDomainsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListDomains operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See ListDomains for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ListDomains method directly
|
||||
// instead.
|
||||
// See ListDomains for more information on using the ListDomains
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ListDomainsRequest method.
|
||||
// req, resp := client.ListDomainsRequest(params)
|
||||
@@ -826,8 +817,12 @@ func (c *SimpleDB) ListDomainsPages(input *ListDomainsInput, fn func(*ListDomain
|
||||
func (c *SimpleDB) ListDomainsPagesWithContext(ctx aws.Context, input *ListDomainsInput, fn func(*ListDomainsOutput, bool) bool, opts ...request.Option) error {
|
||||
p := request.Pagination{
|
||||
NewRequest: func() (*request.Request, error) {
|
||||
inCpy := *input
|
||||
req, _ := c.ListDomainsRequest(&inCpy)
|
||||
var inCpy *ListDomainsInput
|
||||
if input != nil {
|
||||
tmp := *input
|
||||
inCpy = &tmp
|
||||
}
|
||||
req, _ := c.ListDomainsRequest(inCpy)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return req, nil
|
||||
@@ -845,19 +840,18 @@ const opPutAttributes = "PutAttributes"
|
||||
|
||||
// PutAttributesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the PutAttributes operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See PutAttributes for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the PutAttributes method directly
|
||||
// instead.
|
||||
// See PutAttributes for more information on using the PutAttributes
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the PutAttributesRequest method.
|
||||
// req, resp := client.PutAttributesRequest(params)
|
||||
@@ -972,19 +966,18 @@ const opSelect = "Select"
|
||||
|
||||
// SelectRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the Select operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See Select for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the Select method directly
|
||||
// instead.
|
||||
// See Select for more information on using the Select
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the SelectRequest method.
|
||||
// req, resp := client.SelectRequest(params)
|
||||
@@ -1117,8 +1110,12 @@ func (c *SimpleDB) SelectPages(input *SelectInput, fn func(*SelectOutput, bool)
|
||||
func (c *SimpleDB) SelectPagesWithContext(ctx aws.Context, input *SelectInput, fn func(*SelectOutput, bool) bool, opts ...request.Option) error {
|
||||
p := request.Pagination{
|
||||
NewRequest: func() (*request.Request, error) {
|
||||
inCpy := *input
|
||||
req, _ := c.SelectRequest(&inCpy)
|
||||
var inCpy *SelectInput
|
||||
if input != nil {
|
||||
tmp := *input
|
||||
inCpy = &tmp
|
||||
}
|
||||
req, _ := c.SelectRequest(inCpy)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return req, nil
|
||||
|
||||
40
vendor/github.com/aws/aws-sdk-go/service/simpledb/doc.go
generated
vendored
Normal file
40
vendor/github.com/aws/aws-sdk-go/service/simpledb/doc.go
generated
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package simpledb provides the client and types for making API
|
||||
// requests to Amazon SimpleDB.
|
||||
//
|
||||
// Amazon SimpleDB is a web service providing the core database functions of
|
||||
// data indexing and querying in the cloud. By offloading the time and effort
|
||||
// associated with building and operating a web-scale database, SimpleDB provides
|
||||
// developers the freedom to focus on application development. A traditional,
|
||||
// clustered relational database requires a sizable upfront capital outlay,
|
||||
// is complex to design, and often requires extensive and repetitive database
|
||||
// administration. Amazon SimpleDB is dramatically simpler, requiring no schema,
|
||||
// automatically indexing your data and providing a simple API for storage and
|
||||
// access. This approach eliminates the administrative burden of data modeling,
|
||||
// index maintenance, and performance tuning. Developers gain access to this
|
||||
// functionality within Amazon's proven computing environment, are able to scale
|
||||
// instantly, and pay only for what they use.
|
||||
//
|
||||
// Visit http://aws.amazon.com/simpledb/ (http://aws.amazon.com/simpledb/) for
|
||||
// more information.
|
||||
//
|
||||
// See simpledb package documentation for more information.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/simpledb/
|
||||
//
|
||||
// Using the Client
|
||||
//
|
||||
// To Amazon SimpleDB with the SDK use the New function to create
|
||||
// a new service client. With that client you can make API requests to the service.
|
||||
// These clients are safe to use concurrently.
|
||||
//
|
||||
// See the SDK's documentation for more information on how to use the SDK.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/
|
||||
//
|
||||
// See aws.Config documentation for more information on configuring SDK clients.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config
|
||||
//
|
||||
// See the Amazon SimpleDB client SimpleDB for more
|
||||
// information on creating client for this service.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/simpledb/#New
|
||||
package simpledb
|
||||
2
vendor/github.com/aws/aws-sdk-go/service/simpledb/errors.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go/service/simpledb/errors.go
generated
vendored
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package simpledb
|
||||
|
||||
|
||||
289
vendor/github.com/aws/aws-sdk-go/service/simpledb/examples_test.go
generated
vendored
289
vendor/github.com/aws/aws-sdk-go/service/simpledb/examples_test.go
generated
vendored
@@ -1,289 +0,0 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
|
||||
package simpledb_test
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/session"
|
||||
"github.com/aws/aws-sdk-go/service/simpledb"
|
||||
)
|
||||
|
||||
var _ time.Duration
|
||||
var _ bytes.Buffer
|
||||
|
||||
func ExampleSimpleDB_BatchDeleteAttributes() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := simpledb.New(sess)
|
||||
|
||||
params := &simpledb.BatchDeleteAttributesInput{
|
||||
DomainName: aws.String("String"), // Required
|
||||
Items: []*simpledb.DeletableItem{ // Required
|
||||
{ // Required
|
||||
Name: aws.String("String"), // Required
|
||||
Attributes: []*simpledb.DeletableAttribute{
|
||||
{ // Required
|
||||
Name: aws.String("String"), // Required
|
||||
Value: aws.String("String"),
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.BatchDeleteAttributes(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleSimpleDB_BatchPutAttributes() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := simpledb.New(sess)
|
||||
|
||||
params := &simpledb.BatchPutAttributesInput{
|
||||
DomainName: aws.String("String"), // Required
|
||||
Items: []*simpledb.ReplaceableItem{ // Required
|
||||
{ // Required
|
||||
Attributes: []*simpledb.ReplaceableAttribute{ // Required
|
||||
{ // Required
|
||||
Name: aws.String("String"), // Required
|
||||
Value: aws.String("String"), // Required
|
||||
Replace: aws.Bool(true),
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
Name: aws.String("String"), // Required
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.BatchPutAttributes(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleSimpleDB_CreateDomain() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := simpledb.New(sess)
|
||||
|
||||
params := &simpledb.CreateDomainInput{
|
||||
DomainName: aws.String("String"), // Required
|
||||
}
|
||||
resp, err := svc.CreateDomain(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleSimpleDB_DeleteAttributes() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := simpledb.New(sess)
|
||||
|
||||
params := &simpledb.DeleteAttributesInput{
|
||||
DomainName: aws.String("String"), // Required
|
||||
ItemName: aws.String("String"), // Required
|
||||
Attributes: []*simpledb.DeletableAttribute{
|
||||
{ // Required
|
||||
Name: aws.String("String"), // Required
|
||||
Value: aws.String("String"),
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
Expected: &simpledb.UpdateCondition{
|
||||
Exists: aws.Bool(true),
|
||||
Name: aws.String("String"),
|
||||
Value: aws.String("String"),
|
||||
},
|
||||
}
|
||||
resp, err := svc.DeleteAttributes(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleSimpleDB_DeleteDomain() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := simpledb.New(sess)
|
||||
|
||||
params := &simpledb.DeleteDomainInput{
|
||||
DomainName: aws.String("String"), // Required
|
||||
}
|
||||
resp, err := svc.DeleteDomain(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleSimpleDB_DomainMetadata() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := simpledb.New(sess)
|
||||
|
||||
params := &simpledb.DomainMetadataInput{
|
||||
DomainName: aws.String("String"), // Required
|
||||
}
|
||||
resp, err := svc.DomainMetadata(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleSimpleDB_GetAttributes() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := simpledb.New(sess)
|
||||
|
||||
params := &simpledb.GetAttributesInput{
|
||||
DomainName: aws.String("String"), // Required
|
||||
ItemName: aws.String("String"), // Required
|
||||
AttributeNames: []*string{
|
||||
aws.String("String"), // Required
|
||||
// More values...
|
||||
},
|
||||
ConsistentRead: aws.Bool(true),
|
||||
}
|
||||
resp, err := svc.GetAttributes(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleSimpleDB_ListDomains() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := simpledb.New(sess)
|
||||
|
||||
params := &simpledb.ListDomainsInput{
|
||||
MaxNumberOfDomains: aws.Int64(1),
|
||||
NextToken: aws.String("String"),
|
||||
}
|
||||
resp, err := svc.ListDomains(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleSimpleDB_PutAttributes() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := simpledb.New(sess)
|
||||
|
||||
params := &simpledb.PutAttributesInput{
|
||||
Attributes: []*simpledb.ReplaceableAttribute{ // Required
|
||||
{ // Required
|
||||
Name: aws.String("String"), // Required
|
||||
Value: aws.String("String"), // Required
|
||||
Replace: aws.Bool(true),
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
DomainName: aws.String("String"), // Required
|
||||
ItemName: aws.String("String"), // Required
|
||||
Expected: &simpledb.UpdateCondition{
|
||||
Exists: aws.Bool(true),
|
||||
Name: aws.String("String"),
|
||||
Value: aws.String("String"),
|
||||
},
|
||||
}
|
||||
resp, err := svc.PutAttributes(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleSimpleDB_Select() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := simpledb.New(sess)
|
||||
|
||||
params := &simpledb.SelectInput{
|
||||
SelectExpression: aws.String("String"), // Required
|
||||
ConsistentRead: aws.Bool(true),
|
||||
NextToken: aws.String("String"),
|
||||
}
|
||||
resp, err := svc.Select(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
23
vendor/github.com/aws/aws-sdk-go/service/simpledb/service.go
generated
vendored
23
vendor/github.com/aws/aws-sdk-go/service/simpledb/service.go
generated
vendored
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package simpledb
|
||||
|
||||
@@ -12,23 +12,12 @@ import (
|
||||
"github.com/aws/aws-sdk-go/private/signer/v2"
|
||||
)
|
||||
|
||||
// Amazon SimpleDB is a web service providing the core database functions of
|
||||
// data indexing and querying in the cloud. By offloading the time and effort
|
||||
// associated with building and operating a web-scale database, SimpleDB provides
|
||||
// developers the freedom to focus on application development. A traditional,
|
||||
// clustered relational database requires a sizable upfront capital outlay,
|
||||
// is complex to design, and often requires extensive and repetitive database
|
||||
// administration. Amazon SimpleDB is dramatically simpler, requiring no schema,
|
||||
// automatically indexing your data and providing a simple API for storage and
|
||||
// access. This approach eliminates the administrative burden of data modeling,
|
||||
// index maintenance, and performance tuning. Developers gain access to this
|
||||
// functionality within Amazon's proven computing environment, are able to scale
|
||||
// instantly, and pay only for what they use.
|
||||
// SimpleDB provides the API operation methods for making requests to
|
||||
// Amazon SimpleDB. See this package's package overview docs
|
||||
// for details on the service.
|
||||
//
|
||||
// Visit http://aws.amazon.com/simpledb/ (http://aws.amazon.com/simpledb/) for
|
||||
// more information.
|
||||
// The service client's operations are safe to be used concurrently.
|
||||
// It is not safe to mutate any of the client's properties though.
|
||||
// SimpleDB methods are safe to use concurrently. It is not safe to
|
||||
// modify mutate any of the struct's properties though.
|
||||
type SimpleDB struct {
|
||||
*client.Client
|
||||
}
|
||||
|
||||
4
vendor/github.com/aws/aws-sdk-go/service/simpledb/simpledbiface/interface.go
generated
vendored
4
vendor/github.com/aws/aws-sdk-go/service/simpledb/simpledbiface/interface.go
generated
vendored
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package simpledbiface provides an interface to enable mocking the Amazon SimpleDB service client
|
||||
// for testing your code.
|
||||
@@ -21,7 +21,7 @@ import (
|
||||
//
|
||||
// The best way to use this interface is so the SDK's service client's calls
|
||||
// can be stubbed out for unit testing your code with the SDK without needing
|
||||
// to inject custom request handlers into the the SDK's request pipeline.
|
||||
// to inject custom request handlers into the SDK's request pipeline.
|
||||
//
|
||||
// // myFunc uses an SDK service client to make a request to
|
||||
// // Amazon SimpleDB.
|
||||
|
||||
Reference in New Issue
Block a user