public final class AuthorizersTrait extends AbstractTrait implements ToSmithyBuilder<AuthorizersTrait>
x-amazon-apigateway-authorizer
values that correspond to Smithy authorization definitions.
The key in each key-value pair of the aws.apigateway#authorizers
trait is an arbitrary name that's used to associate authorizer definitions
to operations. The scheme property of an authorizer must correspond
to the name of an authorization scheme of the service the trait is bound to.
When used to generate and OpenAPI model, the aws.apigateway#authorizers
trait is used to add the x-amazon-apigateway-authorizer OpenAPI
extension to the generated security scheme.
| Modifier and Type | Class and Description |
|---|---|
static class |
AuthorizersTrait.Builder
Builds an
AuthorizersTrait. |
static class |
AuthorizersTrait.Provider |
| Modifier and Type | Method and Description |
|---|---|
static AuthorizersTrait.Builder |
builder()
Creates a builder for the trait.
|
protected Node |
createNode()
The result of toNode is used for hashCodes and equality.
|
java.util.Optional<AuthorizerDefinition> |
getAuthorizer(java.lang.String name)
Gets a specific authorizer by name.
|
java.util.Map<java.lang.String,AuthorizerDefinition> |
getAuthorizers()
Gets an immuatable map of authorizer names to their definitions.
|
AuthorizersTrait.Builder |
toBuilder()
Take this object and create a builder that contains all of the
current property values of this object.
|
equals, getSourceLocation, hashCode, setNodeCache, toNode, toShapeId, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitflatMapStream, getIdiomaticTraitName, getIdiomaticTraitName, isSynthetic, makeAbsoluteName, makeAbsoluteNamepublic static final ShapeId ID
public static AuthorizersTrait.Builder builder()
public java.util.Optional<AuthorizerDefinition> getAuthorizer(java.lang.String name)
name - Name of the authorizer to get.public java.util.Map<java.lang.String,AuthorizerDefinition> getAuthorizers()
public AuthorizersTrait.Builder toBuilder()
ToSmithyBuildertoBuilder in interface ToSmithyBuilder<AuthorizersTrait>protected Node createNode()
AbstractTraitcreateNode in class AbstractTrait