APIAuthorizationType<T extends AmplifyAuthProvider>
enum
The types of authorization one can use while talking to an Amazon AppSync GraphQL backend, or an Amazon API Gateway endpoint.
See also:
Constructors
-
APIAuthorizationType(AmplifyAuthProviderToken<
T> authProviderToken) -
const
Values
-
none
→ const APIAuthorizationType<
AmplifyAuthProvider> -
For public APIs.
const APIAuthorizationType(AmplifyAuthProviderToken<AmplifyAuthProvider>('NONE'))
-
apiKey
→ const APIAuthorizationType<
ApiKeyAmplifyAuthProvider> -
A hardcoded key which can provide throttling for an unauthenticated API.
See also:
const APIAuthorizationType(AmplifyAuthProviderToken<ApiKeyAmplifyAuthProvider>('API_KEY'))
-
iam
→ const APIAuthorizationType<
AWSIamAmplifyAuthProvider> -
Use an IAM access/secret key credential pair to authorize access to an API.
See also:
const APIAuthorizationType(AmplifyAuthProviderToken<AWSIamAmplifyAuthProvider>('AWS_IAM'))
-
oidc
→ const APIAuthorizationType<
TokenAmplifyAuthProvider> -
OpenID Connect is a simple identity layer on top of OAuth2.0.
See also:
const APIAuthorizationType(AmplifyAuthProviderToken<TokenAmplifyAuthProvider>('OPENID_CONNECT'))
-
userPools
→ const APIAuthorizationType<
TokenIdentityAmplifyAuthProvider> -
Control access to date by putting users into different permissions pools.
See also:
const APIAuthorizationType(AmplifyAuthProviderToken<TokenIdentityAmplifyAuthProvider>('AMAZON_COGNITO_USER_POOLS'))
-
function
→ const APIAuthorizationType<
TokenAmplifyAuthProvider> -
Control access by calling a lambda function.
See also:
const APIAuthorizationType(AmplifyAuthProviderToken<TokenAmplifyAuthProvider>('AWS_LAMBDA'))
Properties
-
authProviderToken
→ AmplifyAuthProviderToken<
T> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
APIAuthorizationType< AmplifyAuthProvider> > - A constant List of the values in this enum, in order of their declaration.