1{
2    "smithy": "1.0",
3    "metadata": {
4        "suppressions": [
5            {
6                "id": "HttpMethodSemantics",
7                "namespace": "*"
8            },
9            {
10                "id": "HttpResponseCodeSemantics",
11                "namespace": "*"
12            },
13            {
14                "id": "PaginatedTrait",
15                "namespace": "*"
16            },
17            {
18                "id": "HttpHeaderTrait",
19                "namespace": "*"
20            },
21            {
22                "id": "HttpUriConflict",
23                "namespace": "*"
24            },
25            {
26                "id": "Service",
27                "namespace": "*"
28            }
29        ]
30    },
31    "shapes": {
32        "com.amazonaws.codestarnotifications#AccessDeniedException": {
33            "type": "structure",
34            "members": {
35                "Message": {
36                    "target": "com.amazonaws.codestarnotifications#Message"
37                }
38            },
39            "traits": {
40                "smithy.api#documentation": "<p>AWS CodeStar Notifications can't create the notification rule because you do not have sufficient\n      permissions.</p>",
41                "smithy.api#error": "client",
42                "smithy.api#httpError": 403
43            }
44        },
45        "com.amazonaws.codestarnotifications#ClientRequestToken": {
46            "type": "string",
47            "traits": {
48                "smithy.api#length": {
49                    "min": 1,
50                    "max": 256
51                },
52                "smithy.api#pattern": "^[\\w:/-]+$"
53            }
54        },
55        "com.amazonaws.codestarnotifications#CodeStarNotifications_20191015": {
56            "type": "service",
57            "version": "2019-10-15",
58            "operations": [
59                {
60                    "target": "com.amazonaws.codestarnotifications#CreateNotificationRule"
61                },
62                {
63                    "target": "com.amazonaws.codestarnotifications#DeleteNotificationRule"
64                },
65                {
66                    "target": "com.amazonaws.codestarnotifications#DeleteTarget"
67                },
68                {
69                    "target": "com.amazonaws.codestarnotifications#DescribeNotificationRule"
70                },
71                {
72                    "target": "com.amazonaws.codestarnotifications#ListEventTypes"
73                },
74                {
75                    "target": "com.amazonaws.codestarnotifications#ListNotificationRules"
76                },
77                {
78                    "target": "com.amazonaws.codestarnotifications#ListTagsForResource"
79                },
80                {
81                    "target": "com.amazonaws.codestarnotifications#ListTargets"
82                },
83                {
84                    "target": "com.amazonaws.codestarnotifications#Subscribe"
85                },
86                {
87                    "target": "com.amazonaws.codestarnotifications#TagResource"
88                },
89                {
90                    "target": "com.amazonaws.codestarnotifications#Unsubscribe"
91                },
92                {
93                    "target": "com.amazonaws.codestarnotifications#UntagResource"
94                },
95                {
96                    "target": "com.amazonaws.codestarnotifications#UpdateNotificationRule"
97                }
98            ],
99            "traits": {
100                "aws.api#service": {
101                    "sdkId": "codestar notifications",
102                    "arnNamespace": "codestar-notifications",
103                    "cloudFormationName": "CodeStarNotifications",
104                    "cloudTrailEventSource": "codestarnotifications.amazonaws.com",
105                    "endpointPrefix": "codestar-notifications"
106                },
107                "aws.auth#sigv4": {
108                    "name": "codestar-notifications"
109                },
110                "aws.protocols#restJson1": {},
111                "smithy.api#documentation": "<p>This AWS CodeStar Notifications API Reference provides descriptions and usage examples of the\n      operations and data types for the AWS CodeStar Notifications API. You can use the AWS CodeStar Notifications API\n      to work with the following objects:</p>\n      \n         <p>Notification rules, by calling the following: </p>\n         <ul>\n            <li>\n               <p>\n                  <a>CreateNotificationRule</a>, which creates a notification rule for a\n                    resource in your account. </p>\n            </li>\n            <li>\n               <p>\n                  <a>DeleteNotificationRule</a>, which deletes a notification rule. </p>\n            </li>\n            <li>\n               <p>\n                  <a>DescribeNotificationRule</a>, which provides information about a notification rule. </p>\n            </li>\n            <li>\n               <p>\n                  <a>ListNotificationRules</a>, which lists the notification rules associated with\n          your account. </p>\n            </li>\n            <li>\n               <p>\n                  <a>UpdateNotificationRule</a>, which changes the name, events, or targets associated with a\n          notification rule. </p>\n            </li>\n            <li>\n               <p>\n                  <a>Subscribe</a>, which subscribes a target to a notification rule. </p>\n            </li>\n            <li>\n               <p>\n                  <a>Unsubscribe</a>, which removes a target from a notification rule. </p>\n            </li>\n         </ul>\n      \n         <p>Targets, by calling the following: </p>\n         <ul>\n            <li>\n               <p>\n                  <a>DeleteTarget</a>, which removes a notification rule target (SNS topic) from a\n          notification rule. </p>\n            </li>\n            <li>\n               <p>\n                  <a>ListTargets</a>, which lists the targets associated with a\n                    notification rule. </p>\n            </li>\n         </ul>\n      \n         <p>Events, by calling the following: </p>\n         <ul>\n            <li>\n               <p>\n                  <a>ListEventTypes</a>, which lists the event types you can include in\n                    a notification rule. </p>\n            </li>\n         </ul>\n         <p>Tags, by calling the following: </p>\n         <ul>\n            <li>\n               <p>\n                  <a>ListTagsForResource</a>, which lists the tags already associated\n                    with a notification rule in your account. </p>\n            </li>\n            <li>\n               <p>\n                  <a>TagResource</a>, which associates a tag you provide with a\n                    notification rule in your account. </p>\n            </li>\n            <li>\n               <p>\n                  <a>UntagResource</a>, which removes a tag from a notification rule in\n                    your account. </p>\n            </li>\n         </ul>\n      \n\n      \n         <p> For information about how to use AWS CodeStar Notifications, see link in the CodeStarNotifications User Guide.\n    </p>",
112                "smithy.api#title": "AWS CodeStar Notifications"
113            }
114        },
115        "com.amazonaws.codestarnotifications#ConcurrentModificationException": {
116            "type": "structure",
117            "members": {
118                "Message": {
119                    "target": "com.amazonaws.codestarnotifications#Message"
120                }
121            },
122            "traits": {
123                "smithy.api#documentation": "<p>AWS CodeStar Notifications can't complete the request because the resource is being modified by\n      another process. Wait a few minutes and try again.</p>",
124                "smithy.api#error": "client",
125                "smithy.api#httpError": 400
126            }
127        },
128        "com.amazonaws.codestarnotifications#ConfigurationException": {
129            "type": "structure",
130            "members": {
131                "Message": {
132                    "target": "com.amazonaws.codestarnotifications#Message"
133                }
134            },
135            "traits": {
136                "smithy.api#documentation": "<p>Some or all of the configuration is incomplete, missing, or not valid.</p>",
137                "smithy.api#error": "client",
138                "smithy.api#httpError": 400
139            }
140        },
141        "com.amazonaws.codestarnotifications#CreateNotificationRule": {
142            "type": "operation",
143            "input": {
144                "target": "com.amazonaws.codestarnotifications#CreateNotificationRuleRequest"
145            },
146            "output": {
147                "target": "com.amazonaws.codestarnotifications#CreateNotificationRuleResult"
148            },
149            "errors": [
150                {
151                    "target": "com.amazonaws.codestarnotifications#AccessDeniedException"
152                },
153                {
154                    "target": "com.amazonaws.codestarnotifications#ConcurrentModificationException"
155                },
156                {
157                    "target": "com.amazonaws.codestarnotifications#ConfigurationException"
158                },
159                {
160                    "target": "com.amazonaws.codestarnotifications#LimitExceededException"
161                },
162                {
163                    "target": "com.amazonaws.codestarnotifications#ResourceAlreadyExistsException"
164                },
165                {
166                    "target": "com.amazonaws.codestarnotifications#ValidationException"
167                }
168            ],
169            "traits": {
170                "smithy.api#documentation": "<p>Creates a notification rule for a resource. The rule specifies the events you want\n            notifications about and the targets (such as SNS topics) where you want to receive\n            them.</p>",
171                "smithy.api#http": {
172                    "method": "POST",
173                    "uri": "/createNotificationRule",
174                    "code": 200
175                }
176            }
177        },
178        "com.amazonaws.codestarnotifications#CreateNotificationRuleRequest": {
179            "type": "structure",
180            "members": {
181                "Name": {
182                    "target": "com.amazonaws.codestarnotifications#NotificationRuleName",
183                    "traits": {
184                        "smithy.api#documentation": "<p>The name for the notification rule. Notifictaion rule names must be unique in your AWS\n            account.</p>",
185                        "smithy.api#required": {}
186                    }
187                },
188                "EventTypeIds": {
189                    "target": "com.amazonaws.codestarnotifications#EventTypeIds",
190                    "traits": {
191                        "smithy.api#documentation": "<p>A list of event types associated with this notification rule. For a list of allowed\n            events, see <a>EventTypeSummary</a>.</p>",
192                        "smithy.api#required": {}
193                    }
194                },
195                "Resource": {
196                    "target": "com.amazonaws.codestarnotifications#NotificationRuleResource",
197                    "traits": {
198                        "smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the resource to associate with the notification rule. Supported resources include pipelines in AWS CodePipeline,\n      repositories in AWS CodeCommit, and build projects in AWS CodeBuild.</p>",
199                        "smithy.api#required": {}
200                    }
201                },
202                "Targets": {
203                    "target": "com.amazonaws.codestarnotifications#Targets",
204                    "traits": {
205                        "smithy.api#documentation": "<p>A list of Amazon Resource Names (ARNs) of SNS topics to associate with the\n      notification rule.</p>",
206                        "smithy.api#required": {}
207                    }
208                },
209                "DetailType": {
210                    "target": "com.amazonaws.codestarnotifications#DetailType",
211                    "traits": {
212                        "smithy.api#documentation": "<p>The level of detail to include in the notifications for this resource. BASIC will include only the \n        contents of the event as it would appear in AWS CloudWatch. FULL will include any supplemental information\n        provided by AWS CodeStar Notifications and/or the service for the resource for which the notification is created.</p>",
213                        "smithy.api#required": {}
214                    }
215                },
216                "ClientRequestToken": {
217                    "target": "com.amazonaws.codestarnotifications#ClientRequestToken",
218                    "traits": {
219                        "smithy.api#documentation": "<p>A unique, client-generated idempotency token that, when provided in a request, ensures\n            the request cannot be repeated with a changed parameter. If a request with the same\n            parameters is received and a token is included, the request returns information about\n            the initial request that used that token.</p>\n        <note>\n            <p>The AWS SDKs prepopulate client request tokens. If you are using an AWS SDK, an\n                idempotency token is created for you.</p>\n        </note>",
220                        "smithy.api#idempotencyToken": {}
221                    }
222                },
223                "Tags": {
224                    "target": "com.amazonaws.codestarnotifications#Tags",
225                    "traits": {
226                        "smithy.api#documentation": "<p>A list of tags to apply to this notification rule. Key names cannot start with \"aws\". </p>"
227                    }
228                },
229                "Status": {
230                    "target": "com.amazonaws.codestarnotifications#NotificationRuleStatus",
231                    "traits": {
232                        "smithy.api#documentation": "<p>The status of the notification rule. The default value is ENABLED. If the status is\n            set to DISABLED, notifications aren't sent for the notification rule.</p>"
233                    }
234                }
235            }
236        },
237        "com.amazonaws.codestarnotifications#CreateNotificationRuleResult": {
238            "type": "structure",
239            "members": {
240                "Arn": {
241                    "target": "com.amazonaws.codestarnotifications#NotificationRuleArn",
242                    "traits": {
243                        "smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the notification rule.</p>"
244                    }
245                }
246            }
247        },
248        "com.amazonaws.codestarnotifications#CreatedTimestamp": {
249            "type": "timestamp"
250        },
251        "com.amazonaws.codestarnotifications#DeleteNotificationRule": {
252            "type": "operation",
253            "input": {
254                "target": "com.amazonaws.codestarnotifications#DeleteNotificationRuleRequest"
255            },
256            "output": {
257                "target": "com.amazonaws.codestarnotifications#DeleteNotificationRuleResult"
258            },
259            "errors": [
260                {
261                    "target": "com.amazonaws.codestarnotifications#ConcurrentModificationException"
262                },
263                {
264                    "target": "com.amazonaws.codestarnotifications#LimitExceededException"
265                },
266                {
267                    "target": "com.amazonaws.codestarnotifications#ValidationException"
268                }
269            ],
270            "traits": {
271                "smithy.api#documentation": "<p>Deletes a notification rule for a resource.</p>",
272                "smithy.api#http": {
273                    "method": "POST",
274                    "uri": "/deleteNotificationRule",
275                    "code": 200
276                }
277            }
278        },
279        "com.amazonaws.codestarnotifications#DeleteNotificationRuleRequest": {
280            "type": "structure",
281            "members": {
282                "Arn": {
283                    "target": "com.amazonaws.codestarnotifications#NotificationRuleArn",
284                    "traits": {
285                        "smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the notification rule you want to delete.</p>",
286                        "smithy.api#required": {}
287                    }
288                }
289            }
290        },
291        "com.amazonaws.codestarnotifications#DeleteNotificationRuleResult": {
292            "type": "structure",
293            "members": {
294                "Arn": {
295                    "target": "com.amazonaws.codestarnotifications#NotificationRuleArn",
296                    "traits": {
297                        "smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the deleted notification rule.</p>"
298                    }
299                }
300            }
301        },
302        "com.amazonaws.codestarnotifications#DeleteTarget": {
303            "type": "operation",
304            "input": {
305                "target": "com.amazonaws.codestarnotifications#DeleteTargetRequest"
306            },
307            "output": {
308                "target": "com.amazonaws.codestarnotifications#DeleteTargetResult"
309            },
310            "errors": [
311                {
312                    "target": "com.amazonaws.codestarnotifications#ValidationException"
313                }
314            ],
315            "traits": {
316                "smithy.api#documentation": "<p>Deletes a specified target for notifications.</p>",
317                "smithy.api#http": {
318                    "method": "POST",
319                    "uri": "/deleteTarget",
320                    "code": 200
321                }
322            }
323        },
324        "com.amazonaws.codestarnotifications#DeleteTargetRequest": {
325            "type": "structure",
326            "members": {
327                "TargetAddress": {
328                    "target": "com.amazonaws.codestarnotifications#TargetAddress",
329                    "traits": {
330                        "smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the SNS topic to delete.</p>",
331                        "smithy.api#required": {}
332                    }
333                },
334                "ForceUnsubscribeAll": {
335                    "target": "com.amazonaws.codestarnotifications#ForceUnsubscribeAll",
336                    "traits": {
337                        "smithy.api#documentation": "<p>A Boolean value that can be used to delete all associations with this SNS topic. The\n            default value is FALSE. If set to TRUE, all associations between that target and every\n            notification rule in your AWS account are deleted.</p>"
338                    }
339                }
340            }
341        },
342        "com.amazonaws.codestarnotifications#DeleteTargetResult": {
343            "type": "structure",
344            "members": {}
345        },
346        "com.amazonaws.codestarnotifications#DescribeNotificationRule": {
347            "type": "operation",
348            "input": {
349                "target": "com.amazonaws.codestarnotifications#DescribeNotificationRuleRequest"
350            },
351            "output": {
352                "target": "com.amazonaws.codestarnotifications#DescribeNotificationRuleResult"
353            },
354            "errors": [
355                {
356                    "target": "com.amazonaws.codestarnotifications#ResourceNotFoundException"
357                },
358                {
359                    "target": "com.amazonaws.codestarnotifications#ValidationException"
360                }
361            ],
362            "traits": {
363                "smithy.api#documentation": "<p>Returns information about a specified notification rule.</p>",
364                "smithy.api#http": {
365                    "method": "POST",
366                    "uri": "/describeNotificationRule",
367                    "code": 200
368                }
369            }
370        },
371        "com.amazonaws.codestarnotifications#DescribeNotificationRuleRequest": {
372            "type": "structure",
373            "members": {
374                "Arn": {
375                    "target": "com.amazonaws.codestarnotifications#NotificationRuleArn",
376                    "traits": {
377                        "smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the notification rule.</p>",
378                        "smithy.api#required": {}
379                    }
380                }
381            }
382        },
383        "com.amazonaws.codestarnotifications#DescribeNotificationRuleResult": {
384            "type": "structure",
385            "members": {
386                "Arn": {
387                    "target": "com.amazonaws.codestarnotifications#NotificationRuleArn",
388                    "traits": {
389                        "smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the notification rule.</p>",
390                        "smithy.api#required": {}
391                    }
392                },
393                "Name": {
394                    "target": "com.amazonaws.codestarnotifications#NotificationRuleName",
395                    "traits": {
396                        "smithy.api#documentation": "<p>The name of the notification rule.</p>"
397                    }
398                },
399                "EventTypes": {
400                    "target": "com.amazonaws.codestarnotifications#EventTypeBatch",
401                    "traits": {
402                        "smithy.api#documentation": "<p>A list of the event types associated with the notification rule.</p>"
403                    }
404                },
405                "Resource": {
406                    "target": "com.amazonaws.codestarnotifications#NotificationRuleResource",
407                    "traits": {
408                        "smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the resource associated with the notification\n      rule.</p>"
409                    }
410                },
411                "Targets": {
412                    "target": "com.amazonaws.codestarnotifications#TargetsBatch",
413                    "traits": {
414                        "smithy.api#documentation": "<p>A list of the SNS topics associated with the notification rule.</p>"
415                    }
416                },
417                "DetailType": {
418                    "target": "com.amazonaws.codestarnotifications#DetailType",
419                    "traits": {
420                        "smithy.api#documentation": "<p>The level of detail included in the notifications for this resource. BASIC will include only the \n            contents of the event as it would appear in AWS CloudWatch. FULL will include any supplemental information\n            provided by AWS CodeStar Notifications and/or the service for the resource for which the notification is created.</p>"
421                    }
422                },
423                "CreatedBy": {
424                    "target": "com.amazonaws.codestarnotifications#NotificationRuleCreatedBy",
425                    "traits": {
426                        "smithy.api#documentation": "<p>The name or email alias of the person who created the notification rule.</p>"
427                    }
428                },
429                "Status": {
430                    "target": "com.amazonaws.codestarnotifications#NotificationRuleStatus",
431                    "traits": {
432                        "smithy.api#documentation": "<p>The status of the notification rule. Valid statuses are on (sending notifications) or off\n      (not sending notifications).</p>"
433                    }
434                },
435                "CreatedTimestamp": {
436                    "target": "com.amazonaws.codestarnotifications#CreatedTimestamp",
437                    "traits": {
438                        "smithy.api#documentation": "<p>The date and time the notification rule was created, in timestamp format.</p>"
439                    }
440                },
441                "LastModifiedTimestamp": {
442                    "target": "com.amazonaws.codestarnotifications#LastModifiedTimestamp",
443                    "traits": {
444                        "smithy.api#documentation": "<p>The date and time the notification rule was most recently updated, in timestamp\n            format.</p>"
445                    }
446                },
447                "Tags": {
448                    "target": "com.amazonaws.codestarnotifications#Tags",
449                    "traits": {
450                        "smithy.api#documentation": "<p>The tags associated with the notification rule.</p>"
451                    }
452                }
453            }
454        },
455        "com.amazonaws.codestarnotifications#DetailType": {
456            "type": "string",
457            "traits": {
458                "smithy.api#enum": [
459                    {
460                        "value": "BASIC",
461                        "name": "BASIC"
462                    },
463                    {
464                        "value": "FULL",
465                        "name": "FULL"
466                    }
467                ]
468            }
469        },
470        "com.amazonaws.codestarnotifications#EventTypeBatch": {
471            "type": "list",
472            "member": {
473                "target": "com.amazonaws.codestarnotifications#EventTypeSummary"
474            }
475        },
476        "com.amazonaws.codestarnotifications#EventTypeId": {
477            "type": "string",
478            "traits": {
479                "smithy.api#length": {
480                    "min": 1,
481                    "max": 200
482                }
483            }
484        },
485        "com.amazonaws.codestarnotifications#EventTypeIds": {
486            "type": "list",
487            "member": {
488                "target": "com.amazonaws.codestarnotifications#EventTypeId"
489            }
490        },
491        "com.amazonaws.codestarnotifications#EventTypeName": {
492            "type": "string"
493        },
494        "com.amazonaws.codestarnotifications#EventTypeSummary": {
495            "type": "structure",
496            "members": {
497                "EventTypeId": {
498                    "target": "com.amazonaws.codestarnotifications#EventTypeId",
499                    "traits": {
500                        "smithy.api#documentation": "<p>The system-generated ID of the event.</p>"
501                    }
502                },
503                "ServiceName": {
504                    "target": "com.amazonaws.codestarnotifications#ServiceName",
505                    "traits": {
506                        "smithy.api#documentation": "<p>The name of the service for which the event applies.</p>"
507                    }
508                },
509                "EventTypeName": {
510                    "target": "com.amazonaws.codestarnotifications#EventTypeName",
511                    "traits": {
512                        "smithy.api#documentation": "<p>The name of the event.</p>"
513                    }
514                },
515                "ResourceType": {
516                    "target": "com.amazonaws.codestarnotifications#ResourceType",
517                    "traits": {
518                        "smithy.api#documentation": "<p>The resource type of the event.</p>"
519                    }
520                }
521            },
522            "traits": {
523                "smithy.api#documentation": "<p>Returns information about an event that has triggered a notification rule.</p>"
524            }
525        },
526        "com.amazonaws.codestarnotifications#ForceUnsubscribeAll": {
527            "type": "boolean"
528        },
529        "com.amazonaws.codestarnotifications#InvalidNextTokenException": {
530            "type": "structure",
531            "members": {
532                "Message": {
533                    "target": "com.amazonaws.codestarnotifications#Message"
534                }
535            },
536            "traits": {
537                "smithy.api#documentation": "<p>The value for the enumeration token used in the request to return the next batch of the results is not valid. </p>",
538                "smithy.api#error": "client",
539                "smithy.api#httpError": 400
540            }
541        },
542        "com.amazonaws.codestarnotifications#LastModifiedTimestamp": {
543            "type": "timestamp"
544        },
545        "com.amazonaws.codestarnotifications#LimitExceededException": {
546            "type": "structure",
547            "members": {
548                "Message": {
549                    "target": "com.amazonaws.codestarnotifications#Message"
550                }
551            },
552            "traits": {
553                "smithy.api#documentation": "<p>One of the AWS CodeStar Notifications limits has been exceeded. Limits apply to\n            accounts, notification rules, notifications, resources, and targets. For more\n            information, see Limits.</p>",
554                "smithy.api#error": "client",
555                "smithy.api#httpError": 400
556            }
557        },
558        "com.amazonaws.codestarnotifications#ListEventTypes": {
559            "type": "operation",
560            "input": {
561                "target": "com.amazonaws.codestarnotifications#ListEventTypesRequest"
562            },
563            "output": {
564                "target": "com.amazonaws.codestarnotifications#ListEventTypesResult"
565            },
566            "errors": [
567                {
568                    "target": "com.amazonaws.codestarnotifications#InvalidNextTokenException"
569                },
570                {
571                    "target": "com.amazonaws.codestarnotifications#ValidationException"
572                }
573            ],
574            "traits": {
575                "smithy.api#documentation": "<p>Returns information about the event types available for configuring notifications.</p>",
576                "smithy.api#http": {
577                    "method": "POST",
578                    "uri": "/listEventTypes",
579                    "code": 200
580                },
581                "smithy.api#paginated": {
582                    "inputToken": "NextToken",
583                    "outputToken": "NextToken",
584                    "items": "EventTypes",
585                    "pageSize": "MaxResults"
586                }
587            }
588        },
589        "com.amazonaws.codestarnotifications#ListEventTypesFilter": {
590            "type": "structure",
591            "members": {
592                "Name": {
593                    "target": "com.amazonaws.codestarnotifications#ListEventTypesFilterName",
594                    "traits": {
595                        "smithy.api#documentation": "<p>The system-generated name of the filter type you want to filter by.</p>",
596                        "smithy.api#required": {}
597                    }
598                },
599                "Value": {
600                    "target": "com.amazonaws.codestarnotifications#ListEventTypesFilterValue",
601                    "traits": {
602                        "smithy.api#documentation": "<p>The name of the resource type (for example, pipeline) or service name (for example,\n      CodePipeline) that you want to filter by.</p>",
603                        "smithy.api#required": {}
604                    }
605                }
606            },
607            "traits": {
608                "smithy.api#documentation": "<p>Information about a filter to apply to the list of returned event types. You can filter\n      by resource type or service name.</p>"
609            }
610        },
611        "com.amazonaws.codestarnotifications#ListEventTypesFilterName": {
612            "type": "string",
613            "traits": {
614                "smithy.api#enum": [
615                    {
616                        "value": "RESOURCE_TYPE",
617                        "name": "RESOURCE_TYPE"
618                    },
619                    {
620                        "value": "SERVICE_NAME",
621                        "name": "SERVICE_NAME"
622                    }
623                ]
624            }
625        },
626        "com.amazonaws.codestarnotifications#ListEventTypesFilterValue": {
627            "type": "string"
628        },
629        "com.amazonaws.codestarnotifications#ListEventTypesFilters": {
630            "type": "list",
631            "member": {
632                "target": "com.amazonaws.codestarnotifications#ListEventTypesFilter"
633            }
634        },
635        "com.amazonaws.codestarnotifications#ListEventTypesRequest": {
636            "type": "structure",
637            "members": {
638                "Filters": {
639                    "target": "com.amazonaws.codestarnotifications#ListEventTypesFilters",
640                    "traits": {
641                        "smithy.api#documentation": "<p>The filters to use to return information by service or resource type.</p>"
642                    }
643                },
644                "NextToken": {
645                    "target": "com.amazonaws.codestarnotifications#NextToken",
646                    "traits": {
647                        "smithy.api#documentation": "<p>An enumeration token that, when provided in a request, returns the next batch of the\n            results.</p>"
648                    }
649                },
650                "MaxResults": {
651                    "target": "com.amazonaws.codestarnotifications#MaxResults",
652                    "traits": {
653                        "smithy.api#box": {},
654                        "smithy.api#documentation": "<p>A non-negative integer used to limit the number of returned results. The default number is 50. The maximum number of\n      results that can be returned is 100.</p>"
655                    }
656                }
657            }
658        },
659        "com.amazonaws.codestarnotifications#ListEventTypesResult": {
660            "type": "structure",
661            "members": {
662                "EventTypes": {
663                    "target": "com.amazonaws.codestarnotifications#EventTypeBatch",
664                    "traits": {
665                        "smithy.api#documentation": "<p>Information about each event, including service name, resource type, event ID, and event\n      name.</p>"
666                    }
667                },
668                "NextToken": {
669                    "target": "com.amazonaws.codestarnotifications#NextToken",
670                    "traits": {
671                        "smithy.api#documentation": "<p>An enumeration token that can be used in a request to return the next batch of the results.</p>"
672                    }
673                }
674            }
675        },
676        "com.amazonaws.codestarnotifications#ListNotificationRules": {
677            "type": "operation",
678            "input": {
679                "target": "com.amazonaws.codestarnotifications#ListNotificationRulesRequest"
680            },
681            "output": {
682                "target": "com.amazonaws.codestarnotifications#ListNotificationRulesResult"
683            },
684            "errors": [
685                {
686                    "target": "com.amazonaws.codestarnotifications#InvalidNextTokenException"
687                },
688                {
689                    "target": "com.amazonaws.codestarnotifications#ValidationException"
690                }
691            ],
692            "traits": {
693                "smithy.api#documentation": "<p>Returns a list of the notification rules for an AWS account.</p>",
694                "smithy.api#http": {
695                    "method": "POST",
696                    "uri": "/listNotificationRules",
697                    "code": 200
698                },
699                "smithy.api#paginated": {
700                    "inputToken": "NextToken",
701                    "outputToken": "NextToken",
702                    "items": "NotificationRules",
703                    "pageSize": "MaxResults"
704                }
705            }
706        },
707        "com.amazonaws.codestarnotifications#ListNotificationRulesFilter": {
708            "type": "structure",
709            "members": {
710                "Name": {
711                    "target": "com.amazonaws.codestarnotifications#ListNotificationRulesFilterName",
712                    "traits": {
713                        "smithy.api#documentation": "<p>The name of the attribute you want to use to filter the returned notification rules.</p>",
714                        "smithy.api#required": {}
715                    }
716                },
717                "Value": {
718                    "target": "com.amazonaws.codestarnotifications#ListNotificationRulesFilterValue",
719                    "traits": {
720                        "smithy.api#documentation": "<p>The value of the attribute you want to use to filter the returned notification rules. For example, if you specify filtering by <i>RESOURCE</i> \n          in Name, you might specify the ARN of a pipeline in AWS CodePipeline for the value.</p>",
721                        "smithy.api#required": {}
722                    }
723                }
724            },
725            "traits": {
726                "smithy.api#documentation": "<p>Information about a filter to apply to the list of returned notification rules. You can\n      filter by event type, owner, resource, or target.</p>"
727            }
728        },
729        "com.amazonaws.codestarnotifications#ListNotificationRulesFilterName": {
730            "type": "string",
731            "traits": {
732                "smithy.api#enum": [
733                    {
734                        "value": "EVENT_TYPE_ID",
735                        "name": "EVENT_TYPE_ID"
736                    },
737                    {
738                        "value": "CREATED_BY",
739                        "name": "CREATED_BY"
740                    },
741                    {
742                        "value": "RESOURCE",
743                        "name": "RESOURCE"
744                    },
745                    {
746                        "value": "TARGET_ADDRESS",
747                        "name": "TARGET_ADDRESS"
748                    }
749                ]
750            }
751        },
752        "com.amazonaws.codestarnotifications#ListNotificationRulesFilterValue": {
753            "type": "string"
754        },
755        "com.amazonaws.codestarnotifications#ListNotificationRulesFilters": {
756            "type": "list",
757            "member": {
758                "target": "com.amazonaws.codestarnotifications#ListNotificationRulesFilter"
759            }
760        },
761        "com.amazonaws.codestarnotifications#ListNotificationRulesRequest": {
762            "type": "structure",
763            "members": {
764                "Filters": {
765                    "target": "com.amazonaws.codestarnotifications#ListNotificationRulesFilters",
766                    "traits": {
767                        "smithy.api#documentation": "<p>The filters to use to return information by service or resource type. For valid values,\n            see <a>ListNotificationRulesFilter</a>.</p>\n         <note>\n            <p>A filter with the same name can appear more than once when used with OR statements. Filters with different names should be applied with AND statements.</p>\n         </note>"
768                    }
769                },
770                "NextToken": {
771                    "target": "com.amazonaws.codestarnotifications#NextToken",
772                    "traits": {
773                        "smithy.api#documentation": "<p>An enumeration token that, when provided in a request, returns the next batch of the\n            results.</p>"
774                    }
775                },
776                "MaxResults": {
777                    "target": "com.amazonaws.codestarnotifications#MaxResults",
778                    "traits": {
779                        "smithy.api#box": {},
780                        "smithy.api#documentation": "<p>A non-negative integer used to limit the number of returned results. The maximum number of\n      results that can be returned is 100.</p>"
781                    }
782                }
783            }
784        },
785        "com.amazonaws.codestarnotifications#ListNotificationRulesResult": {
786            "type": "structure",
787            "members": {
788                "NextToken": {
789                    "target": "com.amazonaws.codestarnotifications#NextToken",
790                    "traits": {
791                        "smithy.api#documentation": "<p>An enumeration token that can be used in a request to return the next batch of the results.</p>"
792                    }
793                },
794                "NotificationRules": {
795                    "target": "com.amazonaws.codestarnotifications#NotificationRuleBatch",
796                    "traits": {
797                        "smithy.api#documentation": "<p>The list of notification rules for the AWS account, by Amazon Resource Name (ARN) and ID. </p>"
798                    }
799                }
800            }
801        },
802        "com.amazonaws.codestarnotifications#ListTagsForResource": {
803            "type": "operation",
804            "input": {
805                "target": "com.amazonaws.codestarnotifications#ListTagsForResourceRequest"
806            },
807            "output": {
808                "target": "com.amazonaws.codestarnotifications#ListTagsForResourceResult"
809            },
810            "errors": [
811                {
812                    "target": "com.amazonaws.codestarnotifications#ResourceNotFoundException"
813                },
814                {
815                    "target": "com.amazonaws.codestarnotifications#ValidationException"
816                }
817            ],
818            "traits": {
819                "smithy.api#documentation": "<p>Returns a list of the tags associated with a notification rule.</p>",
820                "smithy.api#http": {
821                    "method": "POST",
822                    "uri": "/listTagsForResource",
823                    "code": 200
824                }
825            }
826        },
827        "com.amazonaws.codestarnotifications#ListTagsForResourceRequest": {
828            "type": "structure",
829            "members": {
830                "Arn": {
831                    "target": "com.amazonaws.codestarnotifications#NotificationRuleArn",
832                    "traits": {
833                        "smithy.api#documentation": "<p>The Amazon Resource Name (ARN) for the notification rule.</p>",
834                        "smithy.api#required": {}
835                    }
836                }
837            }
838        },
839        "com.amazonaws.codestarnotifications#ListTagsForResourceResult": {
840            "type": "structure",
841            "members": {
842                "Tags": {
843                    "target": "com.amazonaws.codestarnotifications#Tags",
844                    "traits": {
845                        "smithy.api#documentation": "<p>The tags associated with the notification rule.</p>"
846                    }
847                }
848            }
849        },
850        "com.amazonaws.codestarnotifications#ListTargets": {
851            "type": "operation",
852            "input": {
853                "target": "com.amazonaws.codestarnotifications#ListTargetsRequest"
854            },
855            "output": {
856                "target": "com.amazonaws.codestarnotifications#ListTargetsResult"
857            },
858            "errors": [
859                {
860                    "target": "com.amazonaws.codestarnotifications#InvalidNextTokenException"
861                },
862                {
863                    "target": "com.amazonaws.codestarnotifications#ValidationException"
864                }
865            ],
866            "traits": {
867                "smithy.api#documentation": "<p>Returns a list of the notification rule targets for an AWS account.</p>",
868                "smithy.api#http": {
869                    "method": "POST",
870                    "uri": "/listTargets",
871                    "code": 200
872                },
873                "smithy.api#paginated": {
874                    "inputToken": "NextToken",
875                    "outputToken": "NextToken",
876                    "items": "Targets",
877                    "pageSize": "MaxResults"
878                }
879            }
880        },
881        "com.amazonaws.codestarnotifications#ListTargetsFilter": {
882            "type": "structure",
883            "members": {
884                "Name": {
885                    "target": "com.amazonaws.codestarnotifications#ListTargetsFilterName",
886                    "traits": {
887                        "smithy.api#documentation": "<p>The name of the attribute you want to use to filter the returned targets.</p>",
888                        "smithy.api#required": {}
889                    }
890                },
891                "Value": {
892                    "target": "com.amazonaws.codestarnotifications#ListTargetsFilterValue",
893                    "traits": {
894                        "smithy.api#documentation": "<p>The value of the attribute you want to use to filter the returned targets. For example,\n            if you specify <i>SNS</i> for the Target type, you could specify an Amazon\n            Resource Name (ARN) for a topic as the value.</p>",
895                        "smithy.api#required": {}
896                    }
897                }
898            },
899            "traits": {
900                "smithy.api#documentation": "<p>Information about a filter to apply to the list of returned targets. You can filter by\n            target type, address, or status. For example, to filter results to notification rules\n            that have active Amazon SNS topics as targets, you could specify a ListTargetsFilter\n            Name as TargetType and a Value of SNS, and a Name of TARGET_STATUS and a Value of\n            ACTIVE.</p>"
901            }
902        },
903        "com.amazonaws.codestarnotifications#ListTargetsFilterName": {
904            "type": "string",
905            "traits": {
906                "smithy.api#enum": [
907                    {
908                        "value": "TARGET_TYPE",
909                        "name": "TARGET_TYPE"
910                    },
911                    {
912                        "value": "TARGET_ADDRESS",
913                        "name": "TARGET_ADDRESS"
914                    },
915                    {
916                        "value": "TARGET_STATUS",
917                        "name": "TARGET_STATUS"
918                    }
919                ]
920            }
921        },
922        "com.amazonaws.codestarnotifications#ListTargetsFilterValue": {
923            "type": "string"
924        },
925        "com.amazonaws.codestarnotifications#ListTargetsFilters": {
926            "type": "list",
927            "member": {
928                "target": "com.amazonaws.codestarnotifications#ListTargetsFilter"
929            }
930        },
931        "com.amazonaws.codestarnotifications#ListTargetsRequest": {
932            "type": "structure",
933            "members": {
934                "Filters": {
935                    "target": "com.amazonaws.codestarnotifications#ListTargetsFilters",
936                    "traits": {
937                        "smithy.api#documentation": "<p>The filters to use to return information by service or resource type. Valid filters\n            include target type, target address, and target status.</p>\n         <note>\n            <p>A filter with the same name can appear more than once when used with OR statements. Filters with different names should be applied with AND statements.</p>\n         </note>"
938                    }
939                },
940                "NextToken": {
941                    "target": "com.amazonaws.codestarnotifications#NextToken",
942                    "traits": {
943                        "smithy.api#documentation": "<p>An enumeration token that, when provided in a request, returns the next batch of the\n            results.</p>"
944                    }
945                },
946                "MaxResults": {
947                    "target": "com.amazonaws.codestarnotifications#MaxResults",
948                    "traits": {
949                        "smithy.api#box": {},
950                        "smithy.api#documentation": "<p>A non-negative integer used to limit the number of returned results. The maximum number of\n      results that can be returned is 100.</p>"
951                    }
952                }
953            }
954        },
955        "com.amazonaws.codestarnotifications#ListTargetsResult": {
956            "type": "structure",
957            "members": {
958                "Targets": {
959                    "target": "com.amazonaws.codestarnotifications#TargetsBatch",
960                    "traits": {
961                        "smithy.api#documentation": "<p>The list of notification rule targets. </p>"
962                    }
963                },
964                "NextToken": {
965                    "target": "com.amazonaws.codestarnotifications#NextToken",
966                    "traits": {
967                        "smithy.api#documentation": "<p>An enumeration token that can be used in a request to return the next batch of\n            results.</p>"
968                    }
969                }
970            }
971        },
972        "com.amazonaws.codestarnotifications#MaxResults": {
973            "type": "integer",
974            "traits": {
975                "smithy.api#range": {
976                    "min": 1,
977                    "max": 100
978                }
979            }
980        },
981        "com.amazonaws.codestarnotifications#Message": {
982            "type": "string",
983            "traits": {
984                "smithy.api#length": {
985                    "min": 1
986                }
987            }
988        },
989        "com.amazonaws.codestarnotifications#NextToken": {
990            "type": "string",
991            "traits": {
992                "smithy.api#pattern": "^[\\w/+=]+$"
993            }
994        },
995        "com.amazonaws.codestarnotifications#NotificationRuleArn": {
996            "type": "string",
997            "traits": {
998                "smithy.api#pattern": "^arn:aws[^:\\s]*:codestar-notifications:[^:\\s]+:\\d{12}:notificationrule\\/(.*\\S)?$"
999            }
1000        },
1001        "com.amazonaws.codestarnotifications#NotificationRuleBatch": {
1002            "type": "list",
1003            "member": {
1004                "target": "com.amazonaws.codestarnotifications#NotificationRuleSummary"
1005            }
1006        },
1007        "com.amazonaws.codestarnotifications#NotificationRuleCreatedBy": {
1008            "type": "string",
1009            "traits": {
1010                "smithy.api#length": {
1011                    "min": 1
1012                }
1013            }
1014        },
1015        "com.amazonaws.codestarnotifications#NotificationRuleId": {
1016            "type": "string",
1017            "traits": {
1018                "smithy.api#length": {
1019                    "min": 1,
1020                    "max": 40
1021                }
1022            }
1023        },
1024        "com.amazonaws.codestarnotifications#NotificationRuleName": {
1025            "type": "string",
1026            "traits": {
1027                "smithy.api#length": {
1028                    "min": 1,
1029                    "max": 64
1030                },
1031                "smithy.api#pattern": "[A-Za-z0-9\\-_ ]+$",
1032                "smithy.api#sensitive": {}
1033            }
1034        },
1035        "com.amazonaws.codestarnotifications#NotificationRuleResource": {
1036            "type": "string",
1037            "traits": {
1038                "smithy.api#pattern": "^arn:aws[^:\\s]*:[^:\\s]*:[^:\\s]*:[0-9]{12}:[^\\s]+$"
1039            }
1040        },
1041        "com.amazonaws.codestarnotifications#NotificationRuleStatus": {
1042            "type": "string",
1043            "traits": {
1044                "smithy.api#enum": [
1045                    {
1046                        "value": "ENABLED",
1047                        "name": "ENABLED"
1048                    },
1049                    {
1050                        "value": "DISABLED",
1051                        "name": "DISABLED"
1052                    }
1053                ]
1054            }
1055        },
1056        "com.amazonaws.codestarnotifications#NotificationRuleSummary": {
1057            "type": "structure",
1058            "members": {
1059                "Id": {
1060                    "target": "com.amazonaws.codestarnotifications#NotificationRuleId",
1061                    "traits": {
1062                        "smithy.api#documentation": "<p>The unique ID of the notification rule.</p>"
1063                    }
1064                },
1065                "Arn": {
1066                    "target": "com.amazonaws.codestarnotifications#NotificationRuleArn",
1067                    "traits": {
1068                        "smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the notification rule.</p>"
1069                    }
1070                }
1071            },
1072            "traits": {
1073                "smithy.api#documentation": "<p>Information about a specified notification rule.</p>"
1074            }
1075        },
1076        "com.amazonaws.codestarnotifications#ResourceAlreadyExistsException": {
1077            "type": "structure",
1078            "members": {
1079                "Message": {
1080                    "target": "com.amazonaws.codestarnotifications#Message"
1081                }
1082            },
1083            "traits": {
1084                "smithy.api#documentation": "<p>A resource with the same name or ID already exists. Notification rule names must be\n            unique in your AWS account.</p>",
1085                "smithy.api#error": "client",
1086                "smithy.api#httpError": 409
1087            }
1088        },
1089        "com.amazonaws.codestarnotifications#ResourceNotFoundException": {
1090            "type": "structure",
1091            "members": {
1092                "Message": {
1093                    "target": "com.amazonaws.codestarnotifications#Message"
1094                }
1095            },
1096            "traits": {
1097                "smithy.api#documentation": "<p>AWS CodeStar Notifications can't find a resource that matches the provided ARN. </p>",
1098                "smithy.api#error": "client",
1099                "smithy.api#httpError": 404
1100            }
1101        },
1102        "com.amazonaws.codestarnotifications#ResourceType": {
1103            "type": "string",
1104            "traits": {
1105                "smithy.api#length": {
1106                    "min": 1
1107                },
1108                "smithy.api#pattern": "^([a-zA-Z0-9-])+$"
1109            }
1110        },
1111        "com.amazonaws.codestarnotifications#ServiceName": {
1112            "type": "string"
1113        },
1114        "com.amazonaws.codestarnotifications#Subscribe": {
1115            "type": "operation",
1116            "input": {
1117                "target": "com.amazonaws.codestarnotifications#SubscribeRequest"
1118            },
1119            "output": {
1120                "target": "com.amazonaws.codestarnotifications#SubscribeResult"
1121            },
1122            "errors": [
1123                {
1124                    "target": "com.amazonaws.codestarnotifications#ResourceNotFoundException"
1125                },
1126                {
1127                    "target": "com.amazonaws.codestarnotifications#ValidationException"
1128                }
1129            ],
1130            "traits": {
1131                "smithy.api#documentation": "<p>Creates an association between a notification rule and an SNS topic so that the\n            associated target can receive notifications when the events described in the rule are\n            triggered.</p>",
1132                "smithy.api#http": {
1133                    "method": "POST",
1134                    "uri": "/subscribe",
1135                    "code": 200
1136                }
1137            }
1138        },
1139        "com.amazonaws.codestarnotifications#SubscribeRequest": {
1140            "type": "structure",
1141            "members": {
1142                "Arn": {
1143                    "target": "com.amazonaws.codestarnotifications#NotificationRuleArn",
1144                    "traits": {
1145                        "smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the notification rule for which you want to create the association.</p>",
1146                        "smithy.api#required": {}
1147                    }
1148                },
1149                "Target": {
1150                    "target": "com.amazonaws.codestarnotifications#Target",
1151                    "traits": {
1152                        "smithy.api#required": {}
1153                    }
1154                },
1155                "ClientRequestToken": {
1156                    "target": "com.amazonaws.codestarnotifications#ClientRequestToken",
1157                    "traits": {
1158                        "smithy.api#documentation": "<p>An enumeration token that, when provided in a request, returns the next batch of the\n            results.</p>"
1159                    }
1160                }
1161            }
1162        },
1163        "com.amazonaws.codestarnotifications#SubscribeResult": {
1164            "type": "structure",
1165            "members": {
1166                "Arn": {
1167                    "target": "com.amazonaws.codestarnotifications#NotificationRuleArn",
1168                    "traits": {
1169                        "smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the notification rule for which you have created assocations.</p>"
1170                    }
1171                }
1172            }
1173        },
1174        "com.amazonaws.codestarnotifications#TagKey": {
1175            "type": "string",
1176            "traits": {
1177                "smithy.api#length": {
1178                    "min": 1,
1179                    "max": 128
1180                },
1181                "smithy.api#pattern": "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"
1182            }
1183        },
1184        "com.amazonaws.codestarnotifications#TagKeys": {
1185            "type": "list",
1186            "member": {
1187                "target": "com.amazonaws.codestarnotifications#TagKey"
1188            }
1189        },
1190        "com.amazonaws.codestarnotifications#TagResource": {
1191            "type": "operation",
1192            "input": {
1193                "target": "com.amazonaws.codestarnotifications#TagResourceRequest"
1194            },
1195            "output": {
1196                "target": "com.amazonaws.codestarnotifications#TagResourceResult"
1197            },
1198            "errors": [
1199                {
1200                    "target": "com.amazonaws.codestarnotifications#ConcurrentModificationException"
1201                },
1202                {
1203                    "target": "com.amazonaws.codestarnotifications#ResourceNotFoundException"
1204                },
1205                {
1206                    "target": "com.amazonaws.codestarnotifications#ValidationException"
1207                }
1208            ],
1209            "traits": {
1210                "smithy.api#documentation": "<p>Associates a set of provided tags with a notification rule.</p>",
1211                "smithy.api#http": {
1212                    "method": "POST",
1213                    "uri": "/tagResource",
1214                    "code": 200
1215                }
1216            }
1217        },
1218        "com.amazonaws.codestarnotifications#TagResourceRequest": {
1219            "type": "structure",
1220            "members": {
1221                "Arn": {
1222                    "target": "com.amazonaws.codestarnotifications#NotificationRuleArn",
1223                    "traits": {
1224                        "smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the notification rule to tag.</p>",
1225                        "smithy.api#required": {}
1226                    }
1227                },
1228                "Tags": {
1229                    "target": "com.amazonaws.codestarnotifications#Tags",
1230                    "traits": {
1231                        "smithy.api#documentation": "<p>The list of tags to associate with the resource. Tag key names cannot start with \"aws\".</p>",
1232                        "smithy.api#required": {}
1233                    }
1234                }
1235            }
1236        },
1237        "com.amazonaws.codestarnotifications#TagResourceResult": {
1238            "type": "structure",
1239            "members": {
1240                "Tags": {
1241                    "target": "com.amazonaws.codestarnotifications#Tags",
1242                    "traits": {
1243                        "smithy.api#documentation": "<p>The list of tags associated with the resource.</p>"
1244                    }
1245                }
1246            }
1247        },
1248        "com.amazonaws.codestarnotifications#TagValue": {
1249            "type": "string",
1250            "traits": {
1251                "smithy.api#length": {
1252                    "min": 0,
1253                    "max": 256
1254                },
1255                "smithy.api#pattern": "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"
1256            }
1257        },
1258        "com.amazonaws.codestarnotifications#Tags": {
1259            "type": "map",
1260            "key": {
1261                "target": "com.amazonaws.codestarnotifications#TagKey"
1262            },
1263            "value": {
1264                "target": "com.amazonaws.codestarnotifications#TagValue"
1265            }
1266        },
1267        "com.amazonaws.codestarnotifications#Target": {
1268            "type": "structure",
1269            "members": {
1270                "TargetType": {
1271                    "target": "com.amazonaws.codestarnotifications#TargetType",
1272                    "traits": {
1273                        "smithy.api#documentation": "<p>The target type. Can be an Amazon SNS topic.</p>"
1274                    }
1275                },
1276                "TargetAddress": {
1277                    "target": "com.amazonaws.codestarnotifications#TargetAddress",
1278                    "traits": {
1279                        "smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the SNS topic.</p>"
1280                    }
1281                }
1282            },
1283            "traits": {
1284                "smithy.api#documentation": "<p>Information about the SNS topics associated with a  notification rule.</p>"
1285            }
1286        },
1287        "com.amazonaws.codestarnotifications#TargetAddress": {
1288            "type": "string",
1289            "traits": {
1290                "smithy.api#length": {
1291                    "min": 1,
1292                    "max": 320
1293                },
1294                "smithy.api#sensitive": {}
1295            }
1296        },
1297        "com.amazonaws.codestarnotifications#TargetStatus": {
1298            "type": "string",
1299            "traits": {
1300                "smithy.api#enum": [
1301                    {
1302                        "value": "PENDING",
1303                        "name": "PENDING"
1304                    },
1305                    {
1306                        "value": "ACTIVE",
1307                        "name": "ACTIVE"
1308                    },
1309                    {
1310                        "value": "UNREACHABLE",
1311                        "name": "UNREACHABLE"
1312                    },
1313                    {
1314                        "value": "INACTIVE",
1315                        "name": "INACTIVE"
1316                    },
1317                    {
1318                        "value": "DEACTIVATED",
1319                        "name": "DEACTIVATED"
1320                    }
1321                ]
1322            }
1323        },
1324        "com.amazonaws.codestarnotifications#TargetSummary": {
1325            "type": "structure",
1326            "members": {
1327                "TargetAddress": {
1328                    "target": "com.amazonaws.codestarnotifications#TargetAddress",
1329                    "traits": {
1330                        "smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the SNS topic.</p>"
1331                    }
1332                },
1333                "TargetType": {
1334                    "target": "com.amazonaws.codestarnotifications#TargetType",
1335                    "traits": {
1336                        "smithy.api#documentation": "<p>The type of the target (for example, SNS).</p>"
1337                    }
1338                },
1339                "TargetStatus": {
1340                    "target": "com.amazonaws.codestarnotifications#TargetStatus",
1341                    "traits": {
1342                        "smithy.api#documentation": "<p>The status of the target.</p>"
1343                    }
1344                }
1345            },
1346            "traits": {
1347                "smithy.api#documentation": "<p>Information about the targets specified for a notification rule.</p>"
1348            }
1349        },
1350        "com.amazonaws.codestarnotifications#TargetType": {
1351            "type": "string",
1352            "traits": {
1353                "smithy.api#pattern": "^[A-Za-z]+$"
1354            }
1355        },
1356        "com.amazonaws.codestarnotifications#Targets": {
1357            "type": "list",
1358            "member": {
1359                "target": "com.amazonaws.codestarnotifications#Target"
1360            },
1361            "traits": {
1362                "smithy.api#length": {
1363                    "min": 0,
1364                    "max": 10
1365                }
1366            }
1367        },
1368        "com.amazonaws.codestarnotifications#TargetsBatch": {
1369            "type": "list",
1370            "member": {
1371                "target": "com.amazonaws.codestarnotifications#TargetSummary"
1372            }
1373        },
1374        "com.amazonaws.codestarnotifications#Unsubscribe": {
1375            "type": "operation",
1376            "input": {
1377                "target": "com.amazonaws.codestarnotifications#UnsubscribeRequest"
1378            },
1379            "output": {
1380                "target": "com.amazonaws.codestarnotifications#UnsubscribeResult"
1381            },
1382            "errors": [
1383                {
1384                    "target": "com.amazonaws.codestarnotifications#ValidationException"
1385                }
1386            ],
1387            "traits": {
1388                "smithy.api#documentation": "<p>Removes an association between a notification rule and an Amazon SNS topic so that\n            subscribers to that topic stop receiving notifications when the events described in the\n            rule are triggered.</p>",
1389                "smithy.api#http": {
1390                    "method": "POST",
1391                    "uri": "/unsubscribe",
1392                    "code": 200
1393                }
1394            }
1395        },
1396        "com.amazonaws.codestarnotifications#UnsubscribeRequest": {
1397            "type": "structure",
1398            "members": {
1399                "Arn": {
1400                    "target": "com.amazonaws.codestarnotifications#NotificationRuleArn",
1401                    "traits": {
1402                        "smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the notification rule.</p>",
1403                        "smithy.api#required": {}
1404                    }
1405                },
1406                "TargetAddress": {
1407                    "target": "com.amazonaws.codestarnotifications#TargetAddress",
1408                    "traits": {
1409                        "smithy.api#documentation": "<p>The ARN of the SNS topic to unsubscribe from the notification rule.</p>",
1410                        "smithy.api#required": {}
1411                    }
1412                }
1413            }
1414        },
1415        "com.amazonaws.codestarnotifications#UnsubscribeResult": {
1416            "type": "structure",
1417            "members": {
1418                "Arn": {
1419                    "target": "com.amazonaws.codestarnotifications#NotificationRuleArn",
1420                    "traits": {
1421                        "smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the the notification rule from which you have removed a subscription.</p>",
1422                        "smithy.api#required": {}
1423                    }
1424                }
1425            }
1426        },
1427        "com.amazonaws.codestarnotifications#UntagResource": {
1428            "type": "operation",
1429            "input": {
1430                "target": "com.amazonaws.codestarnotifications#UntagResourceRequest"
1431            },
1432            "output": {
1433                "target": "com.amazonaws.codestarnotifications#UntagResourceResult"
1434            },
1435            "errors": [
1436                {
1437                    "target": "com.amazonaws.codestarnotifications#ConcurrentModificationException"
1438                },
1439                {
1440                    "target": "com.amazonaws.codestarnotifications#ResourceNotFoundException"
1441                },
1442                {
1443                    "target": "com.amazonaws.codestarnotifications#ValidationException"
1444                }
1445            ],
1446            "traits": {
1447                "smithy.api#documentation": "<p>Removes the association between one or more provided tags and a notification\n            rule.</p>",
1448                "smithy.api#http": {
1449                    "method": "POST",
1450                    "uri": "/untagResource",
1451                    "code": 200
1452                }
1453            }
1454        },
1455        "com.amazonaws.codestarnotifications#UntagResourceRequest": {
1456            "type": "structure",
1457            "members": {
1458                "Arn": {
1459                    "target": "com.amazonaws.codestarnotifications#NotificationRuleArn",
1460                    "traits": {
1461                        "smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the notification rule from which to remove the\n      tags.</p>",
1462                        "smithy.api#required": {}
1463                    }
1464                },
1465                "TagKeys": {
1466                    "target": "com.amazonaws.codestarnotifications#TagKeys",
1467                    "traits": {
1468                        "smithy.api#documentation": "<p>The key names of the tags to remove.</p>",
1469                        "smithy.api#required": {}
1470                    }
1471                }
1472            }
1473        },
1474        "com.amazonaws.codestarnotifications#UntagResourceResult": {
1475            "type": "structure",
1476            "members": {}
1477        },
1478        "com.amazonaws.codestarnotifications#UpdateNotificationRule": {
1479            "type": "operation",
1480            "input": {
1481                "target": "com.amazonaws.codestarnotifications#UpdateNotificationRuleRequest"
1482            },
1483            "output": {
1484                "target": "com.amazonaws.codestarnotifications#UpdateNotificationRuleResult"
1485            },
1486            "errors": [
1487                {
1488                    "target": "com.amazonaws.codestarnotifications#ResourceNotFoundException"
1489                },
1490                {
1491                    "target": "com.amazonaws.codestarnotifications#ValidationException"
1492                }
1493            ],
1494            "traits": {
1495                "smithy.api#documentation": "<p>Updates a notification rule for a resource. You can change the events that trigger the\n            notification rule, the status of the rule, and the targets that receive the\n            notifications.</p>\n         <note>\n            <p>To add or remove tags for a notification rule, you must use <a>TagResource</a> and <a>UntagResource</a>.</p>\n         </note>",
1496                "smithy.api#http": {
1497                    "method": "POST",
1498                    "uri": "/updateNotificationRule",
1499                    "code": 200
1500                }
1501            }
1502        },
1503        "com.amazonaws.codestarnotifications#UpdateNotificationRuleRequest": {
1504            "type": "structure",
1505            "members": {
1506                "Arn": {
1507                    "target": "com.amazonaws.codestarnotifications#NotificationRuleArn",
1508                    "traits": {
1509                        "smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the notification rule.</p>",
1510                        "smithy.api#required": {}
1511                    }
1512                },
1513                "Name": {
1514                    "target": "com.amazonaws.codestarnotifications#NotificationRuleName",
1515                    "traits": {
1516                        "smithy.api#documentation": "<p>The name of the notification rule.</p>"
1517                    }
1518                },
1519                "Status": {
1520                    "target": "com.amazonaws.codestarnotifications#NotificationRuleStatus",
1521                    "traits": {
1522                        "smithy.api#documentation": "<p>The status of the notification rule. Valid statuses include enabled (sending notifications) or\n      disabled (not sending notifications).</p>"
1523                    }
1524                },
1525                "EventTypeIds": {
1526                    "target": "com.amazonaws.codestarnotifications#EventTypeIds",
1527                    "traits": {
1528                        "smithy.api#documentation": "<p>A list of event types associated with this notification rule.</p>"
1529                    }
1530                },
1531                "Targets": {
1532                    "target": "com.amazonaws.codestarnotifications#Targets",
1533                    "traits": {
1534                        "smithy.api#documentation": "<p>The address and type of the targets to receive notifications from this notification\n      rule.</p>"
1535                    }
1536                },
1537                "DetailType": {
1538                    "target": "com.amazonaws.codestarnotifications#DetailType",
1539                    "traits": {
1540                        "smithy.api#documentation": "<p>The level of detail to include in the notifications for this resource. BASIC will include only the \n            contents of the event as it would appear in AWS CloudWatch. FULL will include any supplemental information\n            provided by AWS CodeStar Notifications and/or the service for the resource for which the notification is created.</p>"
1541                    }
1542                }
1543            }
1544        },
1545        "com.amazonaws.codestarnotifications#UpdateNotificationRuleResult": {
1546            "type": "structure",
1547            "members": {}
1548        },
1549        "com.amazonaws.codestarnotifications#ValidationException": {
1550            "type": "structure",
1551            "members": {
1552                "Message": {
1553                    "target": "com.amazonaws.codestarnotifications#Message"
1554                }
1555            },
1556            "traits": {
1557                "smithy.api#documentation": "<p>One or more parameter values are not valid.</p>",
1558                "smithy.api#error": "client",
1559                "smithy.api#httpError": 400
1560            }
1561        }
1562    }
1563}
1564