Interface CfnOAuth2CredentialProvider.CustomOauth2ProviderConfigInputProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnOAuth2CredentialProvider.CustomOauth2ProviderConfigInputProperty.Jsii$Proxy
- Enclosing class:
CfnOAuth2CredentialProvider
@Stability(Stable)
public static interface CfnOAuth2CredentialProvider.CustomOauth2ProviderConfigInputProperty
extends software.amazon.jsii.JsiiSerializable
Input configuration for a custom OAuth2 provider.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.bedrockagentcore.*;
CustomOauth2ProviderConfigInputProperty customOauth2ProviderConfigInputProperty = CustomOauth2ProviderConfigInputProperty.builder()
.oauthDiscovery(Oauth2DiscoveryProperty.builder()
.authorizationServerMetadata(Oauth2AuthorizationServerMetadataProperty.builder()
.authorizationEndpoint("authorizationEndpoint")
.issuer("issuer")
.tokenEndpoint("tokenEndpoint")
// the properties below are optional
.responseTypes(List.of("responseTypes"))
.build())
.discoveryUrl("discoveryUrl")
.build())
// the properties below are optional
.clientAuthenticationMethod("clientAuthenticationMethod")
.clientId("clientId")
.clientSecret("clientSecret")
.clientSecretConfig(SecretReferenceProperty.builder()
.jsonKey("jsonKey")
.secretId("secretId")
.build())
.clientSecretSource("clientSecretSource")
.onBehalfOfTokenExchangeConfig(OnBehalfOfTokenExchangeConfigProperty.builder()
.grantType("grantType")
// the properties below are optional
.tokenExchangeGrantTypeConfig(TokenExchangeGrantTypeConfigProperty.builder()
.actorTokenContent("actorTokenContent")
// the properties below are optional
.actorTokenScopes(List.of("actorTokenScopes"))
.build())
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic final classAn implementation forCfnOAuth2CredentialProvider.CustomOauth2ProviderConfigInputProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringThe client authentication method to use when authenticating with the token endpoint.default StringThe client ID for the custom OAuth2 provider.default StringThe client secret for the custom OAuth2 provider.default ObjectA reference to a customer-provided secret stored in AWS Secrets Manager.default StringThe source of the client secret.Discovery information for an OAuth2 provider.default ObjectConfiguration for on-behalf-of token exchange.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getOauthDiscovery
Discovery information for an OAuth2 provider.Returns union: either
IResolvableorCfnOAuth2CredentialProvider.Oauth2DiscoveryProperty- See Also:
-
getClientAuthenticationMethod
The client authentication method to use when authenticating with the token endpoint.- See Also:
-
getClientId
The client ID for the custom OAuth2 provider.- See Also:
-
getClientSecret
The client secret for the custom OAuth2 provider.- See Also:
-
getClientSecretConfig
A reference to a customer-provided secret stored in AWS Secrets Manager.Returns union: either
IResolvableorCfnOAuth2CredentialProvider.SecretReferenceProperty- See Also:
-
getClientSecretSource
The source of the client secret.- See Also:
-
getOnBehalfOfTokenExchangeConfig
Configuration for on-behalf-of token exchange.Returns union: either
IResolvableorCfnOAuth2CredentialProvider.OnBehalfOfTokenExchangeConfigProperty- See Also:
-
builder
@Stability(Stable) static CfnOAuth2CredentialProvider.CustomOauth2ProviderConfigInputProperty.Builder builder()
-