Class EndpointAuthUtils
java.lang.Object
software.amazon.smithy.rulesengine.aws.language.functions.EndpointAuthUtils
Utilities for constructing and validating AWS-specific authentication components for rule-sets.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Endpoint.Builder
sigv4
(Endpoint.Builder builder, Literal signingRegion, Literal signingService) Adds SigV4 authentication to the provided endpoint builder.static Endpoint.Builder
sigv4a
(Endpoint.Builder builder, List<Literal> signingRegionSet, Literal signingService) Adds SigV4a authentication to the provided endpoint builder.
-
Method Details
-
sigv4
public static Endpoint.Builder sigv4(Endpoint.Builder builder, Literal signingRegion, Literal signingService) Adds SigV4 authentication to the provided endpoint builder.- Parameters:
builder
- the endpoint builder to augment.signingRegion
- the signing region to use when signing.signingService
- the name of the service to sign with.- Returns:
- the updated endpoint builder.
-
sigv4a
public static Endpoint.Builder sigv4a(Endpoint.Builder builder, List<Literal> signingRegionSet, Literal signingService) Adds SigV4a authentication to the provided endpoint builder.- Parameters:
builder
- the endpoint builder to augment.signingRegionSet
- the set of signing regions to use when signing.signingService
- the name of the service to sign with.- Returns:
- the updated endpoint builder.
-