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
+1364
-135
File diff suppressed because it is too large
Load Diff
Generated
Vendored
+8
@@ -64,6 +64,10 @@ type CostExplorerAPI interface {
|
||||
GetCostAndUsageWithContext(aws.Context, *costexplorer.GetCostAndUsageInput, ...request.Option) (*costexplorer.GetCostAndUsageOutput, error)
|
||||
GetCostAndUsageRequest(*costexplorer.GetCostAndUsageInput) (*request.Request, *costexplorer.GetCostAndUsageOutput)
|
||||
|
||||
GetCostForecast(*costexplorer.GetCostForecastInput) (*costexplorer.GetCostForecastOutput, error)
|
||||
GetCostForecastWithContext(aws.Context, *costexplorer.GetCostForecastInput, ...request.Option) (*costexplorer.GetCostForecastOutput, error)
|
||||
GetCostForecastRequest(*costexplorer.GetCostForecastInput) (*request.Request, *costexplorer.GetCostForecastOutput)
|
||||
|
||||
GetDimensionValues(*costexplorer.GetDimensionValuesInput) (*costexplorer.GetDimensionValuesOutput, error)
|
||||
GetDimensionValuesWithContext(aws.Context, *costexplorer.GetDimensionValuesInput, ...request.Option) (*costexplorer.GetDimensionValuesOutput, error)
|
||||
GetDimensionValuesRequest(*costexplorer.GetDimensionValuesInput) (*request.Request, *costexplorer.GetDimensionValuesOutput)
|
||||
@@ -83,6 +87,10 @@ type CostExplorerAPI interface {
|
||||
GetTags(*costexplorer.GetTagsInput) (*costexplorer.GetTagsOutput, error)
|
||||
GetTagsWithContext(aws.Context, *costexplorer.GetTagsInput, ...request.Option) (*costexplorer.GetTagsOutput, error)
|
||||
GetTagsRequest(*costexplorer.GetTagsInput) (*request.Request, *costexplorer.GetTagsOutput)
|
||||
|
||||
GetUsageForecast(*costexplorer.GetUsageForecastInput) (*costexplorer.GetUsageForecastOutput, error)
|
||||
GetUsageForecastWithContext(aws.Context, *costexplorer.GetUsageForecastInput, ...request.Option) (*costexplorer.GetUsageForecastOutput, error)
|
||||
GetUsageForecastRequest(*costexplorer.GetUsageForecastInput) (*request.Request, *costexplorer.GetUsageForecastOutput)
|
||||
}
|
||||
|
||||
var _ CostExplorerAPI = (*costexplorer.CostExplorer)(nil)
|
||||
|
||||
+5
-2
@@ -3,10 +3,10 @@
|
||||
// Package costexplorer provides the client and types for making API
|
||||
// requests to AWS Cost Explorer Service.
|
||||
//
|
||||
// The Cost Explorer API allows you to programmatically query your cost and
|
||||
// The Cost Explorer API enables you to programmatically query your cost and
|
||||
// usage data. You can query for aggregated data such as total monthly costs
|
||||
// or total daily usage. You can also query for granular data, such as the number
|
||||
// of daily write operations for DynamoDB database tables in your production
|
||||
// of daily write operations for Amazon DynamoDB database tables in your production
|
||||
// environment.
|
||||
//
|
||||
// Service Endpoint
|
||||
@@ -15,6 +15,9 @@
|
||||
//
|
||||
// * https://ce.us-east-1.amazonaws.com
|
||||
//
|
||||
// For information about costs associated with the Cost Explorer API, see AWS
|
||||
// Cost Management Pricing (https://aws.amazon.com/aws-cost-management/pricing/).
|
||||
//
|
||||
// See https://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25 for more information on this service.
|
||||
//
|
||||
// See costexplorer package documentation for more information.
|
||||
|
||||
+14
@@ -27,4 +27,18 @@ const (
|
||||
//
|
||||
// You made too many calls in a short period of time. Try again later.
|
||||
ErrCodeLimitExceededException = "LimitExceededException"
|
||||
|
||||
// ErrCodeRequestChangedException for service response error code
|
||||
// "RequestChangedException".
|
||||
//
|
||||
// Your request parameters changed between pages. Try again with the old parameters
|
||||
// or without a pagination token.
|
||||
ErrCodeRequestChangedException = "RequestChangedException"
|
||||
|
||||
// ErrCodeUnresolvableUsageUnitException for service response error code
|
||||
// "UnresolvableUsageUnitException".
|
||||
//
|
||||
// Cost Explorer was unable to identify the usage unit. Provide UsageType/UsageTypeGroup
|
||||
// filter selections that contain matching units, for example: hours.(
|
||||
ErrCodeUnresolvableUsageUnitException = "UnresolvableUsageUnitException"
|
||||
)
|
||||
|
||||
+4
-2
@@ -29,8 +29,9 @@ var initRequest func(*request.Request)
|
||||
|
||||
// Service information constants
|
||||
const (
|
||||
ServiceName = "ce" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceName = "ce" // Name of service.
|
||||
EndpointsID = ServiceName // ID to lookup a service endpoint with.
|
||||
ServiceID = "Cost Explorer" // ServiceID is a unique identifer of a specific service.
|
||||
)
|
||||
|
||||
// New creates a new instance of the CostExplorer 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