import { SlackEventBus } from '@wisegpt/awscdk-slack-event-bus'
new SlackEventBus(scope: Construct, id: string, props: SlackEventBusProps)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
SlackEventBusProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: SlackEventBusProps
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
slackEventsRequestUrl |
No description. |
public toString(): string
Returns a string representation of this construct.
public slackEventsRequestUrl(appId?: string): string
- Type: string
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
import { SlackEventBus } from '@wisegpt/awscdk-slack-event-bus'
SlackEventBus.isConstruct(x: any)
Checks if x
is a construct.
- Type: any
Any object.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
eventBus |
aws-cdk-lib.aws_events.EventBus |
No description. |
slackHandlerLambdaAlias |
aws-cdk-lib.aws_lambda.IFunction |
No description. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly eventBus: EventBus;
- Type: aws-cdk-lib.aws_events.EventBus
public readonly slackHandlerLambdaAlias: IFunction;
- Type: aws-cdk-lib.aws_lambda.IFunction
import { SlackEventBusProps } from '@wisegpt/awscdk-slack-event-bus'
const slackEventBusProps: SlackEventBusProps = { ... }
Name | Type | Description |
---|---|---|
secret |
aws-cdk-lib.aws_secretsmanager.ISecret |
secret is a reference to the Secret parameter that stores the signing-secret and also if oAuth enabled; |
eventBusName |
string |
eventBusName optional name to override the event bus name. |
httpApi |
@aws-cdk/aws-apigatewayv2-alpha.HttpApi |
httpApi optional HTTP API to use, instead of Construct creating a new one. |
singleApp |
SlackEventBusSingleAppProps |
singleApp optionally configure to use a single application with fixed app id and path to use. |
public readonly secret: ISecret;
- Type: aws-cdk-lib.aws_secretsmanager.ISecret
secret
is a reference to the Secret parameter that stores the signing-secret and also if oAuth enabled;
client id / client secret for each individual appId
public readonly eventBusName: string;
- Type: string
eventBusName
optional name to override the event bus name.
public readonly httpApi: HttpApi;
- Type: @aws-cdk/aws-apigatewayv2-alpha.HttpApi
httpApi
optional HTTP API to use, instead of Construct creating a new one.
public readonly singleApp: SlackEventBusSingleAppProps;
singleApp
optionally configure to use a single application with fixed app id and path to use.
import { SlackEventBusSingleAppProps } from '@wisegpt/awscdk-slack-event-bus'
const slackEventBusSingleAppProps: SlackEventBusSingleAppProps = { ... }
Name | Type | Description |
---|---|---|
appId |
string |
appId to use for all request validating. |
eventsApiPath |
string |
eventsApiPath which would be used for the events path. |
public readonly appId: string;
- Type: string
appId
to use for all request validating.
public readonly eventsApiPath: string;
- Type: string
eventsApiPath
which would be used for the events path.