Interface CfnConnection.AuthParametersProperty

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

@Stability(Stable) public static interface CfnConnection.AuthParametersProperty extends software.amazon.jsii.JsiiSerializable
Contains the 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.*;
 AuthParametersProperty authParametersProperty = AuthParametersProperty.builder()
         .apiKeyAuthParameters(ApiKeyAuthParametersProperty.builder()
                 .apiKeyName("apiKeyName")
                 .apiKeyValue("apiKeyValue")
                 .build())
         .basicAuthParameters(BasicAuthParametersProperty.builder()
                 .password("password")
                 .username("username")
                 .build())
         .invocationHttpParameters(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())
         .oAuthParameters(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())
         .build();
 
  • Method Details

    • getApiKeyAuthParameters

      @Stability(Stable) @Nullable default Object getApiKeyAuthParameters()
      The API Key parameters to use for authorization.
    • getBasicAuthParameters

      @Stability(Stable) @Nullable default Object getBasicAuthParameters()
      The authorization parameters for Basic authorization.
    • getInvocationHttpParameters

      @Stability(Stable) @Nullable default Object getInvocationHttpParameters()
      Additional parameters for the connection that are passed through with every invocation to the HTTP endpoint.
    • getOAuthParameters

      @Stability(Stable) @Nullable default Object getOAuthParameters()
      The OAuth parameters to use for authorization.
    • builder

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