aws-cdk-lib.aws_events.CfnConnection.OAuthParametersProperty

interface OAuthParametersProperty

LanguageType name
.NETAmazon.CDK.AWS.Events.CfnConnection.OAuthParametersProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsevents#CfnConnection_OAuthParametersProperty
Javasoftware.amazon.awscdk.services.events.CfnConnection.OAuthParametersProperty
Pythonaws_cdk.aws_events.CfnConnection.OAuthParametersProperty
TypeScript aws-cdk-lib » aws_events » CfnConnection » OAuthParametersProperty

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 { aws_events as events } from 'aws-cdk-lib';
const oAuthParametersProperty: events.CfnConnection.OAuthParametersProperty = {
  authorizationEndpoint: 'authorizationEndpoint',
  clientParameters: {
    clientId: 'clientId',
    clientSecret: 'clientSecret',
  },
  httpMethod: 'httpMethod',

  // the properties below are optional
  oAuthHttpParameters: {
    bodyParameters: [{
      key: 'key',
      value: 'value',

      // the properties below are optional
      isValueSecret: false,
    }],
    headerParameters: [{
      key: 'key',
      value: 'value',

      // the properties below are optional
      isValueSecret: false,
    }],
    queryStringParameters: [{
      key: 'key',
      value: 'value',

      // the properties below are optional
      isValueSecret: false,
    }],
  },
};

Properties

NameTypeDescription
authorizationEndpointstringThe URL to the authorization endpoint when OAuth is specified as the authorization type.
clientParametersIResolvable | ClientParametersPropertyA CreateConnectionOAuthClientRequestParameters object that contains the client parameters for OAuth authorization.
httpMethodstringThe method to use for the authorization request.
oAuthHttpParameters?IResolvable | ConnectionHttpParametersPropertyA ConnectionHttpParameters object that contains details about the additional parameters to use for the connection.

authorizationEndpoint

Type: string

The URL to the authorization endpoint when OAuth is specified as the authorization type.


clientParameters

Type: IResolvable | ClientParametersProperty

A CreateConnectionOAuthClientRequestParameters object that contains the client parameters for OAuth authorization.


httpMethod

Type: string

The method to use for the authorization request.


oAuthHttpParameters?

Type: IResolvable | ConnectionHttpParametersProperty (optional)

A ConnectionHttpParameters object that contains details about the additional parameters to use for the connection.