lib/aws-sdk-acmpca/waiters.rb in aws-sdk-acmpca-1.74.0 vs lib/aws-sdk-acmpca/waiters.rb in aws-sdk-acmpca-1.75.0
- old
+ new
@@ -67,48 +67,48 @@
# The following table lists the valid waiter names, the operations they call,
# and the default `:delay` and `:max_attempts` values.
#
# | waiter_name | params | :delay | :max_attempts |
# | --------------------------------- | ---------------------------------------------------- | -------- | ------------- |
- # | audit_report_created | {Client#describe_certificate_authority_audit_report} | 3 | 60 |
- # | certificate_authority_csr_created | {Client#get_certificate_authority_csr} | 3 | 60 |
- # | certificate_issued | {Client#get_certificate} | 1 | 60 |
+ # | audit_report_created | {Client#describe_certificate_authority_audit_report} | 3 | 40 |
+ # | certificate_authority_csr_created | {Client#get_certificate_authority_csr} | 3 | 40 |
+ # | certificate_issued | {Client#get_certificate} | 1 | 120 |
#
module Waiters
# Wait until a Audit Report is created
class AuditReportCreated
# @param [Hash] options
# @option options [required, Client] :client
- # @option options [Integer] :max_attempts (60)
+ # @option options [Integer] :max_attempts (40)
# @option options [Integer] :delay (3)
# @option options [Proc] :before_attempt
# @option options [Proc] :before_wait
def initialize(options)
@client = options.fetch(:client)
@waiter = Aws::Waiters::Waiter.new({
- max_attempts: 60,
+ max_attempts: 40,
delay: 3,
poller: Aws::Waiters::Poller.new(
operation_name: :describe_certificate_authority_audit_report,
acceptors: [
{
- "state" => "success",
"matcher" => "path",
"argument" => "audit_report_status",
+ "state" => "success",
"expected" => "SUCCESS"
},
{
- "state" => "failure",
"matcher" => "path",
"argument" => "audit_report_status",
+ "state" => "failure",
"expected" => "FAILED"
},
{
- "state" => "failure",
"matcher" => "error",
+ "state" => "failure",
"expected" => "AccessDeniedException"
}
]
)
}.merge(options))
@@ -128,35 +128,35 @@
# Wait until a Certificate Authority CSR is created
class CertificateAuthorityCSRCreated
# @param [Hash] options
# @option options [required, Client] :client
- # @option options [Integer] :max_attempts (60)
+ # @option options [Integer] :max_attempts (40)
# @option options [Integer] :delay (3)
# @option options [Proc] :before_attempt
# @option options [Proc] :before_wait
def initialize(options)
@client = options.fetch(:client)
@waiter = Aws::Waiters::Waiter.new({
- max_attempts: 60,
+ max_attempts: 40,
delay: 3,
poller: Aws::Waiters::Poller.new(
operation_name: :get_certificate_authority_csr,
acceptors: [
{
+ "matcher" => "error",
"state" => "success",
- "matcher" => "status",
- "expected" => 200
+ "expected" => false
},
{
- "state" => "retry",
"matcher" => "error",
+ "state" => "retry",
"expected" => "RequestInProgressException"
},
{
- "state" => "failure",
"matcher" => "error",
+ "state" => "failure",
"expected" => "AccessDeniedException"
}
]
)
}.merge(options))
@@ -176,34 +176,34 @@
# Wait until a certificate is issued
class CertificateIssued
# @param [Hash] options
# @option options [required, Client] :client
- # @option options [Integer] :max_attempts (60)
+ # @option options [Integer] :max_attempts (120)
# @option options [Integer] :delay (1)
# @option options [Proc] :before_attempt
# @option options [Proc] :before_wait
def initialize(options)
@client = options.fetch(:client)
@waiter = Aws::Waiters::Waiter.new({
- max_attempts: 60,
+ max_attempts: 120,
delay: 1,
poller: Aws::Waiters::Poller.new(
operation_name: :get_certificate,
acceptors: [
{
+ "matcher" => "error",
"state" => "success",
- "matcher" => "status",
- "expected" => 200
+ "expected" => false
},
{
- "state" => "retry",
"matcher" => "error",
+ "state" => "retry",
"expected" => "RequestInProgressException"
},
{
- "state" => "failure",
"matcher" => "error",
+ "state" => "failure",
"expected" => "AccessDeniedException"
}
]
)
}.merge(options))