Nothing
# This file is generated by make.paws. Please do not edit here.
#' @importFrom paws.common get_config new_operation new_request send_request
#' @include codestarnotifications_service.R
NULL
#' Creates a notification rule for a resource
#'
#' @description
#' Creates a notification rule for a resource. The rule specifies the events you want notifications about and the targets (such as Chatbot topics or Chatbot clients configured for Slack) where you want to receive them.
#'
#' See [https://www.paws-r-sdk.com/docs/codestarnotifications_create_notification_rule/](https://www.paws-r-sdk.com/docs/codestarnotifications_create_notification_rule/) for full documentation.
#'
#' @param Name [required] The name for the notification rule. Notification rule names must be
#' unique in your Amazon Web Services account.
#' @param EventTypeIds [required] A list of event types associated with this notification rule. For a list
#' of allowed events, see EventTypeSummary.
#' @param Resource [required] The Amazon Resource Name (ARN) of the resource to associate with the
#' notification rule. Supported resources include pipelines in
#' CodePipeline, repositories in CodeCommit, and build projects in
#' CodeBuild.
#' @param Targets [required] A list of Amazon Resource Names (ARNs) of Amazon Simple Notification
#' Service topics and Chatbot clients to associate with the notification
#' rule.
#' @param DetailType [required] 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.
#' @param ClientRequestToken A unique, client-generated idempotency token that, when provided in a
#' request, ensures the request cannot be repeated with a changed
#' parameter. If a request with the same parameters is received and a token
#' is included, the request returns information about the initial request
#' that used that token.
#'
#' The Amazon Web Services SDKs prepopulate client request tokens. If you
#' are using an Amazon Web Services SDK, an idempotency token is created
#' for you.
#' @param Tags A list of tags to apply to this notification rule. Key names cannot
#' start with "`aws`".
#' @param Status 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.
#'
#' @keywords internal
#'
#' @rdname codestarnotifications_create_notification_rule
codestarnotifications_create_notification_rule <- function(Name, EventTypeIds, Resource, Targets, DetailType, ClientRequestToken = NULL, Tags = NULL, Status = NULL) {
op <- new_operation(
name = "CreateNotificationRule",
http_method = "POST",
http_path = "/createNotificationRule",
host_prefix = "",
paginator = list()
)
input <- .codestarnotifications$create_notification_rule_input(Name = Name, EventTypeIds = EventTypeIds, Resource = Resource, Targets = Targets, DetailType = DetailType, ClientRequestToken = ClientRequestToken, Tags = Tags, Status = Status)
output <- .codestarnotifications$create_notification_rule_output()
config <- get_config()
svc <- .codestarnotifications$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.codestarnotifications$operations$create_notification_rule <- codestarnotifications_create_notification_rule
#' Deletes a notification rule for a resource
#'
#' @description
#' Deletes a notification rule for a resource.
#'
#' See [https://www.paws-r-sdk.com/docs/codestarnotifications_delete_notification_rule/](https://www.paws-r-sdk.com/docs/codestarnotifications_delete_notification_rule/) for full documentation.
#'
#' @param Arn [required] The Amazon Resource Name (ARN) of the notification rule you want to
#' delete.
#'
#' @keywords internal
#'
#' @rdname codestarnotifications_delete_notification_rule
codestarnotifications_delete_notification_rule <- function(Arn) {
op <- new_operation(
name = "DeleteNotificationRule",
http_method = "POST",
http_path = "/deleteNotificationRule",
host_prefix = "",
paginator = list()
)
input <- .codestarnotifications$delete_notification_rule_input(Arn = Arn)
output <- .codestarnotifications$delete_notification_rule_output()
config <- get_config()
svc <- .codestarnotifications$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.codestarnotifications$operations$delete_notification_rule <- codestarnotifications_delete_notification_rule
#' Deletes a specified target for notifications
#'
#' @description
#' Deletes a specified target for notifications.
#'
#' See [https://www.paws-r-sdk.com/docs/codestarnotifications_delete_target/](https://www.paws-r-sdk.com/docs/codestarnotifications_delete_target/) for full documentation.
#'
#' @param TargetAddress [required] The Amazon Resource Name (ARN) of the Chatbot topic or Chatbot client to
#' delete.
#' @param ForceUnsubscribeAll A Boolean value that can be used to delete all associations with this
#' Chatbot topic. The default value is FALSE. If set to TRUE, all
#' associations between that target and every notification rule in your
#' Amazon Web Services account are deleted.
#'
#' @keywords internal
#'
#' @rdname codestarnotifications_delete_target
codestarnotifications_delete_target <- function(TargetAddress, ForceUnsubscribeAll = NULL) {
op <- new_operation(
name = "DeleteTarget",
http_method = "POST",
http_path = "/deleteTarget",
host_prefix = "",
paginator = list()
)
input <- .codestarnotifications$delete_target_input(TargetAddress = TargetAddress, ForceUnsubscribeAll = ForceUnsubscribeAll)
output <- .codestarnotifications$delete_target_output()
config <- get_config()
svc <- .codestarnotifications$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.codestarnotifications$operations$delete_target <- codestarnotifications_delete_target
#' Returns information about a specified notification rule
#'
#' @description
#' Returns information about a specified notification rule.
#'
#' See [https://www.paws-r-sdk.com/docs/codestarnotifications_describe_notification_rule/](https://www.paws-r-sdk.com/docs/codestarnotifications_describe_notification_rule/) for full documentation.
#'
#' @param Arn [required] The Amazon Resource Name (ARN) of the notification rule.
#'
#' @keywords internal
#'
#' @rdname codestarnotifications_describe_notification_rule
codestarnotifications_describe_notification_rule <- function(Arn) {
op <- new_operation(
name = "DescribeNotificationRule",
http_method = "POST",
http_path = "/describeNotificationRule",
host_prefix = "",
paginator = list()
)
input <- .codestarnotifications$describe_notification_rule_input(Arn = Arn)
output <- .codestarnotifications$describe_notification_rule_output()
config <- get_config()
svc <- .codestarnotifications$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.codestarnotifications$operations$describe_notification_rule <- codestarnotifications_describe_notification_rule
#' Returns information about the event types available for configuring
#' notifications
#'
#' @description
#' Returns information about the event types available for configuring notifications.
#'
#' See [https://www.paws-r-sdk.com/docs/codestarnotifications_list_event_types/](https://www.paws-r-sdk.com/docs/codestarnotifications_list_event_types/) for full documentation.
#'
#' @param Filters The filters to use to return information by service or resource type.
#' @param NextToken An enumeration token that, when provided in a request, returns the next
#' batch of the results.
#' @param MaxResults A non-negative integer used to limit the number of returned results. The
#' default number is 50. The maximum number of results that can be returned
#' is 100.
#'
#' @keywords internal
#'
#' @rdname codestarnotifications_list_event_types
codestarnotifications_list_event_types <- function(Filters = NULL, NextToken = NULL, MaxResults = NULL) {
op <- new_operation(
name = "ListEventTypes",
http_method = "POST",
http_path = "/listEventTypes",
host_prefix = "",
paginator = list(input_token = "NextToken", limit_key = "MaxResults", output_token = "NextToken", result_key = "EventTypes")
)
input <- .codestarnotifications$list_event_types_input(Filters = Filters, NextToken = NextToken, MaxResults = MaxResults)
output <- .codestarnotifications$list_event_types_output()
config <- get_config()
svc <- .codestarnotifications$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.codestarnotifications$operations$list_event_types <- codestarnotifications_list_event_types
#' Returns a list of the notification rules for an Amazon Web Services
#' account
#'
#' @description
#' Returns a list of the notification rules for an Amazon Web Services account.
#'
#' See [https://www.paws-r-sdk.com/docs/codestarnotifications_list_notification_rules/](https://www.paws-r-sdk.com/docs/codestarnotifications_list_notification_rules/) for full documentation.
#'
#' @param Filters The filters to use to return information by service or resource type.
#' For valid values, see ListNotificationRulesFilter.
#'
#' A filter with the same name can appear more than once when used with OR
#' statements. Filters with different names should be applied with AND
#' statements.
#' @param NextToken An enumeration token that, when provided in a request, returns the next
#' batch of the results.
#' @param MaxResults A non-negative integer used to limit the number of returned results. The
#' maximum number of results that can be returned is 100.
#'
#' @keywords internal
#'
#' @rdname codestarnotifications_list_notification_rules
codestarnotifications_list_notification_rules <- function(Filters = NULL, NextToken = NULL, MaxResults = NULL) {
op <- new_operation(
name = "ListNotificationRules",
http_method = "POST",
http_path = "/listNotificationRules",
host_prefix = "",
paginator = list(input_token = "NextToken", limit_key = "MaxResults", output_token = "NextToken", result_key = "NotificationRules")
)
input <- .codestarnotifications$list_notification_rules_input(Filters = Filters, NextToken = NextToken, MaxResults = MaxResults)
output <- .codestarnotifications$list_notification_rules_output()
config <- get_config()
svc <- .codestarnotifications$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.codestarnotifications$operations$list_notification_rules <- codestarnotifications_list_notification_rules
#' Returns a list of the tags associated with a notification rule
#'
#' @description
#' Returns a list of the tags associated with a notification rule.
#'
#' See [https://www.paws-r-sdk.com/docs/codestarnotifications_list_tags_for_resource/](https://www.paws-r-sdk.com/docs/codestarnotifications_list_tags_for_resource/) for full documentation.
#'
#' @param Arn [required] The Amazon Resource Name (ARN) for the notification rule.
#'
#' @keywords internal
#'
#' @rdname codestarnotifications_list_tags_for_resource
codestarnotifications_list_tags_for_resource <- function(Arn) {
op <- new_operation(
name = "ListTagsForResource",
http_method = "POST",
http_path = "/listTagsForResource",
host_prefix = "",
paginator = list()
)
input <- .codestarnotifications$list_tags_for_resource_input(Arn = Arn)
output <- .codestarnotifications$list_tags_for_resource_output()
config <- get_config()
svc <- .codestarnotifications$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.codestarnotifications$operations$list_tags_for_resource <- codestarnotifications_list_tags_for_resource
#' Returns a list of the notification rule targets for an Amazon Web
#' Services account
#'
#' @description
#' Returns a list of the notification rule targets for an Amazon Web Services account.
#'
#' See [https://www.paws-r-sdk.com/docs/codestarnotifications_list_targets/](https://www.paws-r-sdk.com/docs/codestarnotifications_list_targets/) for full documentation.
#'
#' @param Filters The filters to use to return information by service or resource type.
#' Valid filters include target type, target address, and target status.
#'
#' A filter with the same name can appear more than once when used with OR
#' statements. Filters with different names should be applied with AND
#' statements.
#' @param NextToken An enumeration token that, when provided in a request, returns the next
#' batch of the results.
#' @param MaxResults A non-negative integer used to limit the number of returned results. The
#' maximum number of results that can be returned is 100.
#'
#' @keywords internal
#'
#' @rdname codestarnotifications_list_targets
codestarnotifications_list_targets <- function(Filters = NULL, NextToken = NULL, MaxResults = NULL) {
op <- new_operation(
name = "ListTargets",
http_method = "POST",
http_path = "/listTargets",
host_prefix = "",
paginator = list(input_token = "NextToken", limit_key = "MaxResults", output_token = "NextToken", result_key = "Targets")
)
input <- .codestarnotifications$list_targets_input(Filters = Filters, NextToken = NextToken, MaxResults = MaxResults)
output <- .codestarnotifications$list_targets_output()
config <- get_config()
svc <- .codestarnotifications$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.codestarnotifications$operations$list_targets <- codestarnotifications_list_targets
#' Creates an association between a notification rule and an Chatbot topic
#' or Chatbot client so that the associated target can receive
#' notifications when the events described in the rule are triggered
#'
#' @description
#' Creates an association between a notification rule and an Chatbot topic or Chatbot client so that the associated target can receive notifications when the events described in the rule are triggered.
#'
#' See [https://www.paws-r-sdk.com/docs/codestarnotifications_subscribe/](https://www.paws-r-sdk.com/docs/codestarnotifications_subscribe/) for full documentation.
#'
#' @param Arn [required] The Amazon Resource Name (ARN) of the notification rule for which you
#' want to create the association.
#' @param Target [required]
#' @param ClientRequestToken An enumeration token that, when provided in a request, returns the next
#' batch of the results.
#'
#' @keywords internal
#'
#' @rdname codestarnotifications_subscribe
codestarnotifications_subscribe <- function(Arn, Target, ClientRequestToken = NULL) {
op <- new_operation(
name = "Subscribe",
http_method = "POST",
http_path = "/subscribe",
host_prefix = "",
paginator = list()
)
input <- .codestarnotifications$subscribe_input(Arn = Arn, Target = Target, ClientRequestToken = ClientRequestToken)
output <- .codestarnotifications$subscribe_output()
config <- get_config()
svc <- .codestarnotifications$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.codestarnotifications$operations$subscribe <- codestarnotifications_subscribe
#' Associates a set of provided tags with a notification rule
#'
#' @description
#' Associates a set of provided tags with a notification rule.
#'
#' See [https://www.paws-r-sdk.com/docs/codestarnotifications_tag_resource/](https://www.paws-r-sdk.com/docs/codestarnotifications_tag_resource/) for full documentation.
#'
#' @param Arn [required] The Amazon Resource Name (ARN) of the notification rule to tag.
#' @param Tags [required] The list of tags to associate with the resource. Tag key names cannot
#' start with "`aws`".
#'
#' @keywords internal
#'
#' @rdname codestarnotifications_tag_resource
codestarnotifications_tag_resource <- function(Arn, Tags) {
op <- new_operation(
name = "TagResource",
http_method = "POST",
http_path = "/tagResource",
host_prefix = "",
paginator = list()
)
input <- .codestarnotifications$tag_resource_input(Arn = Arn, Tags = Tags)
output <- .codestarnotifications$tag_resource_output()
config <- get_config()
svc <- .codestarnotifications$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.codestarnotifications$operations$tag_resource <- codestarnotifications_tag_resource
#' Removes an association between a notification rule and an Chatbot topic
#' so that subscribers to that topic stop receiving notifications when the
#' events described in the rule are triggered
#'
#' @description
#' Removes an association between a notification rule and an Chatbot topic so that subscribers to that topic stop receiving notifications when the events described in the rule are triggered.
#'
#' See [https://www.paws-r-sdk.com/docs/codestarnotifications_unsubscribe/](https://www.paws-r-sdk.com/docs/codestarnotifications_unsubscribe/) for full documentation.
#'
#' @param Arn [required] The Amazon Resource Name (ARN) of the notification rule.
#' @param TargetAddress [required] The ARN of the Chatbot topic to unsubscribe from the notification rule.
#'
#' @keywords internal
#'
#' @rdname codestarnotifications_unsubscribe
codestarnotifications_unsubscribe <- function(Arn, TargetAddress) {
op <- new_operation(
name = "Unsubscribe",
http_method = "POST",
http_path = "/unsubscribe",
host_prefix = "",
paginator = list()
)
input <- .codestarnotifications$unsubscribe_input(Arn = Arn, TargetAddress = TargetAddress)
output <- .codestarnotifications$unsubscribe_output()
config <- get_config()
svc <- .codestarnotifications$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.codestarnotifications$operations$unsubscribe <- codestarnotifications_unsubscribe
#' Removes the association between one or more provided tags and a
#' notification rule
#'
#' @description
#' Removes the association between one or more provided tags and a notification rule.
#'
#' See [https://www.paws-r-sdk.com/docs/codestarnotifications_untag_resource/](https://www.paws-r-sdk.com/docs/codestarnotifications_untag_resource/) for full documentation.
#'
#' @param Arn [required] The Amazon Resource Name (ARN) of the notification rule from which to
#' remove the tags.
#' @param TagKeys [required] The key names of the tags to remove.
#'
#' @keywords internal
#'
#' @rdname codestarnotifications_untag_resource
codestarnotifications_untag_resource <- function(Arn, TagKeys) {
op <- new_operation(
name = "UntagResource",
http_method = "POST",
http_path = "/untagResource/{resourceArn}",
host_prefix = "",
paginator = list()
)
input <- .codestarnotifications$untag_resource_input(Arn = Arn, TagKeys = TagKeys)
output <- .codestarnotifications$untag_resource_output()
config <- get_config()
svc <- .codestarnotifications$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.codestarnotifications$operations$untag_resource <- codestarnotifications_untag_resource
#' Updates a notification rule for a resource
#'
#' @description
#' Updates a notification rule for a resource. You can change the events that trigger the notification rule, the status of the rule, and the targets that receive the notifications.
#'
#' See [https://www.paws-r-sdk.com/docs/codestarnotifications_update_notification_rule/](https://www.paws-r-sdk.com/docs/codestarnotifications_update_notification_rule/) for full documentation.
#'
#' @param Arn [required] The Amazon Resource Name (ARN) of the notification rule.
#' @param Name The name of the notification rule.
#' @param Status The status of the notification rule. Valid statuses include enabled
#' (sending notifications) or disabled (not sending notifications).
#' @param EventTypeIds 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/dtconsole/latest/userguide/concepts.html#concepts-api)
#' in the *Developer Tools Console User Guide*.
#' @param Targets The address and type of the targets to receive notifications from this
#' notification rule.
#' @param DetailType 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.
#'
#' @keywords internal
#'
#' @rdname codestarnotifications_update_notification_rule
codestarnotifications_update_notification_rule <- function(Arn, Name = NULL, Status = NULL, EventTypeIds = NULL, Targets = NULL, DetailType = NULL) {
op <- new_operation(
name = "UpdateNotificationRule",
http_method = "POST",
http_path = "/updateNotificationRule",
host_prefix = "",
paginator = list()
)
input <- .codestarnotifications$update_notification_rule_input(Arn = Arn, Name = Name, Status = Status, EventTypeIds = EventTypeIds, Targets = Targets, DetailType = DetailType)
output <- .codestarnotifications$update_notification_rule_output()
config <- get_config()
svc <- .codestarnotifications$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.codestarnotifications$operations$update_notification_rule <- codestarnotifications_update_notification_rule
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.