mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-06 22:18:28 +00:00
Update Go AWS SDK to the latest version
This commit is contained in:
committed by
Andrey Smirnov
parent
d08be990ef
commit
94a72b23ff
+8
-8
@@ -15,7 +15,7 @@ const opDescribeServices = "DescribeServices"
|
||||
// DescribeServicesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeServices operation. The "output" return
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
// successfully.
|
||||
//
|
||||
// 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.
|
||||
@@ -124,7 +124,7 @@ func (c *Pricing) DescribeServicesWithContext(ctx aws.Context, input *DescribeSe
|
||||
// // Example iterating over at most 3 pages of a DescribeServices operation.
|
||||
// pageNum := 0
|
||||
// err := client.DescribeServicesPages(params,
|
||||
// func(page *DescribeServicesOutput, lastPage bool) bool {
|
||||
// func(page *pricing.DescribeServicesOutput, lastPage bool) bool {
|
||||
// pageNum++
|
||||
// fmt.Println(page)
|
||||
// return pageNum <= 3
|
||||
@@ -168,7 +168,7 @@ const opGetAttributeValues = "GetAttributeValues"
|
||||
// GetAttributeValuesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetAttributeValues operation. The "output" return
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
// successfully.
|
||||
//
|
||||
// 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.
|
||||
@@ -275,7 +275,7 @@ func (c *Pricing) GetAttributeValuesWithContext(ctx aws.Context, input *GetAttri
|
||||
// // Example iterating over at most 3 pages of a GetAttributeValues operation.
|
||||
// pageNum := 0
|
||||
// err := client.GetAttributeValuesPages(params,
|
||||
// func(page *GetAttributeValuesOutput, lastPage bool) bool {
|
||||
// func(page *pricing.GetAttributeValuesOutput, lastPage bool) bool {
|
||||
// pageNum++
|
||||
// fmt.Println(page)
|
||||
// return pageNum <= 3
|
||||
@@ -319,7 +319,7 @@ const opGetProducts = "GetProducts"
|
||||
// GetProductsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetProducts operation. The "output" return
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
// successfully.
|
||||
//
|
||||
// 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.
|
||||
@@ -423,7 +423,7 @@ func (c *Pricing) GetProductsWithContext(ctx aws.Context, input *GetProductsInpu
|
||||
// // Example iterating over at most 3 pages of a GetProducts operation.
|
||||
// pageNum := 0
|
||||
// err := client.GetProductsPages(params,
|
||||
// func(page *GetProductsOutput, lastPage bool) bool {
|
||||
// func(page *pricing.GetProductsOutput, lastPage bool) bool {
|
||||
// pageNum++
|
||||
// fmt.Println(page)
|
||||
// return pageNum <= 3
|
||||
@@ -463,7 +463,7 @@ func (c *Pricing) GetProductsPagesWithContext(ctx aws.Context, input *GetProduct
|
||||
}
|
||||
|
||||
// The values of a given attribute, such as Throughput Optimized HDD or Provisioned
|
||||
// IOPS for the Amazon EC2volumeType attribute.
|
||||
// IOPS for the Amazon EC2 volumeType attribute.
|
||||
type AttributeValue struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
@@ -758,7 +758,7 @@ type GetAttributeValuesOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The list of values for an attribute. For example, Throughput Optimized HDD
|
||||
// and Provisioned IOPS are two available values for the AmazonEC2volumeType.
|
||||
// and Provisioned IOPS are two available values for the AmazonEC2 volumeType.
|
||||
AttributeValues []*AttributeValue `type:"list"`
|
||||
|
||||
// The pagination token that indicates the next set of results to retrieve.
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@
|
||||
// you can use GetAttributeValues to see what values are available for an attribute.
|
||||
// With the service code and an attribute name and value, you can use GetProducts
|
||||
// to find specific products that you're interested in, such as an AmazonEC2
|
||||
// instance, with a Provisioned IOPSvolumeType.
|
||||
// instance, with a Provisioned IOPS volumeType.
|
||||
//
|
||||
// Service Endpoint
|
||||
//
|
||||
|
||||
+4
-2
@@ -29,8 +29,9 @@ var initRequest func(*request.Request)
|
||||
|
||||
// Service information constants
|
||||
const (
|
||||
ServiceName = "api.pricing" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceName = "api.pricing" // Name of service.
|
||||
EndpointsID = ServiceName // ID to lookup a service endpoint with.
|
||||
ServiceID = "Pricing" // ServiceID is a unique identifer of a specific service.
|
||||
)
|
||||
|
||||
// New creates a new instance of the Pricing client with a session.
|
||||
@@ -58,6 +59,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
||||
cfg,
|
||||
metadata.ClientInfo{
|
||||
ServiceName: ServiceName,
|
||||
ServiceID: ServiceID,
|
||||
SigningName: signingName,
|
||||
SigningRegion: signingRegion,
|
||||
Endpoint: endpoint,
|
||||
|
||||
Reference in New Issue
Block a user