@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api Amazon Pinpoint SMS and Voice Service
@version 2018-09-05
@auth AWS SigV4
@endpoints 8
@toc sms-voice(8)

@endpoint POST /v1/sms-voice/configuration-sets
@desc Create a new configuration set. After you create the configuration set, you can add one or more event destinations to it.
@optional {ConfigurationSetName: str}

@endpoint POST /v1/sms-voice/configuration-sets/{ConfigurationSetName}/event-destinations
@desc Create a new event destination in a configuration set.
@required {ConfigurationSetName: str}
@optional {EventDestination: EventDestinationDefinition, EventDestinationName: str}

@endpoint DELETE /v1/sms-voice/configuration-sets/{ConfigurationSetName}
@desc Deletes an existing configuration set.
@required {ConfigurationSetName: str}

@endpoint DELETE /v1/sms-voice/configuration-sets/{ConfigurationSetName}/event-destinations/{EventDestinationName}
@desc Deletes an event destination in a configuration set.
@required {ConfigurationSetName: str, EventDestinationName: str}

@endpoint GET /v1/sms-voice/configuration-sets/{ConfigurationSetName}/event-destinations
@desc Obtain information about an event destination, including the types of events it reports, the Amazon Resource Name (ARN) of the destination, and the name of the event destination.
@required {ConfigurationSetName: str}
@returns(200) {EventDestinations: [EventDestination]?}

@endpoint GET /v1/sms-voice/configuration-sets
@desc List all of the configuration sets associated with your Amazon Pinpoint account in the current region.
@optional {NextToken: str, PageSize: str}
@returns(200) {ConfigurationSets: [str]?, NextToken: str?}

@endpoint POST /v1/sms-voice/voice/message
@desc Create a new voice message and send it to a recipient's phone number.
@optional {CallerId: str, ConfigurationSetName: str, Content: VoiceMessageContent, DestinationPhoneNumber: str, OriginationPhoneNumber: str}
@returns(200) {MessageId: str?}

@endpoint PUT /v1/sms-voice/configuration-sets/{ConfigurationSetName}/event-destinations/{EventDestinationName}
@desc Update an event destination in a configuration set. An event destination is a location that you publish information about your voice calls to. For example, you can log an event to an Amazon CloudWatch destination when a call fails.
@required {ConfigurationSetName: str, EventDestinationName: str}
@optional {EventDestination: EventDestinationDefinition}

@end
