codestarnotifications: AWS CodeStar Notifications

View source: R/codestarnotifications_service.R

codestarnotificationsR Documentation

AWS CodeStar Notifications

Description

This AWS CodeStar Notifications API Reference provides descriptions and usage examples of the operations and data types for the AWS CodeStar Notifications API. You can use the AWS CodeStar Notifications API to work with the following objects:

Notification rules, by calling the following:

  • create_notification_rule, which creates a notification rule for a resource in your account.

  • delete_notification_rule, which deletes a notification rule.

  • describe_notification_rule, which provides information about a notification rule.

  • list_notification_rules, which lists the notification rules associated with your account.

  • update_notification_rule, which changes the name, events, or targets associated with a notification rule.

  • subscribe, which subscribes a target to a notification rule.

  • unsubscribe, which removes a target from a notification rule.

Targets, by calling the following:

  • delete_target, which removes a notification rule target from a notification rule.

  • list_targets, which lists the targets associated with a notification rule.

Events, by calling the following:

  • list_event_types, which lists the event types you can include in a notification rule.

Tags, by calling the following:

  • list_tags_for_resource, which lists the tags already associated with a notification rule in your account.

  • tag_resource, which associates a tag you provide with a notification rule in your account.

  • untag_resource, which removes a tag from a notification rule in your account.

For information about how to use AWS CodeStar Notifications, see the Amazon Web Services Developer Tools Console User Guide.

Usage

codestarnotifications(
  config = list(),
  credentials = list(),
  endpoint = NULL,
  region = NULL
)

Arguments

config

Optional configuration of credentials, endpoint, and/or region.

  • credentials:

    • creds:

      • access_key_id: AWS access key ID

      • secret_access_key: AWS secret access key

      • session_token: AWS temporary session token

    • profile: The name of a profile to use. If not given, then the default profile is used.

    • anonymous: Set anonymous credentials.

  • endpoint: The complete URL to use for the constructed client.

  • region: The AWS Region used in instantiating the client.

  • close_connection: Immediately close all HTTP connections.

  • timeout: The time in seconds till a timeout exception is thrown when attempting to make a connection. The default is 60 seconds.

  • s3_force_path_style: Set this to true to force the request to use path-style addressing, i.e. ⁠http://s3.amazonaws.com/BUCKET/KEY⁠.

  • sts_regional_endpoint: Set sts regional endpoint resolver to regional or legacy https://docs.aws.amazon.com/sdkref/latest/guide/feature-sts-regionalized-endpoints.html

credentials

Optional credentials shorthand for the config parameter

  • creds:

    • access_key_id: AWS access key ID

    • secret_access_key: AWS secret access key

    • session_token: AWS temporary session token

  • profile: The name of a profile to use. If not given, then the default profile is used.

  • anonymous: Set anonymous credentials.

endpoint

Optional shorthand for complete URL to use for the constructed client.

region

Optional shorthand for AWS Region used in instantiating the client.

Value

A client for the service. You can call the service's operations using syntax like svc$operation(...), where svc is the name you've assigned to the client. The available operations are listed in the Operations section.

Service syntax

svc <- codestarnotifications(
  config = list(
    credentials = list(
      creds = list(
        access_key_id = "string",
        secret_access_key = "string",
        session_token = "string"
      ),
      profile = "string",
      anonymous = "logical"
    ),
    endpoint = "string",
    region = "string",
    close_connection = "logical",
    timeout = "numeric",
    s3_force_path_style = "logical",
    sts_regional_endpoint = "string"
  ),
  credentials = list(
    creds = list(
      access_key_id = "string",
      secret_access_key = "string",
      session_token = "string"
    ),
    profile = "string",
    anonymous = "logical"
  ),
  endpoint = "string",
  region = "string"
)

Operations

create_notification_rule Creates a notification rule for a resource
delete_notification_rule Deletes a notification rule for a resource
delete_target Deletes a specified target for notifications
describe_notification_rule Returns information about a specified notification rule
list_event_types Returns information about the event types available for configuring notifications
list_notification_rules Returns a list of the notification rules for an Amazon Web Services account
list_tags_for_resource Returns a list of the tags associated with a notification rule
list_targets Returns a list of the notification rule targets for an Amazon Web Services account
subscribe 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
tag_resource Associates a set of provided tags with a notification rule
unsubscribe 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
untag_resource Removes the association between one or more provided tags and a notification rule
update_notification_rule Updates a notification rule for a resource

Examples

## Not run: 
svc <- codestarnotifications()
svc$create_notification_rule(
  Foo = 123
)

## End(Not run)


paws.developer.tools documentation built on Sept. 12, 2024, 6:46 a.m.