CodeStarNotificationsClient
Index > CodeStarNotifications > CodeStarNotificationsClient
Auto-generated documentation for CodeStarNotifications type annotations stubs module mypy-boto3-codestar-notifications.
CodeStarNotificationsClient
Type annotations and code completion for boto3.client("codestar-notifications")
.
boto3 documentation
from boto3.session import Session
from mypy_boto3_codestar_notifications.client import CodeStarNotificationsClient
def get_codestar-notifications_client() -> CodeStarNotificationsClient:
return Session().client("codestar-notifications")
Exceptions
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("codestar-notifications").exceptions
structure.
client = boto3.client("codestar-notifications")
try:
do_something(client)
except (
client.AccessDeniedException,
client.ClientError,
client.ConcurrentModificationException,
client.ConfigurationException,
client.InvalidNextTokenException,
client.LimitExceededException,
client.ResourceAlreadyExistsException,
client.ResourceNotFoundException,
client.ValidationException,
) as e:
print(e)
from mypy_boto3_codestar_notifications.client import Exceptions
def handle_error(exc: Exceptions.AccessDeniedException) -> None:
...
Methods
can_paginate
Check if an operation can be paginated.
Type annotations and code completion for boto3.client("codestar-notifications").can_paginate
method.
boto3 documentation
close
Closes underlying endpoint connections.
Type annotations and code completion for boto3.client("codestar-notifications").close
method.
boto3 documentation
create_notification_rule
Creates a notification rule for a resource.
Type annotations and code completion for boto3.client("codestar-notifications").create_notification_rule
method.
boto3 documentation
def create_notification_rule(
self,
*,
Name: str,
EventTypeIds: Sequence[str],
Resource: str,
Targets: Sequence[TargetTypeDef], # (1)
DetailType: DetailTypeType, # (2)
ClientRequestToken: str = ...,
Tags: Mapping[str, str] = ...,
Status: NotificationRuleStatusType = ..., # (3)
) -> CreateNotificationRuleResultTypeDef: # (4)
...
- See TargetTypeDef
- See DetailTypeType
- See NotificationRuleStatusType
- See CreateNotificationRuleResultTypeDef
kwargs: CreateNotificationRuleRequestRequestTypeDef = { # (1)
"Name": ...,
"EventTypeIds": ...,
"Resource": ...,
"Targets": ...,
"DetailType": ...,
}
parent.create_notification_rule(**kwargs)
delete_notification_rule
Deletes a notification rule for a resource.
Type annotations and code completion for boto3.client("codestar-notifications").delete_notification_rule
method.
boto3 documentation
def delete_notification_rule(
self,
*,
Arn: str,
) -> DeleteNotificationRuleResultTypeDef: # (1)
...
kwargs: DeleteNotificationRuleRequestRequestTypeDef = { # (1)
"Arn": ...,
}
parent.delete_notification_rule(**kwargs)
delete_target
Deletes a specified target for notifications.
Type annotations and code completion for boto3.client("codestar-notifications").delete_target
method.
boto3 documentation
def delete_target(
self,
*,
TargetAddress: str,
ForceUnsubscribeAll: bool = ...,
) -> Dict[str, Any]:
...
kwargs: DeleteTargetRequestRequestTypeDef = { # (1)
"TargetAddress": ...,
}
parent.delete_target(**kwargs)
describe_notification_rule
Returns information about a specified notification rule.
Type annotations and code completion for boto3.client("codestar-notifications").describe_notification_rule
method.
boto3 documentation
def describe_notification_rule(
self,
*,
Arn: str,
) -> DescribeNotificationRuleResultTypeDef: # (1)
...
kwargs: DescribeNotificationRuleRequestRequestTypeDef = { # (1)
"Arn": ...,
}
parent.describe_notification_rule(**kwargs)
generate_presigned_url
Generate a presigned url given a client, its method, and arguments.
Type annotations and code completion for boto3.client("codestar-notifications").generate_presigned_url
method.
boto3 documentation
def generate_presigned_url(
self,
ClientMethod: str,
Params: Mapping[str, Any] = ...,
ExpiresIn: int = 3600,
HttpMethod: str = ...,
) -> str:
...
list_event_types
Returns information about the event types available for configuring notifications.
Type annotations and code completion for boto3.client("codestar-notifications").list_event_types
method.
boto3 documentation
def list_event_types(
self,
*,
Filters: Sequence[ListEventTypesFilterTypeDef] = ..., # (1)
NextToken: str = ...,
MaxResults: int = ...,
) -> ListEventTypesResultTypeDef: # (2)
...
kwargs: ListEventTypesRequestRequestTypeDef = { # (1)
"Filters": ...,
}
parent.list_event_types(**kwargs)
list_notification_rules
Returns a list of the notification rules for an Amazon Web Services account.
Type annotations and code completion for boto3.client("codestar-notifications").list_notification_rules
method.
boto3 documentation
def list_notification_rules(
self,
*,
Filters: Sequence[ListNotificationRulesFilterTypeDef] = ..., # (1)
NextToken: str = ...,
MaxResults: int = ...,
) -> ListNotificationRulesResultTypeDef: # (2)
...
kwargs: ListNotificationRulesRequestRequestTypeDef = { # (1)
"Filters": ...,
}
parent.list_notification_rules(**kwargs)
list_tags_for_resource
Returns a list of the tags associated with a notification rule.
Type annotations and code completion for boto3.client("codestar-notifications").list_tags_for_resource
method.
boto3 documentation
def list_tags_for_resource(
self,
*,
Arn: str,
) -> ListTagsForResourceResultTypeDef: # (1)
...
kwargs: ListTagsForResourceRequestRequestTypeDef = { # (1)
"Arn": ...,
}
parent.list_tags_for_resource(**kwargs)
list_targets
Returns a list of the notification rule targets for an Amazon Web Services account.
Type annotations and code completion for boto3.client("codestar-notifications").list_targets
method.
boto3 documentation
def list_targets(
self,
*,
Filters: Sequence[ListTargetsFilterTypeDef] = ..., # (1)
NextToken: str = ...,
MaxResults: int = ...,
) -> ListTargetsResultTypeDef: # (2)
...
kwargs: ListTargetsRequestRequestTypeDef = { # (1)
"Filters": ...,
}
parent.list_targets(**kwargs)
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.
Type annotations and code completion for boto3.client("codestar-notifications").subscribe
method.
boto3 documentation
def subscribe(
self,
*,
Arn: str,
Target: TargetTypeDef, # (1)
ClientRequestToken: str = ...,
) -> SubscribeResultTypeDef: # (2)
...
- See TargetTypeDef
- See SubscribeResultTypeDef
kwargs: SubscribeRequestRequestTypeDef = { # (1)
"Arn": ...,
"Target": ...,
}
parent.subscribe(**kwargs)
tag_resource
Associates a set of provided tags with a notification rule.
Type annotations and code completion for boto3.client("codestar-notifications").tag_resource
method.
boto3 documentation
def tag_resource(
self,
*,
Arn: str,
Tags: Mapping[str, str],
) -> TagResourceResultTypeDef: # (1)
...
kwargs: TagResourceRequestRequestTypeDef = { # (1)
"Arn": ...,
"Tags": ...,
}
parent.tag_resource(**kwargs)
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.
Type annotations and code completion for boto3.client("codestar-notifications").unsubscribe
method.
boto3 documentation
def unsubscribe(
self,
*,
Arn: str,
TargetAddress: str,
) -> UnsubscribeResultTypeDef: # (1)
...
kwargs: UnsubscribeRequestRequestTypeDef = { # (1)
"Arn": ...,
"TargetAddress": ...,
}
parent.unsubscribe(**kwargs)
untag_resource
Removes the association between one or more provided tags and a notification rule.
Type annotations and code completion for boto3.client("codestar-notifications").untag_resource
method.
boto3 documentation
def untag_resource(
self,
*,
Arn: str,
TagKeys: Sequence[str],
) -> Dict[str, Any]:
...
kwargs: UntagResourceRequestRequestTypeDef = { # (1)
"Arn": ...,
"TagKeys": ...,
}
parent.untag_resource(**kwargs)
update_notification_rule
Updates a notification rule for a resource.
Type annotations and code completion for boto3.client("codestar-notifications").update_notification_rule
method.
boto3 documentation
def update_notification_rule(
self,
*,
Arn: str,
Name: str = ...,
Status: NotificationRuleStatusType = ..., # (1)
EventTypeIds: Sequence[str] = ...,
Targets: Sequence[TargetTypeDef] = ..., # (2)
DetailType: DetailTypeType = ..., # (3)
) -> Dict[str, Any]:
...
- See NotificationRuleStatusType
- See TargetTypeDef
- See DetailTypeType
kwargs: UpdateNotificationRuleRequestRequestTypeDef = { # (1)
"Arn": ...,
}
parent.update_notification_rule(**kwargs)
get_paginator
Type annotations and code completion for boto3.client("codestar-notifications").get_paginator
method with overloads.
client.get_paginator("list_event_types")
-> ListEventTypesPaginatorclient.get_paginator("list_notification_rules")
-> ListNotificationRulesPaginatorclient.get_paginator("list_targets")
-> ListTargetsPaginator