| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
- package autoscaling
- import (
- "github.com/aws/aws-sdk-go/private/waiter"
- )
- func (c *AutoScaling) WaitUntilGroupExists(input *DescribeAutoScalingGroupsInput) error {
- waiterCfg := waiter.Config{
- Operation: "DescribeAutoScalingGroups",
- Delay: 5,
- MaxAttempts: 10,
- Acceptors: []waiter.WaitAcceptor{
- {
- State: "success",
- Matcher: "path",
- Argument: "length(AutoScalingGroups) > `0`",
- Expected: true,
- },
- {
- State: "retry",
- Matcher: "path",
- Argument: "length(AutoScalingGroups) > `0`",
- Expected: false,
- },
- },
- }
- w := waiter.Waiter{
- Client: c,
- Input: input,
- Config: waiterCfg,
- }
- return w.Wait()
- }
- func (c *AutoScaling) WaitUntilGroupInService(input *DescribeAutoScalingGroupsInput) error {
- waiterCfg := waiter.Config{
- Operation: "DescribeAutoScalingGroups",
- Delay: 15,
- MaxAttempts: 40,
- Acceptors: []waiter.WaitAcceptor{
- {
- State: "success",
- Matcher: "path",
- Argument: "contains(AutoScalingGroups[].[length(Instances[?LifecycleState=='InService']) >= MinSize][], `false`)",
- Expected: false,
- },
- {
- State: "retry",
- Matcher: "path",
- Argument: "contains(AutoScalingGroups[].[length(Instances[?LifecycleState=='InService']) >= MinSize][], `false`)",
- Expected: true,
- },
- },
- }
- w := waiter.Waiter{
- Client: c,
- Input: input,
- Config: waiterCfg,
- }
- return w.Wait()
- }
- func (c *AutoScaling) WaitUntilGroupNotExists(input *DescribeAutoScalingGroupsInput) error {
- waiterCfg := waiter.Config{
- Operation: "DescribeAutoScalingGroups",
- Delay: 15,
- MaxAttempts: 40,
- Acceptors: []waiter.WaitAcceptor{
- {
- State: "success",
- Matcher: "path",
- Argument: "length(AutoScalingGroups) > `0`",
- Expected: false,
- },
- {
- State: "retry",
- Matcher: "path",
- Argument: "length(AutoScalingGroups) > `0`",
- Expected: true,
- },
- },
- }
- w := waiter.Waiter{
- Client: c,
- Input: input,
- Config: waiterCfg,
- }
- return w.Wait()
- }
|