@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSCodeStarNotificationsClient extends AmazonWebServiceClient implements AWSCodeStarNotifications
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 (SNS topic) 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 link in the CodeStarNotifications User Guide.
LOGGING_AWS_REQUEST_METRICENDPOINT_PREFIX| Modifier and Type | Method and Description |
|---|---|
static AWSCodeStarNotificationsClientBuilder |
builder() |
CreateNotificationRuleResult |
createNotificationRule(CreateNotificationRuleRequest request)
Creates a notification rule for a resource.
|
DeleteNotificationRuleResult |
deleteNotificationRule(DeleteNotificationRuleRequest request)
Deletes a notification rule for a resource.
|
DeleteTargetResult |
deleteTarget(DeleteTargetRequest request)
Deletes a specified target for notifications.
|
DescribeNotificationRuleResult |
describeNotificationRule(DescribeNotificationRuleRequest request)
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 request)
Returns information about the event types available for configuring notifications.
|
ListNotificationRulesResult |
listNotificationRules(ListNotificationRulesRequest request)
Returns a list of the notification rules for an AWS account.
|
ListTagsForResourceResult |
listTagsForResource(ListTagsForResourceRequest request)
Returns a list of the tags associated with a notification rule.
|
ListTargetsResult |
listTargets(ListTargetsRequest request)
Returns a list of the notification rule targets for an AWS account.
|
void |
shutdown()
Shuts down this client object, releasing any resources that might be held
open.
|
SubscribeResult |
subscribe(SubscribeRequest request)
Creates an association between a notification rule and an SNS topic so that the associated target can receive
notifications when the events described in the rule are triggered.
|
TagResourceResult |
tagResource(TagResourceRequest request)
Associates a set of provided tags with a notification rule.
|
UnsubscribeResult |
unsubscribe(UnsubscribeRequest request)
Removes an association between a notification rule and an Amazon SNS topic so that subscribers to that topic stop
receiving notifications when the events described in the rule are triggered.
|
UntagResourceResult |
untagResource(UntagResourceRequest request)
Removes the association between one or more provided tags and a notification rule.
|
UpdateNotificationRuleResult |
updateNotificationRule(UpdateNotificationRuleRequest request)
Updates a notification rule for a resource.
|
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffsetpublic static AWSCodeStarNotificationsClientBuilder builder()
public CreateNotificationRuleResult createNotificationRule(CreateNotificationRuleRequest request)
Creates a notification rule for a resource. The rule specifies the events you want notifications about and the targets (such as SNS topics) where you want to receive them.
createNotificationRule in interface AWSCodeStarNotificationscreateNotificationRuleRequest - ResourceAlreadyExistsException - A resource with the same name or ID already exists. Notification rule names must be unique in your AWS
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.public DeleteNotificationRuleResult deleteNotificationRule(DeleteNotificationRuleRequest request)
Deletes a notification rule for a resource.
deleteNotificationRule in interface AWSCodeStarNotificationsdeleteNotificationRuleRequest - 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.public DeleteTargetResult deleteTarget(DeleteTargetRequest request)
Deletes a specified target for notifications.
deleteTarget in interface AWSCodeStarNotificationsdeleteTargetRequest - ValidationException - One or more parameter values are not valid.public DescribeNotificationRuleResult describeNotificationRule(DescribeNotificationRuleRequest request)
Returns information about a specified notification rule.
describeNotificationRule in interface AWSCodeStarNotificationsdescribeNotificationRuleRequest - ResourceNotFoundException - AWS CodeStar Notifications can't find a resource that matches the provided ARN.ValidationException - One or more parameter values are not valid.public ListEventTypesResult listEventTypes(ListEventTypesRequest request)
Returns information about the event types available for configuring notifications.
listEventTypes in interface AWSCodeStarNotificationslistEventTypesRequest - 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.public ListNotificationRulesResult listNotificationRules(ListNotificationRulesRequest request)
Returns a list of the notification rules for an AWS account.
listNotificationRules in interface AWSCodeStarNotificationslistNotificationRulesRequest - 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.public ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest request)
Returns a list of the tags associated with a notification rule.
listTagsForResource in interface AWSCodeStarNotificationslistTagsForResourceRequest - ResourceNotFoundException - AWS CodeStar Notifications can't find a resource that matches the provided ARN.ValidationException - One or more parameter values are not valid.public ListTargetsResult listTargets(ListTargetsRequest request)
Returns a list of the notification rule targets for an AWS account.
listTargets in interface AWSCodeStarNotificationslistTargetsRequest - 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.public SubscribeResult subscribe(SubscribeRequest request)
Creates an association between a notification rule and an SNS topic so that the associated target can receive notifications when the events described in the rule are triggered.
subscribe in interface AWSCodeStarNotificationssubscribeRequest - ValidationException - One or more parameter values are not valid.ResourceNotFoundException - AWS CodeStar Notifications can't find a resource that matches the provided ARN.public TagResourceResult tagResource(TagResourceRequest request)
Associates a set of provided tags with a notification rule.
tagResource in interface AWSCodeStarNotificationstagResourceRequest - ResourceNotFoundException - AWS CodeStar Notifications can't find a resource that matches the provided ARN.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.public UnsubscribeResult unsubscribe(UnsubscribeRequest request)
Removes an association between a notification rule and an Amazon SNS topic so that subscribers to that topic stop receiving notifications when the events described in the rule are triggered.
unsubscribe in interface AWSCodeStarNotificationsunsubscribeRequest - ValidationException - One or more parameter values are not valid.public UntagResourceResult untagResource(UntagResourceRequest request)
Removes the association between one or more provided tags and a notification rule.
untagResource in interface AWSCodeStarNotificationsuntagResourceRequest - ResourceNotFoundException - AWS CodeStar Notifications can't find a resource that matches the provided ARN.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.public UpdateNotificationRuleResult updateNotificationRule(UpdateNotificationRuleRequest request)
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.
updateNotificationRule in interface AWSCodeStarNotificationsupdateNotificationRuleRequest - ValidationException - One or more parameter values are not valid.ResourceNotFoundException - AWS CodeStar Notifications can't find a resource that matches the provided ARN.public 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 the request.
getCachedResponseMetadata in interface AWSCodeStarNotificationsrequest - The originally executed requestpublic void shutdown()
AmazonWebServiceClientshutdown in interface AWSCodeStarNotificationsshutdown in class AmazonWebServiceClient