agent-claw: automated task changes
This commit is contained in:
13
cdk/node_modules/aws-cdk-lib/aws-chatbot/.jsiirc.json
generated
vendored
Normal file
13
cdk/node_modules/aws-cdk-lib/aws-chatbot/.jsiirc.json
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"targets": {
|
||||
"java": {
|
||||
"package": "software.amazon.awscdk.services.chatbot"
|
||||
},
|
||||
"dotnet": {
|
||||
"namespace": "Amazon.CDK.AWS.Chatbot"
|
||||
},
|
||||
"python": {
|
||||
"module": "aws_cdk.aws_chatbot"
|
||||
}
|
||||
}
|
||||
}
|
||||
66
cdk/node_modules/aws-cdk-lib/aws-chatbot/README.md
generated
vendored
Normal file
66
cdk/node_modules/aws-cdk-lib/aws-chatbot/README.md
generated
vendored
Normal file
@@ -0,0 +1,66 @@
|
||||
# AWS::Chatbot Construct Library
|
||||
|
||||
|
||||
AWS Chatbot is an AWS service that enables DevOps and software development teams to use Slack chat rooms to monitor and respond to operational events in their AWS Cloud. AWS Chatbot processes AWS service notifications from Amazon Simple Notification Service (Amazon SNS), and forwards them to Slack chat rooms so teams can analyze and act on them immediately, regardless of location.
|
||||
|
||||
This module is part of the [AWS Cloud Development Kit](https://github.com/aws/aws-cdk) project.
|
||||
|
||||
```ts
|
||||
import * as chatbot from 'aws-cdk-lib/aws-chatbot';
|
||||
import * as sns from 'aws-cdk-lib/aws-sns';
|
||||
import * as iam from 'aws-cdk-lib/aws-iam';
|
||||
|
||||
const slackChannel = new chatbot.SlackChannelConfiguration(this, 'MySlackChannel', {
|
||||
slackChannelConfigurationName: 'YOUR_CHANNEL_NAME',
|
||||
slackWorkspaceId: 'YOUR_SLACK_WORKSPACE_ID',
|
||||
slackChannelId: 'YOUR_SLACK_CHANNEL_ID',
|
||||
});
|
||||
|
||||
slackChannel.addToRolePolicy(new iam.PolicyStatement({
|
||||
effect: iam.Effect.ALLOW,
|
||||
actions: [
|
||||
's3:GetObject',
|
||||
],
|
||||
resources: ['arn:aws:s3:::abc/xyz/123.txt'],
|
||||
}));
|
||||
|
||||
slackChannel.addNotificationTopic(new sns.Topic(this, 'MyTopic'));
|
||||
```
|
||||
|
||||
## Log Group
|
||||
|
||||
Slack channel configuration automatically create a log group with the name `/aws/chatbot/<configuration-name>` in `us-east-1` upon first execution with
|
||||
log data set to never expire.
|
||||
|
||||
The `logRetention` property can be used to set a different expiration period. A log group will be created if not already exists.
|
||||
If the log group already exists, its expiration will be configured to the value specified in this construct (never expire, by default).
|
||||
|
||||
By default, CDK uses the AWS SDK retry options when interacting with the log group. The `logRetentionRetryOptions` property
|
||||
allows you to customize the maximum number of retries and base backoff duration.
|
||||
|
||||
*Note* that, if `logRetention` is set, a [CloudFormation custom
|
||||
resource](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cfn-customresource.html) is added
|
||||
to the stack that pre-creates the log group as part of the stack deployment, if it already doesn't exist, and sets the
|
||||
correct log retention period (never expire, by default).
|
||||
|
||||
## Guardrails
|
||||
|
||||
By default slack channel will use `AdministratorAccess` managed policy as guardrail policy.
|
||||
The `guardrailPolicies` property can be used to set a different set of managed policies.
|
||||
|
||||
## User Role Requirement
|
||||
|
||||
Administrators can [require user roles](https://docs.aws.amazon.com/chatbot/latest/adminguide/understanding-permissions.html#user-role-requirement) for all current channel members and channels and all channels created in the future by enabling a user role requirement.
|
||||
|
||||
You can configure this feature by setting the `userRoleRequired` property.
|
||||
|
||||
```ts
|
||||
import * as chatbot from 'aws-cdk-lib/aws-chatbot';
|
||||
|
||||
const slackChannel = new chatbot.SlackChannelConfiguration(this, 'MySlackChannel', {
|
||||
slackChannelConfigurationName: 'YOUR_CHANNEL_NAME',
|
||||
slackWorkspaceId: 'YOUR_SLACK_WORKSPACE_ID',
|
||||
slackChannelId: 'YOUR_SLACK_CHANNEL_ID',
|
||||
userRoleRequired: true,
|
||||
});
|
||||
```
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-chatbot/index.d.ts
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-chatbot/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export * from './lib';
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-chatbot/index.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-chatbot/index.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";var __createBinding=exports&&exports.__createBinding||(Object.create?(function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}):(function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]})),__exportStar=exports&&exports.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0});var _noFold;exports.CfnMicrosoftTeamsChannelConfiguration=void 0,Object.defineProperty(exports,_noFold="CfnMicrosoftTeamsChannelConfiguration",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").CfnMicrosoftTeamsChannelConfiguration;return Object.defineProperty(exports,_noFold="CfnMicrosoftTeamsChannelConfiguration",{enumerable:!0,configurable:!0,value}),value}}),exports.CfnSlackChannelConfiguration=void 0,Object.defineProperty(exports,_noFold="CfnSlackChannelConfiguration",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").CfnSlackChannelConfiguration;return Object.defineProperty(exports,_noFold="CfnSlackChannelConfiguration",{enumerable:!0,configurable:!0,value}),value}}),exports.CfnCustomAction=void 0,Object.defineProperty(exports,_noFold="CfnCustomAction",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").CfnCustomAction;return Object.defineProperty(exports,_noFold="CfnCustomAction",{enumerable:!0,configurable:!0,value}),value}}),exports.LoggingLevel=void 0,Object.defineProperty(exports,_noFold="LoggingLevel",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").LoggingLevel;return Object.defineProperty(exports,_noFold="LoggingLevel",{enumerable:!0,configurable:!0,value}),value}}),exports.SlackChannelConfiguration=void 0,Object.defineProperty(exports,_noFold="SlackChannelConfiguration",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").SlackChannelConfiguration;return Object.defineProperty(exports,_noFold="SlackChannelConfiguration",{enumerable:!0,configurable:!0,value}),value}});
|
||||
814
cdk/node_modules/aws-cdk-lib/aws-chatbot/lib/chatbot.generated.d.ts
generated
vendored
Normal file
814
cdk/node_modules/aws-cdk-lib/aws-chatbot/lib/chatbot.generated.d.ts
generated
vendored
Normal file
@@ -0,0 +1,814 @@
|
||||
import * as cdk from "../../core/lib";
|
||||
import * as constructs from "constructs";
|
||||
import * as cfn_parse from "../../core/lib/helpers-internal";
|
||||
import { CustomActionReference, ICustomActionRef, IMicrosoftTeamsChannelConfigurationRef, ISlackChannelConfigurationRef, MicrosoftTeamsChannelConfigurationReference, SlackChannelConfigurationReference } from "../../interfaces/generated/aws-chatbot-interfaces.generated";
|
||||
import { aws_iam as iamRefs, aws_sns as snsRefs } from "../../interfaces";
|
||||
/**
|
||||
* > AWS Chatbot is now . [Learn more](https://docs.aws.amazon.com//chatbot/latest/adminguide/service-rename.html) > > `Type` attribute values remain unchanged.
|
||||
*
|
||||
* The `AWS::Chatbot::MicrosoftTeamsChannelConfiguration` resource configures a Microsoft Teams channel to allow users to use with CloudFormation templates.
|
||||
*
|
||||
* This resource requires some setup to be done in the in chat applications console. To provide the required Microsoft Teams team and tenant IDs, you must perform the initial authorization flow with Microsoft Teams in the in chat applications console, then copy and paste the IDs from the console. For more details, see steps 1-3 in [Get started with Microsoft Teams](https://docs.aws.amazon.com/chatbot/latest/adminguide/teams-setup.html#teams-client-setup) in the *in chat applications Administrator Guide* .
|
||||
*
|
||||
* @cloudformationResource AWS::Chatbot::MicrosoftTeamsChannelConfiguration
|
||||
* @stability external
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-microsoftteamschannelconfiguration.html
|
||||
*/
|
||||
export declare class CfnMicrosoftTeamsChannelConfiguration extends cdk.CfnResource implements cdk.IInspectable, IMicrosoftTeamsChannelConfigurationRef, cdk.ITaggableV2 {
|
||||
/**
|
||||
* The CloudFormation resource type name for this resource class.
|
||||
*/
|
||||
static readonly CFN_RESOURCE_TYPE_NAME: string;
|
||||
/**
|
||||
* Build a CfnMicrosoftTeamsChannelConfiguration from CloudFormation properties
|
||||
*
|
||||
* A factory method that creates a new instance of this class from an object
|
||||
* containing the CloudFormation properties of this resource.
|
||||
* Used in the @aws-cdk/cloudformation-include module.
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
static _fromCloudFormation(scope: constructs.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnMicrosoftTeamsChannelConfiguration;
|
||||
/**
|
||||
* Checks whether the given object is a CfnMicrosoftTeamsChannelConfiguration
|
||||
*/
|
||||
static isCfnMicrosoftTeamsChannelConfiguration(x: any): x is CfnMicrosoftTeamsChannelConfiguration;
|
||||
static arnForMicrosoftTeamsChannelConfiguration(resource: IMicrosoftTeamsChannelConfigurationRef): string;
|
||||
/**
|
||||
* Tag Manager which manages the tags for this resource
|
||||
*/
|
||||
readonly cdkTagManager: cdk.TagManager;
|
||||
/**
|
||||
* The name of the configuration.
|
||||
*/
|
||||
private _configurationName;
|
||||
/**
|
||||
* Links a list of resource ARNs (for example, custom action ARNs) to a Microsoft Teams channel configuration for .
|
||||
*/
|
||||
private _customizationResourceArns?;
|
||||
/**
|
||||
* The list of IAM policy ARNs that are applied as channel guardrails.
|
||||
*/
|
||||
private _guardrailPolicies?;
|
||||
/**
|
||||
* The ARN of the IAM role that defines the permissions for .
|
||||
*/
|
||||
private _iamRoleArn;
|
||||
/**
|
||||
* Specifies the logging level for this configuration. This property affects the log entries pushed to Amazon CloudWatch Logs.
|
||||
*/
|
||||
private _loggingLevel?;
|
||||
/**
|
||||
* The ARNs of the SNS topics that deliver notifications to .
|
||||
*/
|
||||
private _snsTopicArns?;
|
||||
/**
|
||||
* The tags to add to the configuration.
|
||||
*/
|
||||
private _tags?;
|
||||
/**
|
||||
* The ID of the Microsoft Team authorized with .
|
||||
*/
|
||||
private _teamId;
|
||||
/**
|
||||
* The ID of the Microsoft Teams channel.
|
||||
*/
|
||||
private _teamsChannelId;
|
||||
/**
|
||||
* The name of the Microsoft Teams channel.
|
||||
*/
|
||||
private _teamsChannelName?;
|
||||
/**
|
||||
* The ID of the Microsoft Teams tenant.
|
||||
*/
|
||||
private _teamsTenantId;
|
||||
/**
|
||||
* Enables use of a user role requirement in your chat configuration.
|
||||
*/
|
||||
private _userRoleRequired?;
|
||||
protected readonly cfnPropertyNames: Record<string, string>;
|
||||
/**
|
||||
* Create a new `AWS::Chatbot::MicrosoftTeamsChannelConfiguration`.
|
||||
*
|
||||
* @param scope Scope in which this resource is defined
|
||||
* @param id Construct identifier for this resource (unique in its scope)
|
||||
* @param props Resource properties
|
||||
*/
|
||||
constructor(scope: constructs.Construct, id: string, props: CfnMicrosoftTeamsChannelConfigurationProps);
|
||||
get microsoftTeamsChannelConfigurationRef(): MicrosoftTeamsChannelConfigurationReference;
|
||||
/**
|
||||
* The name of the configuration.
|
||||
*/
|
||||
get configurationName(): string;
|
||||
/**
|
||||
* The name of the configuration.
|
||||
*/
|
||||
set configurationName(value: string);
|
||||
/**
|
||||
* Links a list of resource ARNs (for example, custom action ARNs) to a Microsoft Teams channel configuration for .
|
||||
*/
|
||||
get customizationResourceArns(): Array<string> | undefined;
|
||||
/**
|
||||
* Links a list of resource ARNs (for example, custom action ARNs) to a Microsoft Teams channel configuration for .
|
||||
*/
|
||||
set customizationResourceArns(value: Array<string> | undefined);
|
||||
/**
|
||||
* The list of IAM policy ARNs that are applied as channel guardrails.
|
||||
*/
|
||||
get guardrailPolicies(): Array<string> | undefined;
|
||||
/**
|
||||
* The list of IAM policy ARNs that are applied as channel guardrails.
|
||||
*/
|
||||
set guardrailPolicies(value: Array<string> | undefined);
|
||||
/**
|
||||
* The ARN of the IAM role that defines the permissions for .
|
||||
*/
|
||||
get iamRoleArn(): string;
|
||||
/**
|
||||
* The ARN of the IAM role that defines the permissions for .
|
||||
*/
|
||||
set iamRoleArn(value: string);
|
||||
/**
|
||||
* Specifies the logging level for this configuration. This property affects the log entries pushed to Amazon CloudWatch Logs.
|
||||
*/
|
||||
get loggingLevel(): string | undefined;
|
||||
/**
|
||||
* Specifies the logging level for this configuration. This property affects the log entries pushed to Amazon CloudWatch Logs.
|
||||
*/
|
||||
set loggingLevel(value: string | undefined);
|
||||
/**
|
||||
* The ARNs of the SNS topics that deliver notifications to .
|
||||
*/
|
||||
get snsTopicArns(): Array<string> | undefined;
|
||||
/**
|
||||
* The ARNs of the SNS topics that deliver notifications to .
|
||||
*/
|
||||
set snsTopicArns(value: Array<string> | undefined);
|
||||
/**
|
||||
* The tags to add to the configuration.
|
||||
*/
|
||||
get tags(): Array<cdk.CfnTag> | undefined;
|
||||
/**
|
||||
* The tags to add to the configuration.
|
||||
*/
|
||||
set tags(value: Array<cdk.CfnTag> | undefined);
|
||||
/**
|
||||
* The ID of the Microsoft Team authorized with .
|
||||
*/
|
||||
get teamId(): string;
|
||||
/**
|
||||
* The ID of the Microsoft Team authorized with .
|
||||
*/
|
||||
set teamId(value: string);
|
||||
/**
|
||||
* The ID of the Microsoft Teams channel.
|
||||
*/
|
||||
get teamsChannelId(): string;
|
||||
/**
|
||||
* The ID of the Microsoft Teams channel.
|
||||
*/
|
||||
set teamsChannelId(value: string);
|
||||
/**
|
||||
* The name of the Microsoft Teams channel.
|
||||
*/
|
||||
get teamsChannelName(): string | undefined;
|
||||
/**
|
||||
* The name of the Microsoft Teams channel.
|
||||
*/
|
||||
set teamsChannelName(value: string | undefined);
|
||||
/**
|
||||
* The ID of the Microsoft Teams tenant.
|
||||
*/
|
||||
get teamsTenantId(): string;
|
||||
/**
|
||||
* The ID of the Microsoft Teams tenant.
|
||||
*/
|
||||
set teamsTenantId(value: string);
|
||||
/**
|
||||
* Enables use of a user role requirement in your chat configuration.
|
||||
*/
|
||||
get userRoleRequired(): boolean | cdk.IResolvable | undefined;
|
||||
/**
|
||||
* Enables use of a user role requirement in your chat configuration.
|
||||
*/
|
||||
set userRoleRequired(value: boolean | cdk.IResolvable | undefined);
|
||||
/**
|
||||
* The ARN of the resource.
|
||||
*
|
||||
* @cloudformationAttribute Arn
|
||||
*/
|
||||
get attrArn(): string;
|
||||
protected get cfnProperties(): Record<string, any>;
|
||||
/**
|
||||
* Examines the CloudFormation resource and discloses attributes
|
||||
*
|
||||
* @param inspector tree inspector to collect and process attributes
|
||||
*/
|
||||
inspect(inspector: cdk.TreeInspector): void;
|
||||
protected renderProperties(props: Record<string, any>): Record<string, any>;
|
||||
}
|
||||
/**
|
||||
* Properties for defining a `CfnMicrosoftTeamsChannelConfiguration`
|
||||
*
|
||||
* @struct
|
||||
* @stability external
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-microsoftteamschannelconfiguration.html
|
||||
*/
|
||||
export interface CfnMicrosoftTeamsChannelConfigurationProps {
|
||||
/**
|
||||
* The name of the configuration.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-microsoftteamschannelconfiguration.html#cfn-chatbot-microsoftteamschannelconfiguration-configurationname
|
||||
*/
|
||||
readonly configurationName: string;
|
||||
/**
|
||||
* Links a list of resource ARNs (for example, custom action ARNs) to a Microsoft Teams channel configuration for .
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-microsoftteamschannelconfiguration.html#cfn-chatbot-microsoftteamschannelconfiguration-customizationresourcearns
|
||||
*/
|
||||
readonly customizationResourceArns?: Array<string>;
|
||||
/**
|
||||
* The list of IAM policy ARNs that are applied as channel guardrails.
|
||||
*
|
||||
* The AWS managed 'AdministratorAccess' policy is applied as a default if this is not set.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-microsoftteamschannelconfiguration.html#cfn-chatbot-microsoftteamschannelconfiguration-guardrailpolicies
|
||||
*/
|
||||
readonly guardrailPolicies?: Array<string>;
|
||||
/**
|
||||
* The ARN of the IAM role that defines the permissions for .
|
||||
*
|
||||
* This is a user-defined role that will assume. This is not the service-linked role. For more information, see [IAM Policies for in chat applications](https://docs.aws.amazon.com/chatbot/latest/adminguide/chatbot-iam-policies.html) .
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-microsoftteamschannelconfiguration.html#cfn-chatbot-microsoftteamschannelconfiguration-iamrolearn
|
||||
*/
|
||||
readonly iamRoleArn: string;
|
||||
/**
|
||||
* 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"
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-microsoftteamschannelconfiguration.html#cfn-chatbot-microsoftteamschannelconfiguration-logginglevel
|
||||
*/
|
||||
readonly loggingLevel?: string;
|
||||
/**
|
||||
* The ARNs of the SNS topics that deliver notifications to .
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-microsoftteamschannelconfiguration.html#cfn-chatbot-microsoftteamschannelconfiguration-snstopicarns
|
||||
*/
|
||||
readonly snsTopicArns?: Array<string>;
|
||||
/**
|
||||
* The tags to add to the configuration.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-microsoftteamschannelconfiguration.html#cfn-chatbot-microsoftteamschannelconfiguration-tags
|
||||
*/
|
||||
readonly tags?: Array<cdk.CfnTag>;
|
||||
/**
|
||||
* The ID of the Microsoft Team authorized with .
|
||||
*
|
||||
* To get the team ID, you must perform the initial authorization flow with Microsoft Teams in the in chat applications console. Then you can copy and paste the team ID from the console. For more details, see steps 1-3 in [Tutorial: Get started with Microsoft Teams](https://docs.aws.amazon.com/chatbot/latest/adminguide/teams-setup.html) in the *in chat applications Administrator Guide* .
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-microsoftteamschannelconfiguration.html#cfn-chatbot-microsoftteamschannelconfiguration-teamid
|
||||
*/
|
||||
readonly teamId: string;
|
||||
/**
|
||||
* The ID of the Microsoft Teams channel.
|
||||
*
|
||||
* To get the channel ID, open Microsoft Teams, right click on the channel name in the left pane, then choose *Copy* . An example of the channel ID syntax is: `19%3ab6ef35dc342d56ba5654e6fc6d25a071%40thread.tacv2` .
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-microsoftteamschannelconfiguration.html#cfn-chatbot-microsoftteamschannelconfiguration-teamschannelid
|
||||
*/
|
||||
readonly teamsChannelId: string;
|
||||
/**
|
||||
* The name of the Microsoft Teams channel.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-microsoftteamschannelconfiguration.html#cfn-chatbot-microsoftteamschannelconfiguration-teamschannelname
|
||||
*/
|
||||
readonly teamsChannelName?: string;
|
||||
/**
|
||||
* The ID of the Microsoft Teams tenant.
|
||||
*
|
||||
* To get the tenant ID, you must perform the initial authorization flow with Microsoft Teams in the in chat applications console. Then you can copy and paste the tenant ID from the console. For more details, see steps 1-3 in [Tutorial: Get started with Microsoft Teams](https://docs.aws.amazon.com/chatbot/latest/adminguide/teams-setup.html) in the *in chat applications Administrator Guide* .
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-microsoftteamschannelconfiguration.html#cfn-chatbot-microsoftteamschannelconfiguration-teamstenantid
|
||||
*/
|
||||
readonly teamsTenantId: string;
|
||||
/**
|
||||
* Enables use of a user role requirement in your chat configuration.
|
||||
*
|
||||
* @default - false
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-microsoftteamschannelconfiguration.html#cfn-chatbot-microsoftteamschannelconfiguration-userrolerequired
|
||||
*/
|
||||
readonly userRoleRequired?: boolean | cdk.IResolvable;
|
||||
}
|
||||
/**
|
||||
* > AWS Chatbot is now . [Learn more](https://docs.aws.amazon.com//chatbot/latest/adminguide/service-rename.html) > > `Type` attribute values remain unchanged.
|
||||
*
|
||||
* The `AWS::Chatbot::SlackChannelConfiguration` resource configures a Slack channel to allow users to use with CloudFormation templates.
|
||||
*
|
||||
* This resource requires some setup to be done in the in chat applications console. To provide the required Slack workspace ID, you must perform the initial authorization flow with Slack in the in chat applications console, then copy and paste the workspace ID from the console. For more details, see steps 1-3 in [Tutorial: Get started with Slack](https://docs.aws.amazon.com/chatbot/latest/adminguide/slack-setup.html#slack-client-setup) in the *in chat applications User Guide* .
|
||||
*
|
||||
* @cloudformationResource AWS::Chatbot::SlackChannelConfiguration
|
||||
* @stability external
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-slackchannelconfiguration.html
|
||||
*/
|
||||
export declare class CfnSlackChannelConfiguration extends cdk.CfnResource implements cdk.IInspectable, ISlackChannelConfigurationRef, cdk.ITaggableV2 {
|
||||
/**
|
||||
* The CloudFormation resource type name for this resource class.
|
||||
*/
|
||||
static readonly CFN_RESOURCE_TYPE_NAME: string;
|
||||
/**
|
||||
* Build a CfnSlackChannelConfiguration from CloudFormation properties
|
||||
*
|
||||
* A factory method that creates a new instance of this class from an object
|
||||
* containing the CloudFormation properties of this resource.
|
||||
* Used in the @aws-cdk/cloudformation-include module.
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
static _fromCloudFormation(scope: constructs.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnSlackChannelConfiguration;
|
||||
/**
|
||||
* Checks whether the given object is a CfnSlackChannelConfiguration
|
||||
*/
|
||||
static isCfnSlackChannelConfiguration(x: any): x is CfnSlackChannelConfiguration;
|
||||
static arnForSlackChannelConfiguration(resource: ISlackChannelConfigurationRef): string;
|
||||
/**
|
||||
* Tag Manager which manages the tags for this resource
|
||||
*/
|
||||
readonly cdkTagManager: cdk.TagManager;
|
||||
/**
|
||||
* The name of the configuration.
|
||||
*/
|
||||
private _configurationName;
|
||||
/**
|
||||
* Links a list of resource ARNs (for example, custom action ARNs) to a Slack channel configuration for .
|
||||
*/
|
||||
private _customizationResourceArns?;
|
||||
/**
|
||||
* The list of IAM policy ARNs that are applied as channel guardrails.
|
||||
*/
|
||||
private _guardrailPolicies?;
|
||||
/**
|
||||
* The ARN of the IAM role that defines the permissions for .
|
||||
*/
|
||||
private _iamRoleArn;
|
||||
/**
|
||||
* Specifies the logging level for this configuration. This property affects the log entries pushed to Amazon CloudWatch Logs.
|
||||
*/
|
||||
private _loggingLevel?;
|
||||
/**
|
||||
* The ID of the Slack channel.
|
||||
*/
|
||||
private _slackChannelId;
|
||||
/**
|
||||
* The ID of the Slack workspace authorized with .
|
||||
*/
|
||||
private _slackWorkspaceId;
|
||||
/**
|
||||
* The ARNs of the SNS topics that deliver notifications to .
|
||||
*/
|
||||
private _snsTopicArns?;
|
||||
/**
|
||||
* The tags to add to the configuration.
|
||||
*/
|
||||
private _tags?;
|
||||
/**
|
||||
* Enables use of a user role requirement in your chat configuration.
|
||||
*/
|
||||
private _userRoleRequired?;
|
||||
protected readonly cfnPropertyNames: Record<string, string>;
|
||||
/**
|
||||
* Create a new `AWS::Chatbot::SlackChannelConfiguration`.
|
||||
*
|
||||
* @param scope Scope in which this resource is defined
|
||||
* @param id Construct identifier for this resource (unique in its scope)
|
||||
* @param props Resource properties
|
||||
*/
|
||||
constructor(scope: constructs.Construct, id: string, props: CfnSlackChannelConfigurationProps);
|
||||
get slackChannelConfigurationRef(): SlackChannelConfigurationReference;
|
||||
/**
|
||||
* The name of the configuration.
|
||||
*/
|
||||
get configurationName(): string;
|
||||
/**
|
||||
* The name of the configuration.
|
||||
*/
|
||||
set configurationName(value: string);
|
||||
/**
|
||||
* Links a list of resource ARNs (for example, custom action ARNs) to a Slack channel configuration for .
|
||||
*/
|
||||
get customizationResourceArns(): Array<string> | undefined;
|
||||
/**
|
||||
* Links a list of resource ARNs (for example, custom action ARNs) to a Slack channel configuration for .
|
||||
*/
|
||||
set customizationResourceArns(value: Array<string> | undefined);
|
||||
/**
|
||||
* The list of IAM policy ARNs that are applied as channel guardrails.
|
||||
*/
|
||||
get guardrailPolicies(): Array<string> | undefined;
|
||||
/**
|
||||
* The list of IAM policy ARNs that are applied as channel guardrails.
|
||||
*/
|
||||
set guardrailPolicies(value: Array<string> | undefined);
|
||||
/**
|
||||
* The ARN of the IAM role that defines the permissions for .
|
||||
*/
|
||||
get iamRoleArn(): string;
|
||||
/**
|
||||
* The ARN of the IAM role that defines the permissions for .
|
||||
*/
|
||||
set iamRoleArn(value: string);
|
||||
/**
|
||||
* Specifies the logging level for this configuration. This property affects the log entries pushed to Amazon CloudWatch Logs.
|
||||
*/
|
||||
get loggingLevel(): string | undefined;
|
||||
/**
|
||||
* Specifies the logging level for this configuration. This property affects the log entries pushed to Amazon CloudWatch Logs.
|
||||
*/
|
||||
set loggingLevel(value: string | undefined);
|
||||
/**
|
||||
* The ID of the Slack channel.
|
||||
*/
|
||||
get slackChannelId(): string;
|
||||
/**
|
||||
* The ID of the Slack channel.
|
||||
*/
|
||||
set slackChannelId(value: string);
|
||||
/**
|
||||
* The ID of the Slack workspace authorized with .
|
||||
*/
|
||||
get slackWorkspaceId(): string;
|
||||
/**
|
||||
* The ID of the Slack workspace authorized with .
|
||||
*/
|
||||
set slackWorkspaceId(value: string);
|
||||
/**
|
||||
* The ARNs of the SNS topics that deliver notifications to .
|
||||
*/
|
||||
get snsTopicArns(): Array<string> | undefined;
|
||||
/**
|
||||
* The ARNs of the SNS topics that deliver notifications to .
|
||||
*/
|
||||
set snsTopicArns(value: Array<string> | undefined);
|
||||
/**
|
||||
* The tags to add to the configuration.
|
||||
*/
|
||||
get tags(): Array<cdk.CfnTag> | undefined;
|
||||
/**
|
||||
* The tags to add to the configuration.
|
||||
*/
|
||||
set tags(value: Array<cdk.CfnTag> | undefined);
|
||||
/**
|
||||
* Enables use of a user role requirement in your chat configuration.
|
||||
*/
|
||||
get userRoleRequired(): boolean | cdk.IResolvable | undefined;
|
||||
/**
|
||||
* Enables use of a user role requirement in your chat configuration.
|
||||
*/
|
||||
set userRoleRequired(value: boolean | cdk.IResolvable | undefined);
|
||||
/**
|
||||
* The ARN of the resource.
|
||||
*
|
||||
* @cloudformationAttribute Arn
|
||||
*/
|
||||
get attrArn(): string;
|
||||
protected get cfnProperties(): Record<string, any>;
|
||||
/**
|
||||
* Examines the CloudFormation resource and discloses attributes
|
||||
*
|
||||
* @param inspector tree inspector to collect and process attributes
|
||||
*/
|
||||
inspect(inspector: cdk.TreeInspector): void;
|
||||
protected renderProperties(props: Record<string, any>): Record<string, any>;
|
||||
}
|
||||
/**
|
||||
* Properties for defining a `CfnSlackChannelConfiguration`
|
||||
*
|
||||
* @struct
|
||||
* @stability external
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-slackchannelconfiguration.html
|
||||
*/
|
||||
export interface CfnSlackChannelConfigurationProps {
|
||||
/**
|
||||
* The name of the configuration.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-slackchannelconfiguration.html#cfn-chatbot-slackchannelconfiguration-configurationname
|
||||
*/
|
||||
readonly configurationName: string;
|
||||
/**
|
||||
* Links a list of resource ARNs (for example, custom action ARNs) to a Slack channel configuration for .
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-slackchannelconfiguration.html#cfn-chatbot-slackchannelconfiguration-customizationresourcearns
|
||||
*/
|
||||
readonly customizationResourceArns?: Array<string>;
|
||||
/**
|
||||
* The list of IAM policy ARNs that are applied as channel guardrails.
|
||||
*
|
||||
* The AWS managed 'AdministratorAccess' policy is applied as a default if this is not set.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-slackchannelconfiguration.html#cfn-chatbot-slackchannelconfiguration-guardrailpolicies
|
||||
*/
|
||||
readonly guardrailPolicies?: Array<string>;
|
||||
/**
|
||||
* The ARN of the IAM role that defines the permissions for .
|
||||
*
|
||||
* This is a user-defined role that will assume. This is not the service-linked role. For more information, see [IAM Policies for in chat applications](https://docs.aws.amazon.com/chatbot/latest/adminguide/chatbot-iam-policies.html) .
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-slackchannelconfiguration.html#cfn-chatbot-slackchannelconfiguration-iamrolearn
|
||||
*/
|
||||
readonly iamRoleArn: iamRefs.IRoleRef | string;
|
||||
/**
|
||||
* 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"
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-slackchannelconfiguration.html#cfn-chatbot-slackchannelconfiguration-logginglevel
|
||||
*/
|
||||
readonly loggingLevel?: 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 character string at the end of the URL. For example, `ABCBBLZZZ` .
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-slackchannelconfiguration.html#cfn-chatbot-slackchannelconfiguration-slackchannelid
|
||||
*/
|
||||
readonly slackChannelId: string;
|
||||
/**
|
||||
* The ID of the Slack workspace authorized with .
|
||||
*
|
||||
* To get the workspace ID, you must perform the initial authorization flow with Slack in the in chat applications console. Then you can copy and paste the workspace ID from the console. For more details, see steps 1-3 in [Tutorial: Get started with Slack](https://docs.aws.amazon.com/chatbot/latest/adminguide/slack-setup.html#slack-client-setup) in the *in chat applications User Guide* .
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-slackchannelconfiguration.html#cfn-chatbot-slackchannelconfiguration-slackworkspaceid
|
||||
*/
|
||||
readonly slackWorkspaceId: string;
|
||||
/**
|
||||
* The ARNs of the SNS topics that deliver notifications to .
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-slackchannelconfiguration.html#cfn-chatbot-slackchannelconfiguration-snstopicarns
|
||||
*/
|
||||
readonly snsTopicArns?: Array<snsRefs.ITopicRef | string>;
|
||||
/**
|
||||
* The tags to add to the configuration.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-slackchannelconfiguration.html#cfn-chatbot-slackchannelconfiguration-tags
|
||||
*/
|
||||
readonly tags?: Array<cdk.CfnTag>;
|
||||
/**
|
||||
* Enables use of a user role requirement in your chat configuration.
|
||||
*
|
||||
* @default - false
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-slackchannelconfiguration.html#cfn-chatbot-slackchannelconfiguration-userrolerequired
|
||||
*/
|
||||
readonly userRoleRequired?: boolean | cdk.IResolvable;
|
||||
}
|
||||
/**
|
||||
* > AWS Chatbot is now .
|
||||
*
|
||||
* [Learn more](https://docs.aws.amazon.com//chatbot/latest/adminguide/service-rename.html)
|
||||
* >
|
||||
* > `Type` attribute values remain unchanged.
|
||||
*
|
||||
* @cloudformationResource AWS::Chatbot::CustomAction
|
||||
* @stability external
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-customaction.html
|
||||
*/
|
||||
export declare class CfnCustomAction extends cdk.CfnResource implements cdk.IInspectable, ICustomActionRef, cdk.ITaggableV2 {
|
||||
/**
|
||||
* The CloudFormation resource type name for this resource class.
|
||||
*/
|
||||
static readonly CFN_RESOURCE_TYPE_NAME: string;
|
||||
/**
|
||||
* Build a CfnCustomAction from CloudFormation properties
|
||||
*
|
||||
* A factory method that creates a new instance of this class from an object
|
||||
* containing the CloudFormation properties of this resource.
|
||||
* Used in the @aws-cdk/cloudformation-include module.
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
static _fromCloudFormation(scope: constructs.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnCustomAction;
|
||||
/**
|
||||
* Checks whether the given object is a CfnCustomAction
|
||||
*/
|
||||
static isCfnCustomAction(x: any): x is CfnCustomAction;
|
||||
static arnForCustomAction(resource: ICustomActionRef): string;
|
||||
/**
|
||||
* The name of the custom action.
|
||||
*/
|
||||
private _actionName;
|
||||
/**
|
||||
* The name used to invoke this action in a chat channel.
|
||||
*/
|
||||
private _aliasName?;
|
||||
/**
|
||||
* Defines when this custom action button should be attached to a notification.
|
||||
*/
|
||||
private _attachments?;
|
||||
/**
|
||||
* Tag Manager which manages the tags for this resource
|
||||
*/
|
||||
readonly cdkTagManager: cdk.TagManager;
|
||||
/**
|
||||
* The definition of the command to run when invoked as an alias or as an action button.
|
||||
*/
|
||||
private _definition;
|
||||
/**
|
||||
* The tags to add to the configuration.
|
||||
*/
|
||||
private _tags?;
|
||||
protected readonly cfnPropertyNames: Record<string, string>;
|
||||
/**
|
||||
* Create a new `AWS::Chatbot::CustomAction`.
|
||||
*
|
||||
* @param scope Scope in which this resource is defined
|
||||
* @param id Construct identifier for this resource (unique in its scope)
|
||||
* @param props Resource properties
|
||||
*/
|
||||
constructor(scope: constructs.Construct, id: string, props: CfnCustomActionProps);
|
||||
get customActionRef(): CustomActionReference;
|
||||
/**
|
||||
* The name of the custom action.
|
||||
*/
|
||||
get actionName(): string;
|
||||
/**
|
||||
* The name of the custom action.
|
||||
*/
|
||||
set actionName(value: string);
|
||||
/**
|
||||
* The name used to invoke this action in a chat channel.
|
||||
*/
|
||||
get aliasName(): string | undefined;
|
||||
/**
|
||||
* The name used to invoke this action in a chat channel.
|
||||
*/
|
||||
set aliasName(value: string | undefined);
|
||||
/**
|
||||
* Defines when this custom action button should be attached to a notification.
|
||||
*/
|
||||
get attachments(): Array<CfnCustomAction.CustomActionAttachmentProperty | cdk.IResolvable> | cdk.IResolvable | undefined;
|
||||
/**
|
||||
* Defines when this custom action button should be attached to a notification.
|
||||
*/
|
||||
set attachments(value: Array<CfnCustomAction.CustomActionAttachmentProperty | cdk.IResolvable> | cdk.IResolvable | undefined);
|
||||
/**
|
||||
* The definition of the command to run when invoked as an alias or as an action button.
|
||||
*/
|
||||
get definition(): CfnCustomAction.CustomActionDefinitionProperty | cdk.IResolvable;
|
||||
/**
|
||||
* The definition of the command to run when invoked as an alias or as an action button.
|
||||
*/
|
||||
set definition(value: CfnCustomAction.CustomActionDefinitionProperty | cdk.IResolvable);
|
||||
/**
|
||||
* The tags to add to the configuration.
|
||||
*/
|
||||
get tags(): Array<cdk.CfnTag> | undefined;
|
||||
/**
|
||||
* The tags to add to the configuration.
|
||||
*/
|
||||
set tags(value: Array<cdk.CfnTag> | undefined);
|
||||
/**
|
||||
* The fully defined ARN of the custom action.
|
||||
*
|
||||
* @cloudformationAttribute CustomActionArn
|
||||
*/
|
||||
get attrCustomActionArn(): string;
|
||||
protected get cfnProperties(): Record<string, any>;
|
||||
/**
|
||||
* Examines the CloudFormation resource and discloses attributes
|
||||
*
|
||||
* @param inspector tree inspector to collect and process attributes
|
||||
*/
|
||||
inspect(inspector: cdk.TreeInspector): void;
|
||||
protected renderProperties(props: Record<string, any>): Record<string, any>;
|
||||
}
|
||||
export declare namespace CfnCustomAction {
|
||||
/**
|
||||
* > AWS Chatbot is now . [Learn more](https://docs.aws.amazon.com//chatbot/latest/adminguide/service-rename.html) > > `Type` attribute values remain unchanged.
|
||||
*
|
||||
* Defines when a custom action button should be attached to a notification.
|
||||
*
|
||||
* @struct
|
||||
* @stability external
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-chatbot-customaction-customactionattachment.html
|
||||
*/
|
||||
interface CustomActionAttachmentProperty {
|
||||
/**
|
||||
* The text of the button that appears on the notification.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-chatbot-customaction-customactionattachment.html#cfn-chatbot-customaction-customactionattachment-buttontext
|
||||
*/
|
||||
readonly buttonText?: string;
|
||||
/**
|
||||
* The criteria for when a button should be shown based on values in the notification.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-chatbot-customaction-customactionattachment.html#cfn-chatbot-customaction-customactionattachment-criteria
|
||||
*/
|
||||
readonly criteria?: Array<CfnCustomAction.CustomActionAttachmentCriteriaProperty | cdk.IResolvable> | cdk.IResolvable;
|
||||
/**
|
||||
* The type of notification that the custom action should be attached to.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-chatbot-customaction-customactionattachment.html#cfn-chatbot-customaction-customactionattachment-notificationtype
|
||||
*/
|
||||
readonly notificationType?: string;
|
||||
/**
|
||||
* The variables to extract from the notification.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-chatbot-customaction-customactionattachment.html#cfn-chatbot-customaction-customactionattachment-variables
|
||||
*/
|
||||
readonly variables?: cdk.IResolvable | Record<string, string>;
|
||||
}
|
||||
/**
|
||||
* > AWS Chatbot is now . [Learn more](https://docs.aws.amazon.com//chatbot/latest/adminguide/service-rename.html) > > `Type` attribute values remain unchanged.
|
||||
*
|
||||
* A criteria for when a button should be shown based on values in the notification.
|
||||
*
|
||||
* @struct
|
||||
* @stability external
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-chatbot-customaction-customactionattachmentcriteria.html
|
||||
*/
|
||||
interface CustomActionAttachmentCriteriaProperty {
|
||||
/**
|
||||
* The operation to perform on the named variable.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-chatbot-customaction-customactionattachmentcriteria.html#cfn-chatbot-customaction-customactionattachmentcriteria-operator
|
||||
*/
|
||||
readonly operator: string;
|
||||
/**
|
||||
* A value that is compared with the actual value of the variable based on the behavior of the operator.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-chatbot-customaction-customactionattachmentcriteria.html#cfn-chatbot-customaction-customactionattachmentcriteria-value
|
||||
*/
|
||||
readonly value?: string;
|
||||
/**
|
||||
* The name of the variable to operate on.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-chatbot-customaction-customactionattachmentcriteria.html#cfn-chatbot-customaction-customactionattachmentcriteria-variablename
|
||||
*/
|
||||
readonly variableName: string;
|
||||
}
|
||||
/**
|
||||
* > AWS Chatbot is now . [Learn more](https://docs.aws.amazon.com//chatbot/latest/adminguide/service-rename.html) > > `Type` attribute values remain unchanged.
|
||||
*
|
||||
* The definition of the command to run when invoked as an alias or as an action button.
|
||||
*
|
||||
* @struct
|
||||
* @stability external
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-chatbot-customaction-customactiondefinition.html
|
||||
*/
|
||||
interface CustomActionDefinitionProperty {
|
||||
/**
|
||||
* The command string to run which may include variables by prefixing with a dollar sign ($).
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-chatbot-customaction-customactiondefinition.html#cfn-chatbot-customaction-customactiondefinition-commandtext
|
||||
*/
|
||||
readonly commandText: string;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Properties for defining a `CfnCustomAction`
|
||||
*
|
||||
* @struct
|
||||
* @stability external
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-customaction.html
|
||||
*/
|
||||
export interface CfnCustomActionProps {
|
||||
/**
|
||||
* The name of the custom action.
|
||||
*
|
||||
* This name is included in the Amazon Resource Name (ARN).
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-customaction.html#cfn-chatbot-customaction-actionname
|
||||
*/
|
||||
readonly actionName: string;
|
||||
/**
|
||||
* The name used to invoke this action in a chat channel.
|
||||
*
|
||||
* For example, `@Amazon Q run my-alias` .
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-customaction.html#cfn-chatbot-customaction-aliasname
|
||||
*/
|
||||
readonly aliasName?: string;
|
||||
/**
|
||||
* Defines when this custom action button should be attached to a notification.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-customaction.html#cfn-chatbot-customaction-attachments
|
||||
*/
|
||||
readonly attachments?: Array<CfnCustomAction.CustomActionAttachmentProperty | cdk.IResolvable> | cdk.IResolvable;
|
||||
/**
|
||||
* The definition of the command to run when invoked as an alias or as an action button.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-customaction.html#cfn-chatbot-customaction-definition
|
||||
*/
|
||||
readonly definition: CfnCustomAction.CustomActionDefinitionProperty | cdk.IResolvable;
|
||||
/**
|
||||
* The tags to add to the configuration.
|
||||
*
|
||||
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-customaction.html#cfn-chatbot-customaction-tags
|
||||
*/
|
||||
readonly tags?: Array<cdk.CfnTag>;
|
||||
}
|
||||
export type { IMicrosoftTeamsChannelConfigurationRef, MicrosoftTeamsChannelConfigurationReference };
|
||||
export type { ISlackChannelConfigurationRef, SlackChannelConfigurationReference };
|
||||
export type { ICustomActionRef, CustomActionReference };
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-chatbot/lib/chatbot.generated.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-chatbot/lib/chatbot.generated.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
2
cdk/node_modules/aws-cdk-lib/aws-chatbot/lib/index.d.ts
generated
vendored
Normal file
2
cdk/node_modules/aws-cdk-lib/aws-chatbot/lib/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export * from './chatbot.generated';
|
||||
export * from './slack-channel-configuration';
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-chatbot/lib/index.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-chatbot/lib/index.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";var __createBinding=exports&&exports.__createBinding||(Object.create?(function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}):(function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]})),__exportStar=exports&&exports.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0});var _noFold;exports.CfnMicrosoftTeamsChannelConfiguration=void 0,Object.defineProperty(exports,_noFold="CfnMicrosoftTeamsChannelConfiguration",{enumerable:!0,configurable:!0,get:()=>{var value=require("./chatbot.generated").CfnMicrosoftTeamsChannelConfiguration;return Object.defineProperty(exports,_noFold="CfnMicrosoftTeamsChannelConfiguration",{enumerable:!0,configurable:!0,value}),value}}),exports.CfnSlackChannelConfiguration=void 0,Object.defineProperty(exports,_noFold="CfnSlackChannelConfiguration",{enumerable:!0,configurable:!0,get:()=>{var value=require("./chatbot.generated").CfnSlackChannelConfiguration;return Object.defineProperty(exports,_noFold="CfnSlackChannelConfiguration",{enumerable:!0,configurable:!0,value}),value}}),exports.CfnCustomAction=void 0,Object.defineProperty(exports,_noFold="CfnCustomAction",{enumerable:!0,configurable:!0,get:()=>{var value=require("./chatbot.generated").CfnCustomAction;return Object.defineProperty(exports,_noFold="CfnCustomAction",{enumerable:!0,configurable:!0,value}),value}}),exports.LoggingLevel=void 0,Object.defineProperty(exports,_noFold="LoggingLevel",{enumerable:!0,configurable:!0,get:()=>{var value=require("./slack-channel-configuration").LoggingLevel;return Object.defineProperty(exports,_noFold="LoggingLevel",{enumerable:!0,configurable:!0,value}),value}}),exports.SlackChannelConfiguration=void 0,Object.defineProperty(exports,_noFold="SlackChannelConfiguration",{enumerable:!0,configurable:!0,get:()=>{var value=require("./slack-channel-configuration").SlackChannelConfiguration;return Object.defineProperty(exports,_noFold="SlackChannelConfiguration",{enumerable:!0,configurable:!0,value}),value}});
|
||||
189
cdk/node_modules/aws-cdk-lib/aws-chatbot/lib/slack-channel-configuration.d.ts
generated
vendored
Normal file
189
cdk/node_modules/aws-cdk-lib/aws-chatbot/lib/slack-channel-configuration.d.ts
generated
vendored
Normal file
@@ -0,0 +1,189 @@
|
||||
import type { Construct } from 'constructs';
|
||||
import type { ISlackChannelConfigurationRef, SlackChannelConfigurationReference } from './chatbot.generated';
|
||||
import * as cloudwatch from '../../aws-cloudwatch';
|
||||
import type * as notifications from '../../aws-codestarnotifications';
|
||||
import * as iam from '../../aws-iam';
|
||||
import * as logs from '../../aws-logs';
|
||||
import type * as sns from '../../aws-sns';
|
||||
import * as cdk from '../../core';
|
||||
/**
|
||||
* Properties for a new Slack channel configuration
|
||||
*/
|
||||
export interface SlackChannelConfigurationProps {
|
||||
/**
|
||||
* The name of Slack channel configuration
|
||||
*/
|
||||
readonly slackChannelConfigurationName: string;
|
||||
/**
|
||||
* The permission role of Slack channel configuration
|
||||
*
|
||||
* @default - A role will be created.
|
||||
*/
|
||||
readonly role?: iam.IRole;
|
||||
/**
|
||||
* 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.
|
||||
* @see https://docs.aws.amazon.com/chatbot/latest/adminguide/setting-up.html#Setup_intro
|
||||
*/
|
||||
readonly slackWorkspaceId: 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.
|
||||
*/
|
||||
readonly slackChannelId: string;
|
||||
/**
|
||||
* The SNS topics that deliver notifications to AWS Chatbot.
|
||||
*
|
||||
* @default None
|
||||
*/
|
||||
readonly notificationTopics?: sns.ITopic[];
|
||||
/**
|
||||
* Specifies the logging level for this configuration.
|
||||
* This property affects the log entries pushed to Amazon CloudWatch Logs.
|
||||
*
|
||||
* @default LoggingLevel.NONE
|
||||
*/
|
||||
readonly loggingLevel?: LoggingLevel;
|
||||
/**
|
||||
* The number of days log events are kept in CloudWatch Logs. When updating
|
||||
* this property, unsetting it doesn't remove the log retention policy. To
|
||||
* remove the retention policy, set the value to `INFINITE`.
|
||||
*
|
||||
* @default logs.RetentionDays.INFINITE
|
||||
*/
|
||||
readonly logRetention?: logs.RetentionDays;
|
||||
/**
|
||||
* The IAM role for the Lambda function associated with the custom resource
|
||||
* that sets the retention policy.
|
||||
*
|
||||
* @default - A new role is created.
|
||||
*/
|
||||
readonly logRetentionRole?: iam.IRole;
|
||||
/**
|
||||
* When log retention is specified, a custom resource attempts to create the CloudWatch log group.
|
||||
* These options control the retry policy when interacting with CloudWatch APIs.
|
||||
*
|
||||
* @default - Default AWS SDK retry options.
|
||||
*/
|
||||
readonly logRetentionRetryOptions?: logs.LogRetentionRetryOptions;
|
||||
/**
|
||||
* A list of IAM managed policies that are applied as channel guardrails.
|
||||
* @default - The AWS managed 'AdministratorAccess' policy is applied as a default if this is not set.
|
||||
*/
|
||||
readonly guardrailPolicies?: iam.IManagedPolicy[];
|
||||
/**
|
||||
* Enables use of a user role requirement in your chat configuration.
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
readonly userRoleRequired?: boolean;
|
||||
}
|
||||
/**
|
||||
* Logging levels include ERROR, INFO, or NONE.
|
||||
*/
|
||||
export declare enum LoggingLevel {
|
||||
/**
|
||||
* ERROR
|
||||
*/
|
||||
ERROR = "ERROR",
|
||||
/**
|
||||
* INFO
|
||||
*/
|
||||
INFO = "INFO",
|
||||
/**
|
||||
* NONE
|
||||
*/
|
||||
NONE = "NONE"
|
||||
}
|
||||
/**
|
||||
* Represents a Slack channel configuration
|
||||
*/
|
||||
export interface ISlackChannelConfiguration extends cdk.IResource, iam.IGrantable, notifications.INotificationRuleTarget, ISlackChannelConfigurationRef {
|
||||
/**
|
||||
* The ARN of the Slack channel configuration
|
||||
* In the form of arn:aws:chatbot:{region}:{account}:chat-configuration/slack-channel/{slackChannelName}
|
||||
* @attribute
|
||||
*/
|
||||
readonly slackChannelConfigurationArn: string;
|
||||
/**
|
||||
* The name of Slack channel configuration
|
||||
* @attribute
|
||||
*/
|
||||
readonly slackChannelConfigurationName: string;
|
||||
/**
|
||||
* The permission role of Slack channel configuration
|
||||
* @attribute
|
||||
*
|
||||
* @default - A role will be created.
|
||||
*/
|
||||
readonly role?: iam.IRole;
|
||||
/**
|
||||
* Adds a statement to the IAM role.
|
||||
*/
|
||||
addToRolePolicy(statement: iam.PolicyStatement): void;
|
||||
/**
|
||||
* Return the given named metric for this SlackChannelConfiguration
|
||||
*/
|
||||
metric(metricName: string, props?: cloudwatch.MetricOptions): cloudwatch.Metric;
|
||||
}
|
||||
/**
|
||||
* Either a new or imported Slack channel configuration
|
||||
*/
|
||||
declare abstract class SlackChannelConfigurationBase extends cdk.Resource implements ISlackChannelConfiguration {
|
||||
abstract readonly slackChannelConfigurationArn: string;
|
||||
abstract readonly slackChannelConfigurationName: string;
|
||||
abstract readonly grantPrincipal: iam.IPrincipal;
|
||||
abstract readonly role?: iam.IRole;
|
||||
/**
|
||||
* Adds extra permission to iam-role of Slack channel configuration
|
||||
*/
|
||||
addToRolePolicy(statement: iam.PolicyStatement): void;
|
||||
/**
|
||||
* Return the given named metric for this SlackChannelConfiguration
|
||||
*/
|
||||
metric(metricName: string, props?: cloudwatch.MetricOptions): cloudwatch.Metric;
|
||||
bindAsNotificationRuleTarget(_scope: Construct): notifications.NotificationRuleTargetConfig;
|
||||
get slackChannelConfigurationRef(): SlackChannelConfigurationReference;
|
||||
}
|
||||
/**
|
||||
* A new Slack channel configuration
|
||||
*/
|
||||
export declare class SlackChannelConfiguration extends SlackChannelConfigurationBase {
|
||||
/**
|
||||
* Uniquely identifies this class.
|
||||
*/
|
||||
static readonly PROPERTY_INJECTION_ID: string;
|
||||
/**
|
||||
* Import an existing Slack channel configuration provided an ARN
|
||||
* @param scope The parent creating construct
|
||||
* @param id The construct's name
|
||||
* @param slackChannelConfigurationArn configuration ARN (i.e. arn:aws:chatbot::1234567890:chat-configuration/slack-channel/my-slack)
|
||||
*
|
||||
* @returns a reference to the existing Slack channel configuration
|
||||
*/
|
||||
static fromSlackChannelConfigurationArn(scope: Construct, id: string, slackChannelConfigurationArn: string): ISlackChannelConfiguration;
|
||||
/**
|
||||
* Return the given named metric for All SlackChannelConfigurations
|
||||
*/
|
||||
static metricAll(metricName: string, props?: cloudwatch.MetricOptions): cloudwatch.Metric;
|
||||
readonly slackChannelConfigurationArn: string;
|
||||
readonly slackChannelConfigurationName: string;
|
||||
readonly role?: iam.IRole;
|
||||
readonly grantPrincipal: iam.IPrincipal;
|
||||
/**
|
||||
* The SNS topic that deliver notifications to AWS Chatbot.
|
||||
* @attribute
|
||||
*/
|
||||
private readonly notificationTopics;
|
||||
constructor(scope: Construct, id: string, props: SlackChannelConfigurationProps);
|
||||
/**
|
||||
* Adds a SNS topic that deliver notifications to AWS Chatbot.
|
||||
*/
|
||||
addNotificationTopic(notificationTopic: sns.ITopic): void;
|
||||
}
|
||||
export {};
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-chatbot/lib/slack-channel-configuration.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-chatbot/lib/slack-channel-configuration.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user