@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api AWS CodeStar Notifications
@version 2019-10-15
@auth AWS SigV4
@endpoints 13
@toc createNotificationRule(1), deleteNotificationRule(1), deleteTarget(1), describeNotificationRule(1), listEventTypes(1), listNotificationRules(1), listTagsForResource(1), listTargets(1), subscribe(1), tagResource(1), unsubscribe(1), untagResource(1), updateNotificationRule(1)

@group createNotificationRule
@endpoint POST /createNotificationRule
@required {Name: str, EventTypeIds: [str], Resource: str, Targets: [Target], DetailType: str}
@optional {ClientRequestToken: str, Tags: map<str,str>, Status: str}
@returns(200) {Arn: str?}

@endgroup

@group deleteNotificationRule
@endpoint POST /deleteNotificationRule
@required {Arn: str}
@returns(200) {Arn: str?}

@endgroup

@group deleteTarget
@endpoint POST /deleteTarget
@required {TargetAddress: str}
@optional {ForceUnsubscribeAll: bool}

@endgroup

@group describeNotificationRule
@endpoint POST /describeNotificationRule
@required {Arn: str}
@returns(200) {Arn: str, Name: str?, EventTypes: [EventTypeSummary]?, Resource: str?, Targets: [TargetSummary]?, DetailType: str?, CreatedBy: str?, Status: str?, CreatedTimestamp: str(timestamp)?, LastModifiedTimestamp: str(timestamp)?, Tags: map<str,str>?}

@endgroup

@group listEventTypes
@endpoint POST /listEventTypes
@optional {Filters: [ListEventTypesFilter], NextToken: str, MaxResults: int}
@returns(200) {EventTypes: [EventTypeSummary]?, NextToken: str?}

@endgroup

@group listNotificationRules
@endpoint POST /listNotificationRules
@optional {Filters: [ListNotificationRulesFilter], NextToken: str, MaxResults: int}
@returns(200) {NextToken: str?, NotificationRules: [NotificationRuleSummary]?}

@endgroup

@group listTagsForResource
@endpoint POST /listTagsForResource
@required {Arn: str}
@returns(200) {Tags: map<str,str>?}

@endgroup

@group listTargets
@endpoint POST /listTargets
@optional {Filters: [ListTargetsFilter], NextToken: str, MaxResults: int}
@returns(200) {Targets: [TargetSummary]?, NextToken: str?}

@endgroup

@group subscribe
@endpoint POST /subscribe
@required {Arn: str, Target: Target}
@optional {ClientRequestToken: str}
@returns(200) {Arn: str?}

@endgroup

@group tagResource
@endpoint POST /tagResource
@required {Arn: str, Tags: map<str,str>}
@returns(200) {Tags: map<str,str>?}

@endgroup

@group unsubscribe
@endpoint POST /unsubscribe
@required {Arn: str, TargetAddress: str}
@returns(200) {Arn: str}

@endgroup

@group untagResource
@endpoint POST /untagResource/{resourceArn}
@required {Arn: str, tagKeys: [str]}

@endgroup

@group updateNotificationRule
@endpoint POST /updateNotificationRule
@required {Arn: str}
@optional {Name: str, Status: str, EventTypeIds: [str], Targets: [Target], DetailType: str}

@endgroup

@end
