Interface CfnConnection.OAuthParametersProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnConnection.OAuthParametersProperty.Jsii$Proxy
Enclosing class:
CfnConnection

@Stability(Stable) public static interface CfnConnection.OAuthParametersProperty extends software.amazon.jsii.JsiiSerializable
Contains the OAuth authorization parameters to use for the connection.

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.events.*;
 OAuthParametersProperty oAuthParametersProperty = OAuthParametersProperty.builder()
         .authorizationEndpoint("authorizationEndpoint")
         .clientParameters(ClientParametersProperty.builder()
                 .clientId("clientId")
                 .clientSecret("clientSecret")
                 .build())
         .httpMethod("httpMethod")
         // the properties below are optional
         .oAuthHttpParameters(ConnectionHttpParametersProperty.builder()
                 .bodyParameters(List.of(ParameterProperty.builder()
                         .key("key")
                         .value("value")
                         // the properties below are optional
                         .isValueSecret(false)
                         .build()))
                 .headerParameters(List.of(ParameterProperty.builder()
                         .key("key")
                         .value("value")
                         // the properties below are optional
                         .isValueSecret(false)
                         .build()))
                 .queryStringParameters(List.of(ParameterProperty.builder()
                         .key("key")
                         .value("value")
                         // the properties below are optional
                         .isValueSecret(false)
                         .build()))
                 .build())
         .build();
 
  • Method Details

    • getAuthorizationEndpoint

      @Stability(Stable) @NotNull String getAuthorizationEndpoint()
      The URL to the authorization endpoint when OAuth is specified as the authorization type.
    • getClientParameters

      @Stability(Stable) @NotNull Object getClientParameters()
      A CreateConnectionOAuthClientRequestParameters object that contains the client parameters for OAuth authorization.
    • getHttpMethod

      @Stability(Stable) @NotNull String getHttpMethod()
      The method to use for the authorization request.
    • getOAuthHttpParameters

      @Stability(Stable) @Nullable default Object getOAuthHttpParameters()
      A ConnectionHttpParameters object that contains details about the additional parameters to use for the connection.
    • builder

      @Stability(Stable) static CfnConnection.OAuthParametersProperty.Builder builder()
      Returns:
      a CfnConnection.OAuthParametersProperty.Builder of CfnConnection.OAuthParametersProperty