Interface OAuthAuthorizationProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
OAuthAuthorizationProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-12-17T21:37:31.478Z")
@Stability(Stable)
public interface OAuthAuthorizationProps
extends software.amazon.jsii.JsiiSerializable
Properties for
Authorization.oauth()
.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.*; import software.amazon.awscdk.services.events.*; HttpParameter httpParameter; SecretValue secretValue; OAuthAuthorizationProps oAuthAuthorizationProps = OAuthAuthorizationProps.builder() .authorizationEndpoint("authorizationEndpoint") .clientId("clientId") .clientSecret(secretValue) .httpMethod(HttpMethod.POST) // the properties below are optional .bodyParameters(Map.of( "bodyParametersKey", httpParameter)) .headerParameters(Map.of( "headerParametersKey", httpParameter)) .queryStringParameters(Map.of( "queryStringParametersKey", httpParameter)) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forOAuthAuthorizationProps
static final class
An implementation forOAuthAuthorizationProps
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
The URL to the authorization endpoint.default Map<String,
HttpParameter> Additional string parameters to add to the OAuth request body.The client ID to use for OAuth authorization for the connection.The client secret associated with the client ID to use for OAuth authorization for the connection.default Map<String,
HttpParameter> Additional string parameters to add to the OAuth request header.The method to use for the authorization request.default Map<String,
HttpParameter> Additional string parameters to add to the OAuth request query string.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAuthorizationEndpoint
The URL to the authorization endpoint. -
getClientId
The client ID to use for OAuth authorization for the connection. -
getClientSecret
The client secret associated with the client ID to use for OAuth authorization for the connection. -
getHttpMethod
The method to use for the authorization request.(Can only choose POST, GET or PUT).
-
getBodyParameters
Additional string parameters to add to the OAuth request body.Default: - No additional parameters
-
getHeaderParameters
Additional string parameters to add to the OAuth request header.Default: - No additional parameters
-
getQueryStringParameters
Additional string parameters to add to the OAuth request query string.Default: - No additional parameters
-
builder
- Returns:
- a
OAuthAuthorizationProps.Builder
ofOAuthAuthorizationProps
-