ListEventTypes - AWS CodeStar Notifications

ListEventTypes

Returns information about the event types available for configuring notifications.

Request Syntax

POST /listEventTypes HTTP/1.1 Content-type: application/json { "Filters": [ { "Name": "string", "Value": "string" } ], "MaxResults": number, "NextToken": "string" }

URI Request Parameters

The request does not use any URI parameters.

Request Body

The request accepts the following data in JSON format.

Filters

The filters to use to return information by service or resource type.

Type: Array of ListEventTypesFilter objects

Required: No

MaxResults

A non-negative integer used to limit the number of returned results. The default number is 50. The maximum number of results that can be returned is 100.

Type: Integer

Valid Range: Minimum value of 1. Maximum value of 100.

Required: No

NextToken

An enumeration token that, when provided in a request, returns the next batch of the results.

Type: String

Pattern: ^[\w/+=]+$

Required: No

Response Syntax

HTTP/1.1 200 Content-type: application/json { "EventTypes": [ { "EventTypeId": "string", "EventTypeName": "string", "ResourceType": "string", "ServiceName": "string" } ], "NextToken": "string" }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

EventTypes

Information about each event, including service name, resource type, event ID, and event name.

Type: Array of EventTypeSummary objects

NextToken

An enumeration token that can be used in a request to return the next batch of the results.

Type: String

Pattern: ^[\w/+=]+$

Errors

For information about the errors that are common to all actions, see Common Errors.

InvalidNextTokenException

The value for the enumeration token used in the request to return the next batch of the results is not valid.

HTTP Status Code: 400

ValidationException

One or more parameter values are not valid.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: