@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public interface AWSCodeStarNotifications
Note: Do not directly implement this interface, new methods are added to it regularly. Extend from
AbstractAWSCodeStarNotifications
instead.
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:
CreateNotificationRule, which creates a notification rule for a resource in your account.
DeleteNotificationRule, which deletes a notification rule.
DescribeNotificationRule, which provides information about a notification rule.
ListNotificationRules, which lists the notification rules associated with your account.
UpdateNotificationRule, 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:
DeleteTarget, which removes a notification rule target from a notification rule.
ListTargets, which lists the targets associated with a notification rule.
Events, by calling the following:
ListEventTypes, which lists the event types you can include in a notification rule.
Tags, by calling the following:
ListTagsForResource, which lists the tags already associated with a notification rule in your account.
TagResource, which associates a tag you provide with a notification rule in your account.
UntagResource, 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.
Modifier and Type | Field and Description |
---|---|
static String |
ENDPOINT_PREFIX
The region metadata service name for computing region endpoints.
|
Modifier and Type | Method and Description |
---|---|
CreateNotificationRuleResult |
createNotificationRule(CreateNotificationRuleRequest createNotificationRuleRequest)
Creates a notification rule for a resource.
|
DeleteNotificationRuleResult |
deleteNotificationRule(DeleteNotificationRuleRequest deleteNotificationRuleRequest)
Deletes a notification rule for a resource.
|
DeleteTargetResult |
deleteTarget(DeleteTargetRequest deleteTargetRequest)
Deletes a specified target for notifications.
|
DescribeNotificationRuleResult |
describeNotificationRule(DescribeNotificationRuleRequest describeNotificationRuleRequest)
Returns information about a specified notification rule.
|
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful request, typically used for debugging issues
where a service isn't acting as expected.
|
ListEventTypesResult |
listEventTypes(ListEventTypesRequest listEventTypesRequest)
Returns information about the event types available for configuring notifications.
|
ListNotificationRulesResult |
listNotificationRules(ListNotificationRulesRequest listNotificationRulesRequest)
Returns a list of the notification rules for an Amazon Web Services account.
|
ListTagsForResourceResult |
listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
Returns a list of the tags associated with a notification rule.
|
ListTargetsResult |
listTargets(ListTargetsRequest listTargetsRequest)
Returns a list of the notification rule targets for an Amazon Web Services account.
|
void |
shutdown()
Shuts down this client object, releasing any resources that might be held open.
|
SubscribeResult |
subscribe(SubscribeRequest subscribeRequest)
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.
|
TagResourceResult |
tagResource(TagResourceRequest tagResourceRequest)
Associates a set of provided tags with a notification rule.
|
UnsubscribeResult |
unsubscribe(UnsubscribeRequest unsubscribeRequest)
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.
|
UntagResourceResult |
untagResource(UntagResourceRequest untagResourceRequest)
Removes the association between one or more provided tags and a notification rule.
|
UpdateNotificationRuleResult |
updateNotificationRule(UpdateNotificationRuleRequest updateNotificationRuleRequest)
Updates a notification rule for a resource.
|
static final String ENDPOINT_PREFIX
CreateNotificationRuleResult createNotificationRule(CreateNotificationRuleRequest createNotificationRuleRequest)
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.
createNotificationRuleRequest
- ResourceAlreadyExistsException
- A resource with the same name or ID already exists. Notification rule names must be unique in your Amazon
Web Services account.ValidationException
- One or more parameter values are not valid.LimitExceededException
- One of the AWS CodeStar Notifications limits has been exceeded. Limits apply to accounts, notification
rules, notifications, resources, and targets. For more information, see Limits.ConfigurationException
- Some or all of the configuration is incomplete, missing, or not valid.ConcurrentModificationException
- AWS CodeStar Notifications can't complete the request because the resource is being modified by another
process. Wait a few minutes and try again.AccessDeniedException
- AWS CodeStar Notifications can't create the notification rule because you do not have sufficient
permissions.DeleteNotificationRuleResult deleteNotificationRule(DeleteNotificationRuleRequest deleteNotificationRuleRequest)
Deletes a notification rule for a resource.
deleteNotificationRuleRequest
- ValidationException
- One or more parameter values are not valid.LimitExceededException
- One of the AWS CodeStar Notifications limits has been exceeded. Limits apply to accounts, notification
rules, notifications, resources, and targets. For more information, see Limits.ConcurrentModificationException
- AWS CodeStar Notifications can't complete the request because the resource is being modified by another
process. Wait a few minutes and try again.DeleteTargetResult deleteTarget(DeleteTargetRequest deleteTargetRequest)
Deletes a specified target for notifications.
deleteTargetRequest
- ValidationException
- One or more parameter values are not valid.DescribeNotificationRuleResult describeNotificationRule(DescribeNotificationRuleRequest describeNotificationRuleRequest)
Returns information about a specified notification rule.
describeNotificationRuleRequest
- ResourceNotFoundException
- AWS CodeStar Notifications can't find a resource that matches the provided ARN.ValidationException
- One or more parameter values are not valid.ListEventTypesResult listEventTypes(ListEventTypesRequest listEventTypesRequest)
Returns information about the event types available for configuring notifications.
listEventTypesRequest
- InvalidNextTokenException
- The value for the enumeration token used in the request to return the next batch of the results is not
valid.ValidationException
- One or more parameter values are not valid.ListNotificationRulesResult listNotificationRules(ListNotificationRulesRequest listNotificationRulesRequest)
Returns a list of the notification rules for an Amazon Web Services account.
listNotificationRulesRequest
- InvalidNextTokenException
- The value for the enumeration token used in the request to return the next batch of the results is not
valid.ValidationException
- One or more parameter values are not valid.ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
Returns a list of the tags associated with a notification rule.
listTagsForResourceRequest
- ResourceNotFoundException
- AWS CodeStar Notifications can't find a resource that matches the provided ARN.ValidationException
- One or more parameter values are not valid.ListTargetsResult listTargets(ListTargetsRequest listTargetsRequest)
Returns a list of the notification rule targets for an Amazon Web Services account.
listTargetsRequest
- InvalidNextTokenException
- The value for the enumeration token used in the request to return the next batch of the results is not
valid.ValidationException
- One or more parameter values are not valid.SubscribeResult subscribe(SubscribeRequest subscribeRequest)
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.
subscribeRequest
- ValidationException
- One or more parameter values are not valid.ResourceNotFoundException
- AWS CodeStar Notifications can't find a resource that matches the provided ARN.ConfigurationException
- Some or all of the configuration is incomplete, missing, or not valid.TagResourceResult tagResource(TagResourceRequest tagResourceRequest)
Associates a set of provided tags with a notification rule.
tagResourceRequest
- ResourceNotFoundException
- AWS CodeStar Notifications can't find a resource that matches the provided ARN.LimitExceededException
- One of the AWS CodeStar Notifications limits has been exceeded. Limits apply to accounts, notification
rules, notifications, resources, and targets. For more information, see Limits.ValidationException
- One or more parameter values are not valid.ConcurrentModificationException
- AWS CodeStar Notifications can't complete the request because the resource is being modified by another
process. Wait a few minutes and try again.UnsubscribeResult unsubscribe(UnsubscribeRequest unsubscribeRequest)
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.
unsubscribeRequest
- ValidationException
- One or more parameter values are not valid.UntagResourceResult untagResource(UntagResourceRequest untagResourceRequest)
Removes the association between one or more provided tags and a notification rule.
untagResourceRequest
- ResourceNotFoundException
- AWS CodeStar Notifications can't find a resource that matches the provided ARN.LimitExceededException
- One of the AWS CodeStar Notifications limits has been exceeded. Limits apply to accounts, notification
rules, notifications, resources, and targets. For more information, see Limits.ValidationException
- One or more parameter values are not valid.ConcurrentModificationException
- AWS CodeStar Notifications can't complete the request because the resource is being modified by another
process. Wait a few minutes and try again.UpdateNotificationRuleResult updateNotificationRule(UpdateNotificationRuleRequest updateNotificationRuleRequest)
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.
To add or remove tags for a notification rule, you must use TagResource and UntagResource.
updateNotificationRuleRequest
- ValidationException
- One or more parameter values are not valid.ResourceNotFoundException
- AWS CodeStar Notifications can't find a resource that matches the provided ARN.ConfigurationException
- Some or all of the configuration is incomplete, missing, or not valid.void shutdown()
ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing a request.
request
- The originally executed request.