@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
@optional {ConfigurationSetName: str}

@endpoint POST /v1/sms-voice/configuration-sets/{ConfigurationSetName}/event-destinations
@required {ConfigurationSetName: str}
@optional {EventDestination: EventDestinationDefinition, EventDestinationName: str}

@endpoint DELETE /v1/sms-voice/configuration-sets/{ConfigurationSetName}
@required {ConfigurationSetName: str}

@endpoint DELETE /v1/sms-voice/configuration-sets/{ConfigurationSetName}/event-destinations/{EventDestinationName}
@required {ConfigurationSetName: str, EventDestinationName: str}

@endpoint GET /v1/sms-voice/configuration-sets/{ConfigurationSetName}/event-destinations
@required {ConfigurationSetName: str}
@returns(200) {EventDestinations: [EventDestination]?}

@endpoint GET /v1/sms-voice/configuration-sets
@optional {NextToken: str, PageSize: str}
@returns(200) {ConfigurationSets: [str]?, NextToken: str?}

@endpoint POST /v1/sms-voice/voice/message
@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}
@required {ConfigurationSetName: str, EventDestinationName: str}
@optional {EventDestination: EventDestinationDefinition}

@end
