@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.309Z") @Stability(value=Stable) public interface OAuthAuthorizationProps extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
OAuthAuthorizationProps.Builder
A builder for
OAuthAuthorizationProps |
static class |
OAuthAuthorizationProps.Jsii$Proxy
An implementation for
OAuthAuthorizationProps |
| Modifier and Type | Method and Description |
|---|---|
static OAuthAuthorizationProps.Builder |
builder() |
String |
getAuthorizationEndpoint()
The URL to the authorization endpoint.
|
default Map<String,HttpParameter> |
getBodyParameters()
Additional string parameters to add to the OAuth request body.
|
String |
getClientId()
The client ID to use for OAuth authorization for the connection.
|
SecretValue |
getClientSecret()
The client secret associated with the client ID to use for OAuth authorization for the connection.
|
default Map<String,HttpParameter> |
getHeaderParameters()
Additional string parameters to add to the OAuth request header.
|
HttpMethod |
getHttpMethod()
The method to use for the authorization request.
|
default Map<String,HttpParameter> |
getQueryStringParameters()
Additional string parameters to add to the OAuth request query string.
|
@Stability(value=Stable) @NotNull String getAuthorizationEndpoint()
@Stability(value=Stable) @NotNull String getClientId()
@Stability(value=Stable) @NotNull SecretValue getClientSecret()
@Stability(value=Stable) @NotNull HttpMethod getHttpMethod()
(Can only choose POST, GET or PUT).
@Stability(value=Stable) @Nullable default Map<String,HttpParameter> getBodyParameters()
Default: - No additional parameters
@Stability(value=Stable) @Nullable default Map<String,HttpParameter> getHeaderParameters()
Default: - No additional parameters
@Stability(value=Stable) @Nullable default Map<String,HttpParameter> getQueryStringParameters()
Default: - No additional parameters
@Stability(value=Stable) static OAuthAuthorizationProps.Builder builder()
OAuthAuthorizationProps.Builder of OAuthAuthorizationPropsCopyright © 2022. All rights reserved.