Documentation ¶
Index ¶
- func CfnNotificationRule_CFN_RESOURCE_TYPE_NAME() *string
- func CfnNotificationRule_IsCfnElement(x interface{}) *bool
- func CfnNotificationRule_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnNotificationRule_IsConstruct(x interface{}) *bool
- func NewCfnNotificationRule_Override(c CfnNotificationRule, scope constructs.Construct, id *string, ...)
- func NewNotificationRule_Override(n NotificationRule, scope constructs.Construct, id *string, ...)
- func NotificationRule_IsConstruct(x interface{}) *bool
- func NotificationRule_IsResource(construct constructs.IConstruct) *bool
- type CfnNotificationRule
- type CfnNotificationRuleProps
- type CfnNotificationRule_TargetProperty
- type DetailType
- type INotificationRule
- type INotificationRuleSource
- type INotificationRuleTarget
- type NotificationRule
- type NotificationRuleOptions
- type NotificationRuleProps
- type NotificationRuleSourceConfig
- type NotificationRuleTargetConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CfnNotificationRule_CFN_RESOURCE_TYPE_NAME ¶
func CfnNotificationRule_CFN_RESOURCE_TYPE_NAME() *string
func CfnNotificationRule_IsCfnElement ¶
func CfnNotificationRule_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func CfnNotificationRule_IsCfnResource ¶
func CfnNotificationRule_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource.
func CfnNotificationRule_IsConstruct ¶
func CfnNotificationRule_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
func NewCfnNotificationRule_Override ¶
func NewCfnNotificationRule_Override(c CfnNotificationRule, scope constructs.Construct, id *string, props *CfnNotificationRuleProps)
Create a new `AWS::CodeStarNotifications::NotificationRule`.
func NewNotificationRule_Override ¶
func NewNotificationRule_Override(n NotificationRule, scope constructs.Construct, id *string, props *NotificationRuleProps)
func NotificationRule_IsConstruct ¶
func NotificationRule_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
func NotificationRule_IsResource ¶
func NotificationRule_IsResource(construct constructs.IConstruct) *bool
Check whether the given construct is a Resource.
Types ¶
type CfnNotificationRule ¶
type CfnNotificationRule interface { awscdk.CfnResource awscdk.IInspectable AttrArn() *string CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} CfnResourceType() *string CreatedBy() *string SetCreatedBy(val *string) CreationStack() *[]*string DetailType() *string SetDetailType(val *string) EventTypeId() *string SetEventTypeId(val *string) EventTypeIds() *[]*string SetEventTypeIds(val *[]*string) LogicalId() *string Name() *string SetName(val *string) Node() constructs.Node Ref() *string Resource() *string SetResource(val *string) Stack() awscdk.Stack Status() *string SetStatus(val *string) Tags() awscdk.TagManager TargetAddress() *string SetTargetAddress(val *string) Targets() interface{} SetTargets(val interface{}) UpdatedProperites() *map[string]interface{} AddDeletionOverride(path *string) AddDependsOn(target awscdk.CfnResource) AddMetadata(key *string, value interface{}) AddOverride(path *string, value interface{}) AddPropertyDeletionOverride(propertyPath *string) AddPropertyOverride(propertyPath *string, value interface{}) ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions) GetAtt(attributeName *string) awscdk.Reference GetMetadata(key *string) interface{} Inspect(inspector awscdk.TreeInspector) OverrideLogicalId(newLogicalId *string) RenderProperties(props *map[string]interface{}) *map[string]interface{} ShouldSynthesize() *bool ToString() *string ValidateProperties(_properties interface{}) }
A CloudFormation `AWS::CodeStarNotifications::NotificationRule`.
Creates a notification rule for a resource. The rule specifies the events you want notifications about and the targets (such as AWS Chatbot topics or AWS Chatbot clients configured for Slack) where you want to receive them.
TODO: EXAMPLE
func NewCfnNotificationRule ¶
func NewCfnNotificationRule(scope constructs.Construct, id *string, props *CfnNotificationRuleProps) CfnNotificationRule
Create a new `AWS::CodeStarNotifications::NotificationRule`.
type CfnNotificationRuleProps ¶
type CfnNotificationRuleProps struct { // The level of detail to include in the notifications for this resource. // // `BASIC` will include only the contents of the event as it would appear in Amazon CloudWatch. `FULL` will include any supplemental information provided by AWS CodeStar Notifications and/or the service for the resource for which the notification is created. DetailType *string `json:"detailType"` // A list of event types associated with this notification rule. // // For a complete list of event types and IDs, see [Notification concepts](https://docs.aws.amazon.com/codestar-notifications/latest/userguide/concepts.html#concepts-api) in the *Developer Tools Console User Guide* . EventTypeIds *[]*string `json:"eventTypeIds"` // The name for the notification rule. // // Notification rule names must be unique in your AWS account . Name *string `json:"name"` // The Amazon Resource Name (ARN) of the resource to associate with the notification rule. // // Supported resources include pipelines in AWS CodePipeline , repositories in AWS CodeCommit , and build projects in AWS CodeBuild . Resource *string `json:"resource"` // A list of Amazon Resource Names (ARNs) of AWS Chatbot topics and AWS Chatbot clients to associate with the notification rule. Targets interface{} `json:"targets"` // `AWS::CodeStarNotifications::NotificationRule.CreatedBy`. CreatedBy *string `json:"createdBy"` // `AWS::CodeStarNotifications::NotificationRule.EventTypeId`. EventTypeId *string `json:"eventTypeId"` // The status of the notification rule. // // The default value is `ENABLED` . If the status is set to `DISABLED` , notifications aren't sent for the notification rule. Status *string `json:"status"` // A list of tags to apply to this notification rule. // // Key names cannot start with " `aws` ". Tags interface{} `json:"tags"` // `AWS::CodeStarNotifications::NotificationRule.TargetAddress`. TargetAddress *string `json:"targetAddress"` }
Properties for defining a `CfnNotificationRule`.
TODO: EXAMPLE
type CfnNotificationRule_TargetProperty ¶
type CfnNotificationRule_TargetProperty struct { // The Amazon Resource Name (ARN) of the AWS Chatbot topic or AWS Chatbot client. TargetAddress *string `json:"targetAddress"` // The target type. Can be an Amazon Simple Notification Service topic or AWS Chatbot client. // // - Amazon Simple Notification Service topics are specified as `SNS` . // - AWS Chatbot clients are specified as `AWSChatbotSlack` . TargetType *string `json:"targetType"` }
Information about the AWS Chatbot topics or AWS Chatbot clients associated with a notification rule.
TODO: EXAMPLE
type DetailType ¶
type DetailType string
The level of detail to include in the notifications for this resource.
const ( DetailType_BASIC DetailType = "BASIC" DetailType_FULL DetailType = "FULL" )
type INotificationRule ¶
type INotificationRule interface { awscdk.IResource // Adds target to notification rule. // // Returns: boolean - return true if it had any effect AddTarget(target INotificationRuleTarget) *bool // The ARN of the notification rule (i.e. arn:aws:codestar-notifications:::notificationrule/01234abcde). NotificationRuleArn() *string }
Represents a notification rule.
func NotificationRule_FromNotificationRuleArn ¶
func NotificationRule_FromNotificationRuleArn(scope constructs.Construct, id *string, notificationRuleArn *string) INotificationRule
Import an existing notification rule provided an ARN.
type INotificationRuleSource ¶
type INotificationRuleSource interface { // Returns a source configuration for notification rule. BindAsNotificationRuleSource(scope constructs.Construct) *NotificationRuleSourceConfig }
Represents a notification source The source that allows CodeBuild and CodePipeline to associate with this rule.
type INotificationRuleTarget ¶
type INotificationRuleTarget interface { // Returns a target configuration for notification rule. BindAsNotificationRuleTarget(scope constructs.Construct) *NotificationRuleTargetConfig }
Represents a notification target That allows AWS Chatbot and SNS topic to associate with this rule target.
type NotificationRule ¶
type NotificationRule interface { awscdk.Resource INotificationRule Env() *awscdk.ResourceEnvironment Node() constructs.Node NotificationRuleArn() *string PhysicalName() *string Stack() awscdk.Stack AddTarget(target INotificationRuleTarget) *bool ApplyRemovalPolicy(policy awscdk.RemovalPolicy) GeneratePhysicalName() *string GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string GetResourceNameAttribute(nameAttr *string) *string ToString() *string }
A new notification rule.
TODO: EXAMPLE
func NewNotificationRule ¶
func NewNotificationRule(scope constructs.Construct, id *string, props *NotificationRuleProps) NotificationRule
type NotificationRuleOptions ¶
type NotificationRuleOptions struct { // The level of detail to include in the notifications for this resource. // // BASIC will include only the contents of the event as it would appear in AWS CloudWatch. // FULL will include any supplemental information provided by AWS CodeStar Notifications and/or the service for the resource for which the notification is created. DetailType DetailType `json:"detailType"` // The status of the notification rule. // // If the enabled is set to DISABLED, notifications aren't sent for the notification rule. Enabled *bool `json:"enabled"` // The name for the notification rule. // // Notification rule names must be unique in your AWS account. NotificationRuleName *string `json:"notificationRuleName"` }
Standard set of options for `notifyOnXxx` codestar notification handler on construct.
TODO: EXAMPLE
type NotificationRuleProps ¶
type NotificationRuleProps struct { // The level of detail to include in the notifications for this resource. // // BASIC will include only the contents of the event as it would appear in AWS CloudWatch. // FULL will include any supplemental information provided by AWS CodeStar Notifications and/or the service for the resource for which the notification is created. DetailType DetailType `json:"detailType"` // The status of the notification rule. // // If the enabled is set to DISABLED, notifications aren't sent for the notification rule. Enabled *bool `json:"enabled"` // The name for the notification rule. // // Notification rule names must be unique in your AWS account. NotificationRuleName *string `json:"notificationRuleName"` // A list of event types associated with this notification rule. // // For a complete list of event types and IDs, see Notification concepts in the Developer Tools Console User Guide. // See: https://docs.aws.amazon.com/dtconsole/latest/userguide/concepts.html#concepts-api // Events *[]*string `json:"events"` // The Amazon Resource Name (ARN) of the resource to associate with the notification rule. // // Currently, Supported sources include pipelines in AWS CodePipeline, build projects in AWS CodeBuild, and repositories in AWS CodeCommit in this L2 constructor. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codestarnotifications-notificationrule.html#cfn-codestarnotifications-notificationrule-resource // Source INotificationRuleSource `json:"source"` // The targets to register for the notification destination. Targets *[]INotificationRuleTarget `json:"targets"` }
Properties for a new notification rule.
TODO: EXAMPLE
type NotificationRuleSourceConfig ¶
type NotificationRuleSourceConfig struct { // The Amazon Resource Name (ARN) of the notification source. SourceArn *string `json:"sourceArn"` }
Information about the Codebuild or CodePipeline associated with a notification source.
TODO: EXAMPLE
type NotificationRuleTargetConfig ¶
type NotificationRuleTargetConfig struct { // The Amazon Resource Name (ARN) of the Amazon SNS topic or AWS Chatbot client. TargetAddress *string `json:"targetAddress"` // The target type. // // Can be an Amazon SNS topic or AWS Chatbot client. TargetType *string `json:"targetType"` }
Information about the SNS topic or AWS Chatbot client associated with a notification target.
TODO: EXAMPLE