CodeStarNotifications
public struct CodeStarNotifications
Client object for interacting with AWS CodeStarNotifications service.
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.
-
Undocumented
Declaration
Swift
public let client: AWSClient
-
Initialize the CodeStarNotifications client
Declaration
Swift
public init(accessKeyId: String? = nil, secretAccessKey: String? = nil, sessionToken: String? = nil, region: AWSSDKSwiftCore.Region? = nil, endpoint: String? = nil, middlewares: [AWSServiceMiddleware] = [], eventLoopGroupProvider: AWSClient.EventLoopGroupProvider = .useAWSClientShared)
Parameters
accessKeyId
Public access key provided by AWS
secretAccessKey
Private access key provided by AWS
sessionToken
Token provided by STS.AssumeRole() which allows access to another AWS account
region
Region of server you want to communicate with
endpoint
Custom endpoint URL to use instead of standard AWS servers
middlewares
Array of middlewares to apply to requests and responses
eventLoopGroupProvider
EventLoopGroup to use. Use
useAWSClientShared
if the client shall manage its own EventLoopGroup.
-
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.
Declaration
Swift
public func createNotificationRule(_ input: CreateNotificationRuleRequest) -> EventLoopFuture<CreateNotificationRuleResult>
-
Deletes a notification rule for a resource.
Declaration
Swift
public func deleteNotificationRule(_ input: DeleteNotificationRuleRequest) -> EventLoopFuture<DeleteNotificationRuleResult>
-
Deletes a specified target for notifications.
Declaration
Swift
public func deleteTarget(_ input: DeleteTargetRequest) -> EventLoopFuture<DeleteTargetResult>
-
Returns information about a specified notification rule.
Declaration
Swift
public func describeNotificationRule(_ input: DescribeNotificationRuleRequest) -> EventLoopFuture<DescribeNotificationRuleResult>
-
Returns information about the event types available for configuring notifications.
Declaration
Swift
public func listEventTypes(_ input: ListEventTypesRequest) -> EventLoopFuture<ListEventTypesResult>
-
Returns a list of the notification rules for an AWS account.
Declaration
Swift
public func listNotificationRules(_ input: ListNotificationRulesRequest) -> EventLoopFuture<ListNotificationRulesResult>
-
Returns a list of the tags associated with a notification rule.
Declaration
Swift
public func listTagsForResource(_ input: ListTagsForResourceRequest) -> EventLoopFuture<ListTagsForResourceResult>
-
Returns a list of the notification rule targets for an AWS account.
Declaration
Swift
public func listTargets(_ input: ListTargetsRequest) -> EventLoopFuture<ListTargetsResult>
-
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.
Declaration
Swift
public func subscribe(_ input: SubscribeRequest) -> EventLoopFuture<SubscribeResult>
-
Associates a set of provided tags with a notification rule.
Declaration
Swift
public func tagResource(_ input: TagResourceRequest) -> EventLoopFuture<TagResourceResult>
-
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.
Declaration
Swift
public func unsubscribe(_ input: UnsubscribeRequest) -> EventLoopFuture<UnsubscribeResult>
-
Removes the association between one or more provided tags and a notification rule.
Declaration
Swift
public func untagResource(_ input: UntagResourceRequest) -> EventLoopFuture<UntagResourceResult>
-
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.
Declaration
Swift
public func updateNotificationRule(_ input: UpdateNotificationRuleRequest) -> EventLoopFuture<UpdateNotificationRuleResult>
-
Returns information about the event types available for configuring notifications.
Declaration
Swift
public func listEventTypesPaginator(_ input: ListEventTypesRequest, onPage: @escaping (ListEventTypesResult, EventLoop) -> EventLoopFuture<Bool>) -> EventLoopFuture<Void>
-
Returns a list of the notification rules for an AWS account.
Declaration
Swift
public func listNotificationRulesPaginator(_ input: ListNotificationRulesRequest, onPage: @escaping (ListNotificationRulesResult, EventLoop) -> EventLoopFuture<Bool>) -> EventLoopFuture<Void>
-
Returns a list of the notification rule targets for an AWS account.
Declaration
Swift
public func listTargetsPaginator(_ input: ListTargetsRequest, onPage: @escaping (ListTargetsResult, EventLoop) -> EventLoopFuture<Bool>) -> EventLoopFuture<Void>
-
Undocumented
See moreDeclaration
Swift
public struct ListEventTypesRequest : AWSShape
extension CodeStarNotifications.ListEventTypesRequest: AWSPaginateStringToken
-
Undocumented
See moreDeclaration
Swift
public struct ListNotificationRulesRequest : AWSShape
extension CodeStarNotifications.ListNotificationRulesRequest: AWSPaginateStringToken
-
Undocumented
See moreDeclaration
Swift
public struct ListTargetsRequest : AWSShape
extension CodeStarNotifications.ListTargetsRequest: AWSPaginateStringToken
-
Undocumented
See moreDeclaration
Swift
public enum DetailType : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum ListEventTypesFilterName : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum ListNotificationRulesFilterName : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum ListTargetsFilterName : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum NotificationRuleStatus : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum TargetStatus : String, CustomStringConvertible, Codable