Skip to content

Latest commit

 

History

History
865 lines (480 loc) · 14.7 KB

File metadata and controls

865 lines (480 loc) · 14.7 KB

README

@cloudcomponents/cdk-chatops

@cloudcomponents/cdk-chatops

Table of contents

Enumerations

Classes

Interfaces

MS Teams Incoming Webhook Configuration

@cloudcomponents/cdk-chatops / MSTeamsIncomingWebhookConfiguration

Class: MSTeamsIncomingWebhookConfiguration

Hierarchy

  • Construct

    MSTeamsIncomingWebhookConfiguration

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new MSTeamsIncomingWebhookConfiguration(scope, id, props)

Parameters

Name Type
scope Construct
id string
props MSTeamsIncomingWebhookConfigurationProps

Overrides

Construct.constructor

Properties

incomingWebhook

Readonly incomingWebhook: IFunction


node

Readonly node: ConstructNode

The construct tree node associated with this construct.

stability stable

Inherited from

Construct.node

Methods

addEventSource

addEventSource(snsEventSource): void

Parameters

Name Type
snsEventSource SnsEventSource

Returns

void


onPrepare

Protected onPrepare(): void

Perform final modifications before synthesis.

This method can be implemented by derived constructs in order to perform final changes before synthesis. prepare() will be called after child constructs have been prepared.

This is an advanced framework feature. Only use this if you understand the implications.

stability stable

Returns

void

Inherited from

Construct.onPrepare


onSynthesize

Protected onSynthesize(session): void

Allows this construct to emit artifacts into the cloud assembly during synthesis.

This method is usually implemented by framework-level constructs such as Stack and Asset as they participate in synthesizing the cloud assembly.

stability stable

Parameters

Name Type Description
session ISynthesisSession The synthesis session.

Returns

void

Inherited from

Construct.onSynthesize


onValidate

Protected onValidate(): string[]

Validate the current construct.

This method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.

stability stable

Returns

string[]

An array of validation error messages, or an empty array if the construct is valid.

Inherited from

Construct.onValidate


prepare

Protected prepare(): void

Perform final modifications before synthesis.

This method can be implemented by derived constructs in order to perform final changes before synthesis. prepare() will be called after child constructs have been prepared.

This is an advanced framework feature. Only use this if you understand the implications.

stability stable

Returns

void

Inherited from

Construct.prepare


synthesize

Protected synthesize(session): void

Allows this construct to emit artifacts into the cloud assembly during synthesis.

This method is usually implemented by framework-level constructs such as Stack and Asset as they participate in synthesizing the cloud assembly.

stability stable

Parameters

Name Type Description
session ISynthesisSession The synthesis session.

Returns

void

Inherited from

Construct.synthesize


toString

toString(): string

Returns a string representation of this construct.

stability stable

Returns

string

Inherited from

Construct.toString


validate

Protected validate(): string[]

Validate the current construct.

This method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.

stability stable

Returns

string[]

An array of validation error messages, or an empty array if the construct is valid.

Inherited from

Construct.validate


isConstruct

Static isConstruct(x): x is Construct

Return whether the given object is a Construct.

stability stable

Parameters

Name Type
x any

Returns

x is Construct

Inherited from

Construct.isConstruct

Slack Channel Configuration

@cloudcomponents/cdk-chatops / SlackChannelConfiguration

Class: SlackChannelConfiguration

Hierarchy

  • Construct

    SlackChannelConfiguration

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new SlackChannelConfiguration(scope, id, props)

Parameters

Name Type
scope Construct
id string
props SlackChannelConfigurationProps

Overrides

Construct.constructor

Properties

configurationArn

Readonly configurationArn: string


node

Readonly node: ConstructNode

The construct tree node associated with this construct.

stability stable

Inherited from

Construct.node


role

Readonly role: IRole

Methods

addLambdaInvokeCommandPermissions

addLambdaInvokeCommandPermissions(lambda?): void

Allows Lambda-invoke commands in supported clients

Parameters

Name Type
lambda? IFunction

Returns

void


addNotificationPermissions

addNotificationPermissions(): void

Allows AWS Chatbot to retreive metric graphs from Amazon Cloudwatch

Returns

void


addReadOnlyCommandPermissions

addReadOnlyCommandPermissions(): void

Returns

void


addSupportCommandPermissions

addSupportCommandPermissions(): void

Allows calling AWS Support APIs in supportzed clients

Returns

void


addToRolePolicy

addToRolePolicy(statement): void

Adds a statement to the IAM role assumed by the instance.

Parameters

Name Type
statement PolicyStatement

Returns

void


onPrepare

Protected onPrepare(): void

Perform final modifications before synthesis.

This method can be implemented by derived constructs in order to perform final changes before synthesis. prepare() will be called after child constructs have been prepared.

This is an advanced framework feature. Only use this if you understand the implications.

stability stable

Returns

void

Inherited from

Construct.onPrepare


onSynthesize

Protected onSynthesize(session): void

Allows this construct to emit artifacts into the cloud assembly during synthesis.

This method is usually implemented by framework-level constructs such as Stack and Asset as they participate in synthesizing the cloud assembly.

stability stable

Parameters

Name Type Description
session ISynthesisSession The synthesis session.

Returns

void

Inherited from

Construct.onSynthesize


onValidate

Protected onValidate(): string[]

Validate the current construct.

This method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.

stability stable

Returns

string[]

An array of validation error messages, or an empty array if the construct is valid.

Inherited from

Construct.onValidate


prepare

Protected prepare(): void

Perform final modifications before synthesis.

This method can be implemented by derived constructs in order to perform final changes before synthesis. prepare() will be called after child constructs have been prepared.

This is an advanced framework feature. Only use this if you understand the implications.

stability stable

Returns

void

Inherited from

Construct.prepare


synthesize

Protected synthesize(session): void

Allows this construct to emit artifacts into the cloud assembly during synthesis.

This method is usually implemented by framework-level constructs such as Stack and Asset as they participate in synthesizing the cloud assembly.

stability stable

Parameters

Name Type Description
session ISynthesisSession The synthesis session.

Returns

void

Inherited from

Construct.synthesize


toString

toString(): string

Returns a string representation of this construct.

stability stable

Returns

string

Inherited from

Construct.toString


validate

Protected validate(): string[]

Validate the current construct.

This method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.

stability stable

Returns

string[]

An array of validation error messages, or an empty array if the construct is valid.

Inherited from

Construct.validate


isConstruct

Static isConstruct(x): x is Construct

Return whether the given object is a Construct.

stability stable

Parameters

Name Type
x any

Returns

x is Construct

Inherited from

Construct.isConstruct

Account Label Mode

@cloudcomponents/cdk-chatops / AccountLabelMode

Enumeration: AccountLabelMode

Table of contents

Enumeration members

Enumeration members

ALIAS

ALIAS = "ALIAS"


ID

ID = "ID"


ID_AND_ALIAS

ID_AND_ALIAS = "ID_AND_ALIAS"

Logging Level

@cloudcomponents/cdk-chatops / LoggingLevel

Enumeration: LoggingLevel

Table of contents

Enumeration members

Enumeration members

ERROR

ERROR = "ERROR"


INFO

INFO = "INFO"


NONE

NONE = "NONE"

I Slack Channel Configuration

@cloudcomponents/cdk-chatops / ISlackChannelConfiguration

Interface: ISlackChannelConfiguration

Table of contents

Properties

Properties

configurationArn

Readonly configurationArn: string

MS Teams Incoming Webhook Configuration Props

@cloudcomponents/cdk-chatops / MSTeamsIncomingWebhookConfigurationProps

Interface: MSTeamsIncomingWebhookConfigurationProps

Table of contents

Properties

Properties

accountLabelMode

Optional Readonly accountLabelMode: AccountLabelMode

default ACCOUNT_LABEL_MODE.ID_AND_ALIAS


notificationTopics

Optional Readonly notificationTopics: ITopic[]

The SNS topics that deliver notifications to MS Teams.


themeColor

Optional Readonly themeColor: string

Specifies a custom brand color for the card. The color will be displayed in a non-obtrusive manner.

default #CEDB56


url

Readonly url: string

The url of the incoming webhook for a channel

Slack Channel Configuration Props

@cloudcomponents/cdk-chatops / SlackChannelConfigurationProps

Interface: SlackChannelConfigurationProps

Table of contents

Properties

Properties

configurationName

Readonly configurationName: string

The name of the configuration.


loggingLevel

Optional Readonly loggingLevel: LoggingLevel

Specifies the logging level for this configuration. This property affects the log entries pushed to Amazon CloudWatch Logs.

Logging levels include ERROR, INFO, or NONE.

default NONE


notificationTopics

Optional Readonly notificationTopics: ITopic[]

The SNS topics that deliver notifications to AWS Chatbot.


role

Optional Readonly role: IRole

The iam role that defines the permissions for AWS Chatbot.

This is a user-defined role that AWS Chatbot will assume. This is not the service-linked role. For more information, see IAM Policies for AWS Chatbot.


slackChannelId

Readonly slackChannelId: string

The ID of the Slack channel.

To get the ID, open Slack, right click on the channel name in the left pane, then choose Copy Link. The channel ID is the 9-character string at the end of the URL. For example, ABCBBLZZZ.


slackWorkspaceId

Readonly slackWorkspaceId: string

The ID of the Slack workspace authorized with AWS Chatbot.

To get the workspace ID, you must perform the initial authorization flow with Slack in the AWS Chatbot console. Then you can copy and paste the workspace ID from the console. For more details, see steps 1-4 in Setting Up AWS Chatbot with Slack in the AWS Chatbot User Guide.