GatewayCredentialProvider Class
Factory class for creating different Gateway Credential Providers.
| Source | lib/gateway/outbound-auth/credential-provider.ts |
|---|
Initializer
ts
new GatewayCredentialProvider()
python
GatewayCredentialProvider()
java
new GatewayCredentialProvider()
csharp
new GatewayCredentialProvider()
go
NewGatewayCredentialProvider()
Methods
fromApiKeyIdentity(provider: IApiKeyCredentialProvider, options?: FromApiKeyIdentityOptions): ICredentialProviderConfig@staticmethod def from_api_key_identity(provider: IApiKeyCredentialProvider, options: typing.Optional[FromApiKeyIdentityOptions] = None) -> ICredentialProviderConfigpublic static ICredentialProviderConfig fromApiKeyIdentity(IApiKeyCredentialProvider provider, FromApiKeyIdentityOptions options)public static ICredentialProviderConfig FromApiKeyIdentity(IApiKeyCredentialProvider provider, FromApiKeyIdentityOptions? options = null)func FromApiKeyIdentity(Provider IApiKeyCredentialProvider, Options FromApiKeyIdentityOptions) ICredentialProviderConfig static #Create an API key outbound auth configuration from a Token Vault {@link IApiKeyCredentialProvider} construct.
Prefer this over {@link GatewayCredentialProvider.fromApiKeyIdentityArn} when the provider is defined in CDK.
fromApiKeyIdentityArn(props: ApiKeyCredentialProviderProps): ICredentialProviderConfig@staticmethod def from_api_key_identity_arn(props: ApiKeyCredentialProviderProps) -> ICredentialProviderConfigpublic static ICredentialProviderConfig fromApiKeyIdentityArn(ApiKeyCredentialProviderProps props)public static ICredentialProviderConfig FromApiKeyIdentityArn(ApiKeyCredentialProviderProps props)func FromApiKeyIdentityArn(Props ApiKeyCredentialProviderProps) ICredentialProviderConfig static #Create an API key credential provider from Identity ARN Use this method when you have the Identity ARN as a string.
1 parameter · returns
Parameters
propspropspropspropsProps— - The configuration properties for the API key credential provider.
Returns: ICredentialProviderConfig configured for API key authentication
fromIamRole(): ICredentialProviderConfig@staticmethod def from_iam_role() -> ICredentialProviderConfigpublic static ICredentialProviderConfig fromIamRole()public static ICredentialProviderConfig FromIamRole()func FromIamRole() ICredentialProviderConfig static #Create an IAM role credential provider.
returns
Returns: IIamRoleCredentialProvider configured for IAM role authentication
fromOauthIdentity(provider: IOAuth2CredentialProvider, options: FromOauthIdentityOptions): ICredentialProviderConfig@staticmethod def from_oauth_identity(provider: IOAuth2CredentialProvider, options: FromOauthIdentityOptions) -> ICredentialProviderConfigpublic static ICredentialProviderConfig fromOauthIdentity(IOAuth2CredentialProvider provider, FromOauthIdentityOptions options)public static ICredentialProviderConfig FromOauthIdentity(IOAuth2CredentialProvider provider, FromOauthIdentityOptions options)func FromOauthIdentity(Provider IOAuth2CredentialProvider, Options FromOauthIdentityOptions) ICredentialProviderConfig static #Create an OAuth outbound auth configuration from a Token Vault {@link IOAuth2CredentialProvider} construct.
Prefer this over {@link GatewayCredentialProvider.fromOauthIdentityArn} when the provider is defined in CDK.
fromOauthIdentityArn(props: OAuthConfiguration): ICredentialProviderConfig@staticmethod def from_oauth_identity_arn(props: OAuthConfiguration) -> ICredentialProviderConfigpublic static ICredentialProviderConfig fromOauthIdentityArn(OAuthConfiguration props)public static ICredentialProviderConfig FromOauthIdentityArn(OAuthConfiguration props)func FromOauthIdentityArn(Props OAuthConfiguration) ICredentialProviderConfig static #Create an OAuth credential provider from Identity ARN Use this method when you have the Identity ARN as a string.
1 parameter · returns
Parameters
propspropspropspropsProps— - The configuration properties for the OAuth credential provider.
Returns: ICredentialProviderConfig configured for OAuth authentication