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, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
flatMapStream, getIdiomaticTraitName, getIdiomaticTraitName, isSynthetic, makeAbsoluteName, makeAbsoluteName
public 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()
ToSmithyBuilder
toBuilder
in interface ToSmithyBuilder<AuthorizersTrait>
protected Node createNode()
AbstractTrait
createNode
in class AbstractTrait