Interface CfnConnection.OAuth2PropertiesInputProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnConnection.OAuth2PropertiesInputProperty.Jsii$Proxy
- Enclosing class:
CfnConnection
@Stability(Stable)
public static interface CfnConnection.OAuth2PropertiesInputProperty
extends software.amazon.jsii.JsiiSerializable
A structure containing properties for OAuth2 in the CreateConnection request.
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.glue.*;
Object tokenUrlParametersMap;
OAuth2PropertiesInputProperty oAuth2PropertiesInputProperty = OAuth2PropertiesInputProperty.builder()
.authorizationCodeProperties(AuthorizationCodePropertiesProperty.builder()
.authorizationCode("authorizationCode")
.redirectUri("redirectUri")
.build())
.oAuth2ClientApplication(OAuth2ClientApplicationProperty.builder()
.awsManagedClientApplicationReference("awsManagedClientApplicationReference")
.userManagedClientApplicationClientId("userManagedClientApplicationClientId")
.build())
.oAuth2Credentials(OAuth2CredentialsProperty.builder()
.accessToken("accessToken")
.jwtToken("jwtToken")
.refreshToken("refreshToken")
.userManagedClientApplicationClientSecret("userManagedClientApplicationClientSecret")
.build())
.oAuth2GrantType("oAuth2GrantType")
.tokenUrl("tokenUrl")
.tokenUrlParametersMap(tokenUrlParametersMap)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnConnection.OAuth2PropertiesInputPropertystatic final classAn implementation forCfnConnection.OAuth2PropertiesInputProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectThe set of properties required for the the OAuth2AUTHORIZATION_CODEgrant type.default ObjectThe client application type in the CreateConnection request.default ObjectThe credentials used when the authentication type is OAuth2 authentication.default StringThe OAuth2 grant type in the CreateConnection request.default StringThe URL of the provider's authentication server, to exchange an authorization code for an access token.default ObjectA map of parameters that are added to the tokenGETrequest.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAuthorizationCodeProperties
The set of properties required for the the OAuth2AUTHORIZATION_CODEgrant type.Returns union: either
IResolvableorCfnConnection.AuthorizationCodePropertiesProperty- See Also:
-
getOAuth2ClientApplication
The client application type in the CreateConnection request.For example,
AWS_MANAGEDorUSER_MANAGED.Returns union: either
IResolvableorCfnConnection.OAuth2ClientApplicationProperty- See Also:
-
getOAuth2Credentials
The credentials used when the authentication type is OAuth2 authentication.Returns union: either
IResolvableorCfnConnection.OAuth2CredentialsProperty- See Also:
-
getOAuth2GrantType
The OAuth2 grant type in the CreateConnection request.For example,
AUTHORIZATION_CODE,JWT_BEARER, orCLIENT_CREDENTIALS.- See Also:
-
getTokenUrl
The URL of the provider's authentication server, to exchange an authorization code for an access token.- See Also:
-
getTokenUrlParametersMap
A map of parameters that are added to the tokenGETrequest.- See Also:
-
builder
-