aws-cdk-lib.aws_events.CfnConnection.AuthParametersProperty

interface AuthParametersProperty

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

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 { aws_events as events } from 'aws-cdk-lib';
const authParametersProperty: events.CfnConnection.AuthParametersProperty = {
  apiKeyAuthParameters: {
    apiKeyName: 'apiKeyName',
    apiKeyValue: 'apiKeyValue',
  },
  basicAuthParameters: {
    password: 'password',
    username: 'username',
  },
  invocationHttpParameters: {
    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,
    }],
  },
  oAuthParameters: {
    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
apiKeyAuthParameters?IResolvable | ApiKeyAuthParametersPropertyThe API Key parameters to use for authorization.
basicAuthParameters?IResolvable | BasicAuthParametersPropertyThe authorization parameters for Basic authorization.
invocationHttpParameters?IResolvable | ConnectionHttpParametersPropertyAdditional parameters for the connection that are passed through with every invocation to the HTTP endpoint.
oAuthParameters?IResolvable | OAuthParametersPropertyThe OAuth parameters to use for authorization.

apiKeyAuthParameters?

Type: IResolvable | ApiKeyAuthParametersProperty (optional)

The API Key parameters to use for authorization.


basicAuthParameters?

Type: IResolvable | BasicAuthParametersProperty (optional)

The authorization parameters for Basic authorization.


invocationHttpParameters?

Type: IResolvable | ConnectionHttpParametersProperty (optional)

Additional parameters for the connection that are passed through with every invocation to the HTTP endpoint.


oAuthParameters?

Type: IResolvable | OAuthParametersProperty (optional)

The OAuth parameters to use for authorization.