interface OAuthAuthorizationProps
| Language | Type name | 
|---|---|
|  .NET | Amazon.CDK.AWS.Events.OAuthAuthorizationProps | 
|  Java | software.amazon.awscdk.services.events.OAuthAuthorizationProps | 
|  Python | aws_cdk.aws_events.OAuthAuthorizationProps | 
|  TypeScript (source) | @aws-cdk/aws-events»OAuthAuthorizationProps | 
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 * as events from '@aws-cdk/aws-events';
import * as cdk from '@aws-cdk/core';
declare const httpParameter: events.HttpParameter;
declare const secretValue: cdk.SecretValue;
const oAuthAuthorizationProps: events.OAuthAuthorizationProps = {
  authorizationEndpoint: 'authorizationEndpoint',
  clientId: 'clientId',
  clientSecret: secretValue,
  httpMethod: events.HttpMethod.POST,
  // the properties below are optional
  bodyParameters: {
    bodyParametersKey: httpParameter,
  },
  headerParameters: {
    headerParametersKey: httpParameter,
  },
  queryStringParameters: {
    queryStringParametersKey: httpParameter,
  },
};
Properties
| Name | Type | Description | 
|---|---|---|
| authorization | string | The URL to the authorization endpoint. | 
| client | string | The client ID to use for OAuth authorization for the connection. | 
| client | Secret | The client secret associated with the client ID to use for OAuth authorization for the connection. | 
| http | Http | The method to use for the authorization request. | 
| body | { [string]: Http } | Additional string parameters to add to the OAuth request body. | 
| header | { [string]: Http } | Additional string parameters to add to the OAuth request header. | 
| query | { [string]: Http } | Additional string parameters to add to the OAuth request query string. | 
authorizationEndpoint
Type:
string
The URL to the authorization endpoint.
clientId
Type:
string
The client ID to use for OAuth authorization for the connection.
clientSecret
Type:
Secret
The client secret associated with the client ID to use for OAuth authorization for the connection.
httpMethod
Type:
Http
The method to use for the authorization request.
(Can only choose POST, GET or PUT).
bodyParameters?
Type:
{ [string]: Http }
(optional, default: No additional parameters)
Additional string parameters to add to the OAuth request body.
headerParameters?
Type:
{ [string]: Http }
(optional, default: No additional parameters)
Additional string parameters to add to the OAuth request header.
queryStringParameters?
Type:
{ [string]: Http }
(optional, default: No additional parameters)
Additional string parameters to add to the OAuth request query string.
