Skip to content

Commit

Permalink
update waiter migration guide instruction as per new design (aws#975)
Browse files Browse the repository at this point in the history
  • Loading branch information
skotambkar authored Dec 15, 2020
1 parent 7a1725e commit 2516d8a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions content/en/docs/migrating/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -772,11 +772,11 @@ fmt.Println("total objects:", totalObjects)
### Waiters

Service operation waiters are no longer invoked as methods on the service client. To use a waiter you first construct
the operations associated waiter type, and then invoke the desired wait condition method. For example,
to wait for a {{% alias service=S3 %}} Bucket to exist must construct a waiter for the `HeadBucket` operation. Use the
[s3.NewHeadBucketWaiter]({{< apiref "service/s3#NewHeadBucketWaiter" >}}) constructor to create a
[s3.HeadBucketWaiter]({{< apiref "service/s3#HeadBucketWaiter" >}}). The `s3.HeadBucketWaiter` provides a
`WaitUntilBucketExists` method which can be used to wait for a bucket to become available.
the desired waiter type, and then invoke the wait method. For example,
to wait for a {{% alias service=S3 %}} Bucket to exist, you must construct a `BucketExists` waiter. Use the
[s3.NewBucketExistsWaiter]({{< apiref "service/s3#NewBucketExistsWaiter" >}}) constructor to create a
[s3.BucketExistsWaiter]({{< apiref "service/s3#BucketExistsWaiter" >}}). The `s3.BucketExistsWaiter` provides a
`Wait` method which can be used to wait for a bucket to become available.

## Features

Expand Down

0 comments on commit 2516d8a

Please sign in to comment.