software.amazon.awssdk.services.lambda.waiters.internal.WaitersRuntime Maven / Gradle / Ivy
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package software.amazon.awssdk.services.lambda.waiters.internal;
import java.util.Collections;
import java.util.List;
import java.util.Optional;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.annotations.SdkInternalApi;
import software.amazon.awssdk.core.SdkResponse;
import software.amazon.awssdk.core.exception.SdkServiceException;
import software.amazon.awssdk.core.waiters.WaiterAcceptor;
import software.amazon.awssdk.core.waiters.WaiterState;
/**
* Contains classes used at runtime by the code generator classes for waiter acceptors generated from JMESPath
* expressions.
*/
@Generated("software.amazon.awssdk:codegen")
@SdkInternalApi
public final class WaitersRuntime {
private static final String FAILURE_MESSAGE_FORMAT_FOR_STATUS_MATCHER = "A waiter acceptor was matched on HTTP response "
+ "status code (%d) and transitioned the waiter to " + "failure state";
/**
* The default acceptors that should be matched *last* in the list of acceptors used by the SDK client waiters.
*/
public static final List> DEFAULT_ACCEPTORS = Collections.unmodifiableList(defaultAcceptors());
private WaitersRuntime() {
}
private static List> defaultAcceptors() {
return Collections.singletonList(retryOnUnmatchedResponseWaiter());
}
private static WaiterAcceptor
© 2015 - 2025 Weber Informatics LLC | Privacy Policy