interface OAuthAuthorizationProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Events.OAuthAuthorizationProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsevents#OAuthAuthorizationProps |
Java | software.amazon.awscdk.services.events.OAuthAuthorizationProps |
Python | aws_cdk.aws_events.OAuthAuthorizationProps |
TypeScript (source) | aws-cdk-lib » 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 cdk from 'aws-cdk-lib';
import { aws_events as events } from 'aws-cdk-lib';
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.