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:
+29
-9
@@ -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 redshift
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
|
||||
// WaitUntilClusterAvailable uses the Amazon Redshift API operation
|
||||
// DescribeClusters to wait for a condition to be met before returning.
|
||||
// If the condition is not meet within the max attempt window an error will
|
||||
// If the condition is not met within the max attempt window, an error will
|
||||
// be returned.
|
||||
func (c *Redshift) WaitUntilClusterAvailable(input *DescribeClustersInput) error {
|
||||
return c.WaitUntilClusterAvailableWithContext(aws.BackgroundContext(), input)
|
||||
@@ -49,7 +49,12 @@ func (c *Redshift) WaitUntilClusterAvailableWithContext(ctx aws.Context, input *
|
||||
},
|
||||
Logger: c.Config.Logger,
|
||||
NewRequest: func(opts []request.Option) (*request.Request, error) {
|
||||
req, _ := c.DescribeClustersRequest(input)
|
||||
var inCpy *DescribeClustersInput
|
||||
if input != nil {
|
||||
tmp := *input
|
||||
inCpy = &tmp
|
||||
}
|
||||
req, _ := c.DescribeClustersRequest(inCpy)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return req, nil
|
||||
@@ -62,7 +67,7 @@ func (c *Redshift) WaitUntilClusterAvailableWithContext(ctx aws.Context, input *
|
||||
|
||||
// WaitUntilClusterDeleted uses the Amazon Redshift API operation
|
||||
// DescribeClusters to wait for a condition to be met before returning.
|
||||
// If the condition is not meet within the max attempt window an error will
|
||||
// If the condition is not met within the max attempt window, an error will
|
||||
// be returned.
|
||||
func (c *Redshift) WaitUntilClusterDeleted(input *DescribeClustersInput) error {
|
||||
return c.WaitUntilClusterDeletedWithContext(aws.BackgroundContext(), input)
|
||||
@@ -100,7 +105,12 @@ func (c *Redshift) WaitUntilClusterDeletedWithContext(ctx aws.Context, input *De
|
||||
},
|
||||
Logger: c.Config.Logger,
|
||||
NewRequest: func(opts []request.Option) (*request.Request, error) {
|
||||
req, _ := c.DescribeClustersRequest(input)
|
||||
var inCpy *DescribeClustersInput
|
||||
if input != nil {
|
||||
tmp := *input
|
||||
inCpy = &tmp
|
||||
}
|
||||
req, _ := c.DescribeClustersRequest(inCpy)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return req, nil
|
||||
@@ -113,7 +123,7 @@ func (c *Redshift) WaitUntilClusterDeletedWithContext(ctx aws.Context, input *De
|
||||
|
||||
// WaitUntilClusterRestored uses the Amazon Redshift API operation
|
||||
// DescribeClusters to wait for a condition to be met before returning.
|
||||
// If the condition is not meet within the max attempt window an error will
|
||||
// If the condition is not met within the max attempt window, an error will
|
||||
// be returned.
|
||||
func (c *Redshift) WaitUntilClusterRestored(input *DescribeClustersInput) error {
|
||||
return c.WaitUntilClusterRestoredWithContext(aws.BackgroundContext(), input)
|
||||
@@ -146,7 +156,12 @@ func (c *Redshift) WaitUntilClusterRestoredWithContext(ctx aws.Context, input *D
|
||||
},
|
||||
Logger: c.Config.Logger,
|
||||
NewRequest: func(opts []request.Option) (*request.Request, error) {
|
||||
req, _ := c.DescribeClustersRequest(input)
|
||||
var inCpy *DescribeClustersInput
|
||||
if input != nil {
|
||||
tmp := *input
|
||||
inCpy = &tmp
|
||||
}
|
||||
req, _ := c.DescribeClustersRequest(inCpy)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return req, nil
|
||||
@@ -159,7 +174,7 @@ func (c *Redshift) WaitUntilClusterRestoredWithContext(ctx aws.Context, input *D
|
||||
|
||||
// WaitUntilSnapshotAvailable uses the Amazon Redshift API operation
|
||||
// DescribeClusterSnapshots to wait for a condition to be met before returning.
|
||||
// If the condition is not meet within the max attempt window an error will
|
||||
// If the condition is not met within the max attempt window, an error will
|
||||
// be returned.
|
||||
func (c *Redshift) WaitUntilSnapshotAvailable(input *DescribeClusterSnapshotsInput) error {
|
||||
return c.WaitUntilSnapshotAvailableWithContext(aws.BackgroundContext(), input)
|
||||
@@ -197,7 +212,12 @@ func (c *Redshift) WaitUntilSnapshotAvailableWithContext(ctx aws.Context, input
|
||||
},
|
||||
Logger: c.Config.Logger,
|
||||
NewRequest: func(opts []request.Option) (*request.Request, error) {
|
||||
req, _ := c.DescribeClusterSnapshotsRequest(input)
|
||||
var inCpy *DescribeClusterSnapshotsInput
|
||||
if input != nil {
|
||||
tmp := *input
|
||||
inCpy = &tmp
|
||||
}
|
||||
req, _ := c.DescribeClusterSnapshotsRequest(inCpy)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return req, nil
|
||||
|
||||
Reference in New Issue
Block a user