Wait for some service to be active.
This is a supplemental help for some services which does not natively have a `waitFor` helper.
Example:
```
const dynamodbStreams = new AWS.DynamoDBStreams();
type I = AWS.DynamoDBStreams.DescribeStreamInput
type O = AWS.DynamoDBStreams.DescribeStreamOutput
export type Result = O
const waitForStream = (input: I): Promise => waitForAWSService(
// Prevent `this` context problem
(...args) => dynamodbStreams.describeStream(...args),
input,
data => !!data?.StreamDescription
)
```
Module