Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
awssdkgo Release v1.19.39 d6c5cca May 28, 2019
1 contributor

Users who have contributed to this file

12101 lines (10591 sloc) 414 KB
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package chime
import (
"fmt"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awsutil"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/private/protocol"
"github.com/aws/aws-sdk-go/private/protocol/restjson"
)
const opAssociatePhoneNumberWithUser = "AssociatePhoneNumberWithUser"
// AssociatePhoneNumberWithUserRequest generates a "aws/request.Request" representing the
// client's request for the AssociatePhoneNumberWithUser operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See AssociatePhoneNumberWithUser for more information on using the AssociatePhoneNumberWithUser
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the AssociatePhoneNumberWithUserRequest method.
// req, resp := client.AssociatePhoneNumberWithUserRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/AssociatePhoneNumberWithUser
func (c *Chime) AssociatePhoneNumberWithUserRequest(input *AssociatePhoneNumberWithUserInput) (req *request.Request, output *AssociatePhoneNumberWithUserOutput) {
op := &request.Operation{
Name: opAssociatePhoneNumberWithUser,
HTTPMethod: "POST",
HTTPPath: "/accounts/{accountId}/users/{userId}?operation=associate-phone-number",
}
if input == nil {
input = &AssociatePhoneNumberWithUserInput{}
}
output = &AssociatePhoneNumberWithUserOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// AssociatePhoneNumberWithUser API operation for Amazon Chime.
//
// Associates a phone number with the specified Amazon Chime user.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Chime's
// API operation AssociatePhoneNumberWithUser for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnauthorizedClientException "UnauthorizedClientException"
// The client is not currently authorized to make the request.
//
// * ErrCodeNotFoundException "NotFoundException"
// One or more of the resources in the request does not exist in the system.
//
// * ErrCodeForbiddenException "ForbiddenException"
// The client is permanently forbidden from making the request. For example,
// when a user tries to create an account from an unsupported Region.
//
// * ErrCodeBadRequestException "BadRequestException"
// The input parameters don't match the service's restrictions.
//
// * ErrCodeThrottledClientException "ThrottledClientException"
// The client exceeded its request rate limit.
//
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
// The service is currently unavailable.
//
// * ErrCodeServiceFailureException "ServiceFailureException"
// The service encountered an unexpected error.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/AssociatePhoneNumberWithUser
func (c *Chime) AssociatePhoneNumberWithUser(input *AssociatePhoneNumberWithUserInput) (*AssociatePhoneNumberWithUserOutput, error) {
req, out := c.AssociatePhoneNumberWithUserRequest(input)
return out, req.Send()
}
// AssociatePhoneNumberWithUserWithContext is the same as AssociatePhoneNumberWithUser with the addition of
// the ability to pass a context and additional request options.
//
// See AssociatePhoneNumberWithUser for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Chime) AssociatePhoneNumberWithUserWithContext(ctx aws.Context, input *AssociatePhoneNumberWithUserInput, opts ...request.Option) (*AssociatePhoneNumberWithUserOutput, error) {
req, out := c.AssociatePhoneNumberWithUserRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opAssociatePhoneNumbersWithVoiceConnector = "AssociatePhoneNumbersWithVoiceConnector"
// AssociatePhoneNumbersWithVoiceConnectorRequest generates a "aws/request.Request" representing the
// client's request for the AssociatePhoneNumbersWithVoiceConnector operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See AssociatePhoneNumbersWithVoiceConnector for more information on using the AssociatePhoneNumbersWithVoiceConnector
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the AssociatePhoneNumbersWithVoiceConnectorRequest method.
// req, resp := client.AssociatePhoneNumbersWithVoiceConnectorRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/AssociatePhoneNumbersWithVoiceConnector
func (c *Chime) AssociatePhoneNumbersWithVoiceConnectorRequest(input *AssociatePhoneNumbersWithVoiceConnectorInput) (req *request.Request, output *AssociatePhoneNumbersWithVoiceConnectorOutput) {
op := &request.Operation{
Name: opAssociatePhoneNumbersWithVoiceConnector,
HTTPMethod: "POST",
HTTPPath: "/voice-connectors/{voiceConnectorId}?operation=associate-phone-numbers",
}
if input == nil {
input = &AssociatePhoneNumbersWithVoiceConnectorInput{}
}
output = &AssociatePhoneNumbersWithVoiceConnectorOutput{}
req = c.newRequest(op, input, output)
return
}
// AssociatePhoneNumbersWithVoiceConnector API operation for Amazon Chime.
//
// Associates a phone number with the specified Amazon Chime Voice Connector.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Chime's
// API operation AssociatePhoneNumbersWithVoiceConnector for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnauthorizedClientException "UnauthorizedClientException"
// The client is not currently authorized to make the request.
//
// * ErrCodeNotFoundException "NotFoundException"
// One or more of the resources in the request does not exist in the system.
//
// * ErrCodeForbiddenException "ForbiddenException"
// The client is permanently forbidden from making the request. For example,
// when a user tries to create an account from an unsupported Region.
//
// * ErrCodeBadRequestException "BadRequestException"
// The input parameters don't match the service's restrictions.
//
// * ErrCodeThrottledClientException "ThrottledClientException"
// The client exceeded its request rate limit.
//
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
// The service is currently unavailable.
//
// * ErrCodeServiceFailureException "ServiceFailureException"
// The service encountered an unexpected error.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/AssociatePhoneNumbersWithVoiceConnector
func (c *Chime) AssociatePhoneNumbersWithVoiceConnector(input *AssociatePhoneNumbersWithVoiceConnectorInput) (*AssociatePhoneNumbersWithVoiceConnectorOutput, error) {
req, out := c.AssociatePhoneNumbersWithVoiceConnectorRequest(input)
return out, req.Send()
}
// AssociatePhoneNumbersWithVoiceConnectorWithContext is the same as AssociatePhoneNumbersWithVoiceConnector with the addition of
// the ability to pass a context and additional request options.
//
// See AssociatePhoneNumbersWithVoiceConnector for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Chime) AssociatePhoneNumbersWithVoiceConnectorWithContext(ctx aws.Context, input *AssociatePhoneNumbersWithVoiceConnectorInput, opts ...request.Option) (*AssociatePhoneNumbersWithVoiceConnectorOutput, error) {
req, out := c.AssociatePhoneNumbersWithVoiceConnectorRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opBatchDeletePhoneNumber = "BatchDeletePhoneNumber"
// BatchDeletePhoneNumberRequest generates a "aws/request.Request" representing the
// client's request for the BatchDeletePhoneNumber operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See BatchDeletePhoneNumber for more information on using the BatchDeletePhoneNumber
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the BatchDeletePhoneNumberRequest method.
// req, resp := client.BatchDeletePhoneNumberRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/BatchDeletePhoneNumber
func (c *Chime) BatchDeletePhoneNumberRequest(input *BatchDeletePhoneNumberInput) (req *request.Request, output *BatchDeletePhoneNumberOutput) {
op := &request.Operation{
Name: opBatchDeletePhoneNumber,
HTTPMethod: "POST",
HTTPPath: "/phone-numbers?operation=batch-delete",
}
if input == nil {
input = &BatchDeletePhoneNumberInput{}
}
output = &BatchDeletePhoneNumberOutput{}
req = c.newRequest(op, input, output)
return
}
// BatchDeletePhoneNumber API operation for Amazon Chime.
//
// Moves phone numbers into the Deletion queue. Phone numbers must be disassociated
// from any users or Amazon Chime Voice Connectors before they can be deleted.
//
// Phone numbers remain in the Deletion queue for 7 days before they are deleted
// permanently.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Chime's
// API operation BatchDeletePhoneNumber for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnauthorizedClientException "UnauthorizedClientException"
// The client is not currently authorized to make the request.
//
// * ErrCodeNotFoundException "NotFoundException"
// One or more of the resources in the request does not exist in the system.
//
// * ErrCodeForbiddenException "ForbiddenException"
// The client is permanently forbidden from making the request. For example,
// when a user tries to create an account from an unsupported Region.
//
// * ErrCodeBadRequestException "BadRequestException"
// The input parameters don't match the service's restrictions.
//
// * ErrCodeThrottledClientException "ThrottledClientException"
// The client exceeded its request rate limit.
//
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
// The service is currently unavailable.
//
// * ErrCodeServiceFailureException "ServiceFailureException"
// The service encountered an unexpected error.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/BatchDeletePhoneNumber
func (c *Chime) BatchDeletePhoneNumber(input *BatchDeletePhoneNumberInput) (*BatchDeletePhoneNumberOutput, error) {
req, out := c.BatchDeletePhoneNumberRequest(input)
return out, req.Send()
}
// BatchDeletePhoneNumberWithContext is the same as BatchDeletePhoneNumber with the addition of
// the ability to pass a context and additional request options.
//
// See BatchDeletePhoneNumber for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Chime) BatchDeletePhoneNumberWithContext(ctx aws.Context, input *BatchDeletePhoneNumberInput, opts ...request.Option) (*BatchDeletePhoneNumberOutput, error) {
req, out := c.BatchDeletePhoneNumberRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opBatchSuspendUser = "BatchSuspendUser"
// BatchSuspendUserRequest generates a "aws/request.Request" representing the
// client's request for the BatchSuspendUser operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See BatchSuspendUser for more information on using the BatchSuspendUser
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the BatchSuspendUserRequest method.
// req, resp := client.BatchSuspendUserRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/BatchSuspendUser
func (c *Chime) BatchSuspendUserRequest(input *BatchSuspendUserInput) (req *request.Request, output *BatchSuspendUserOutput) {
op := &request.Operation{
Name: opBatchSuspendUser,
HTTPMethod: "POST",
HTTPPath: "/accounts/{accountId}/users?operation=suspend",
}
if input == nil {
input = &BatchSuspendUserInput{}
}
output = &BatchSuspendUserOutput{}
req = c.newRequest(op, input, output)
return
}
// BatchSuspendUser API operation for Amazon Chime.
//
// Suspends up to 50 users from a Team or EnterpriseLWA Amazon Chime account.
// For more information about different account types, see Managing Your Amazon
// Chime Accounts (https://docs.aws.amazon.com/chime/latest/ag/manage-chime-account.html)
// in the Amazon Chime Administration Guide.
//
// Users suspended from a Team account are dissasociated from the account, but
// they can continue to use Amazon Chime as free users. To remove the suspension
// from suspended Team account users, invite them to the Team account again.
// You can use the InviteUsers action to do so.
//
// Users suspended from an EnterpriseLWA account are immediately signed out
// of Amazon Chime and can no longer sign in. To remove the suspension from
// suspended EnterpriseLWA account users, use the BatchUnsuspendUser action.
//
// To sign out users without suspending them, use the LogoutUser action.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Chime's
// API operation BatchSuspendUser for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnauthorizedClientException "UnauthorizedClientException"
// The client is not currently authorized to make the request.
//
// * ErrCodeNotFoundException "NotFoundException"
// One or more of the resources in the request does not exist in the system.
//
// * ErrCodeForbiddenException "ForbiddenException"
// The client is permanently forbidden from making the request. For example,
// when a user tries to create an account from an unsupported Region.
//
// * ErrCodeBadRequestException "BadRequestException"
// The input parameters don't match the service's restrictions.
//
// * ErrCodeThrottledClientException "ThrottledClientException"
// The client exceeded its request rate limit.
//
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
// The service is currently unavailable.
//
// * ErrCodeServiceFailureException "ServiceFailureException"
// The service encountered an unexpected error.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/BatchSuspendUser
func (c *Chime) BatchSuspendUser(input *BatchSuspendUserInput) (*BatchSuspendUserOutput, error) {
req, out := c.BatchSuspendUserRequest(input)
return out, req.Send()
}
// BatchSuspendUserWithContext is the same as BatchSuspendUser with the addition of
// the ability to pass a context and additional request options.
//
// See BatchSuspendUser for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Chime) BatchSuspendUserWithContext(ctx aws.Context, input *BatchSuspendUserInput, opts ...request.Option) (*BatchSuspendUserOutput, error) {
req, out := c.BatchSuspendUserRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opBatchUnsuspendUser = "BatchUnsuspendUser"
// BatchUnsuspendUserRequest generates a "aws/request.Request" representing the
// client's request for the BatchUnsuspendUser operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See BatchUnsuspendUser for more information on using the BatchUnsuspendUser
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the BatchUnsuspendUserRequest method.
// req, resp := client.BatchUnsuspendUserRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/BatchUnsuspendUser
func (c *Chime) BatchUnsuspendUserRequest(input *BatchUnsuspendUserInput) (req *request.Request, output *BatchUnsuspendUserOutput) {
op := &request.Operation{
Name: opBatchUnsuspendUser,
HTTPMethod: "POST",
HTTPPath: "/accounts/{accountId}/users?operation=unsuspend",
}
if input == nil {
input = &BatchUnsuspendUserInput{}
}
output = &BatchUnsuspendUserOutput{}
req = c.newRequest(op, input, output)
return
}
// BatchUnsuspendUser API operation for Amazon Chime.
//
// Removes the suspension from up to 50 previously suspended users for the specified
// Amazon Chime EnterpriseLWA account. Only users on EnterpriseLWA accounts
// can be unsuspended using this action. For more information about different
// account types, see Managing Your Amazon Chime Accounts (https://docs.aws.amazon.com/chime/latest/ag/manage-chime-account.html)
// in the Amazon Chime Administration Guide.
//
// Previously suspended users who are unsuspended using this action are returned
// to Registered status. Users who are not previously suspended are ignored.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Chime's
// API operation BatchUnsuspendUser for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnauthorizedClientException "UnauthorizedClientException"
// The client is not currently authorized to make the request.
//
// * ErrCodeNotFoundException "NotFoundException"
// One or more of the resources in the request does not exist in the system.
//
// * ErrCodeForbiddenException "ForbiddenException"
// The client is permanently forbidden from making the request. For example,
// when a user tries to create an account from an unsupported Region.
//
// * ErrCodeBadRequestException "BadRequestException"
// The input parameters don't match the service's restrictions.
//
// * ErrCodeThrottledClientException "ThrottledClientException"
// The client exceeded its request rate limit.
//
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
// The service is currently unavailable.
//
// * ErrCodeServiceFailureException "ServiceFailureException"
// The service encountered an unexpected error.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/BatchUnsuspendUser
func (c *Chime) BatchUnsuspendUser(input *BatchUnsuspendUserInput) (*BatchUnsuspendUserOutput, error) {
req, out := c.BatchUnsuspendUserRequest(input)
return out, req.Send()
}
// BatchUnsuspendUserWithContext is the same as BatchUnsuspendUser with the addition of
// the ability to pass a context and additional request options.
//
// See BatchUnsuspendUser for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Chime) BatchUnsuspendUserWithContext(ctx aws.Context, input *BatchUnsuspendUserInput, opts ...request.Option) (*BatchUnsuspendUserOutput, error) {
req, out := c.BatchUnsuspendUserRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opBatchUpdatePhoneNumber = "BatchUpdatePhoneNumber"
// BatchUpdatePhoneNumberRequest generates a "aws/request.Request" representing the
// client's request for the BatchUpdatePhoneNumber operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See BatchUpdatePhoneNumber for more information on using the BatchUpdatePhoneNumber
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the BatchUpdatePhoneNumberRequest method.
// req, resp := client.BatchUpdatePhoneNumberRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/BatchUpdatePhoneNumber
func (c *Chime) BatchUpdatePhoneNumberRequest(input *BatchUpdatePhoneNumberInput) (req *request.Request, output *BatchUpdatePhoneNumberOutput) {
op := &request.Operation{
Name: opBatchUpdatePhoneNumber,
HTTPMethod: "POST",
HTTPPath: "/phone-numbers?operation=batch-update",
}
if input == nil {
input = &BatchUpdatePhoneNumberInput{}
}
output = &BatchUpdatePhoneNumberOutput{}
req = c.newRequest(op, input, output)
return
}
// BatchUpdatePhoneNumber API operation for Amazon Chime.
//
// Updates phone number product types. Choose from Amazon Chime Business Calling
// and Amazon Chime Voice Connector product types. For toll-free numbers, you
// can use only the Amazon Chime Voice Connector product type.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Chime's
// API operation BatchUpdatePhoneNumber for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnauthorizedClientException "UnauthorizedClientException"
// The client is not currently authorized to make the request.
//
// * ErrCodeNotFoundException "NotFoundException"
// One or more of the resources in the request does not exist in the system.
//
// * ErrCodeForbiddenException "ForbiddenException"
// The client is permanently forbidden from making the request. For example,
// when a user tries to create an account from an unsupported Region.
//
// * ErrCodeBadRequestException "BadRequestException"
// The input parameters don't match the service's restrictions.
//
// * ErrCodeThrottledClientException "ThrottledClientException"
// The client exceeded its request rate limit.
//
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
// The service is currently unavailable.
//
// * ErrCodeServiceFailureException "ServiceFailureException"
// The service encountered an unexpected error.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/BatchUpdatePhoneNumber
func (c *Chime) BatchUpdatePhoneNumber(input *BatchUpdatePhoneNumberInput) (*BatchUpdatePhoneNumberOutput, error) {
req, out := c.BatchUpdatePhoneNumberRequest(input)
return out, req.Send()
}
// BatchUpdatePhoneNumberWithContext is the same as BatchUpdatePhoneNumber with the addition of
// the ability to pass a context and additional request options.
//
// See BatchUpdatePhoneNumber for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Chime) BatchUpdatePhoneNumberWithContext(ctx aws.Context, input *BatchUpdatePhoneNumberInput, opts ...request.Option) (*BatchUpdatePhoneNumberOutput, error) {
req, out := c.BatchUpdatePhoneNumberRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opBatchUpdateUser = "BatchUpdateUser"
// BatchUpdateUserRequest generates a "aws/request.Request" representing the
// client's request for the BatchUpdateUser operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See BatchUpdateUser for more information on using the BatchUpdateUser
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the BatchUpdateUserRequest method.
// req, resp := client.BatchUpdateUserRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/BatchUpdateUser
func (c *Chime) BatchUpdateUserRequest(input *BatchUpdateUserInput) (req *request.Request, output *BatchUpdateUserOutput) {
op := &request.Operation{
Name: opBatchUpdateUser,
HTTPMethod: "POST",
HTTPPath: "/accounts/{accountId}/users",
}
if input == nil {
input = &BatchUpdateUserInput{}
}
output = &BatchUpdateUserOutput{}
req = c.newRequest(op, input, output)
return
}
// BatchUpdateUser API operation for Amazon Chime.
//
// Updates user details within the UpdateUserRequestItem object for up to 20
// users for the specified Amazon Chime account. Currently, only LicenseType
// updates are supported for this action.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Chime's
// API operation BatchUpdateUser for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnauthorizedClientException "UnauthorizedClientException"
// The client is not currently authorized to make the request.
//
// * ErrCodeNotFoundException "NotFoundException"
// One or more of the resources in the request does not exist in the system.
//
// * ErrCodeForbiddenException "ForbiddenException"
// The client is permanently forbidden from making the request. For example,
// when a user tries to create an account from an unsupported Region.
//
// * ErrCodeBadRequestException "BadRequestException"
// The input parameters don't match the service's restrictions.
//
// * ErrCodeThrottledClientException "ThrottledClientException"
// The client exceeded its request rate limit.
//
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
// The service is currently unavailable.
//
// * ErrCodeServiceFailureException "ServiceFailureException"
// The service encountered an unexpected error.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/BatchUpdateUser
func (c *Chime) BatchUpdateUser(input *BatchUpdateUserInput) (*BatchUpdateUserOutput, error) {
req, out := c.BatchUpdateUserRequest(input)
return out, req.Send()
}
// BatchUpdateUserWithContext is the same as BatchUpdateUser with the addition of
// the ability to pass a context and additional request options.
//
// See BatchUpdateUser for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Chime) BatchUpdateUserWithContext(ctx aws.Context, input *BatchUpdateUserInput, opts ...request.Option) (*BatchUpdateUserOutput, error) {
req, out := c.BatchUpdateUserRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opCreateAccount = "CreateAccount"
// CreateAccountRequest generates a "aws/request.Request" representing the
// client's request for the CreateAccount operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See CreateAccount for more information on using the CreateAccount
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the CreateAccountRequest method.
// req, resp := client.CreateAccountRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateAccount
func (c *Chime) CreateAccountRequest(input *CreateAccountInput) (req *request.Request, output *CreateAccountOutput) {
op := &request.Operation{
Name: opCreateAccount,
HTTPMethod: "POST",
HTTPPath: "/accounts",
}
if input == nil {
input = &CreateAccountInput{}
}
output = &CreateAccountOutput{}
req = c.newRequest(op, input, output)
return
}
// CreateAccount API operation for Amazon Chime.
//
// Creates an Amazon Chime account under the administrator's AWS account. Only
// Team account types are currently supported for this action. For more information
// about different account types, see Managing Your Amazon Chime Accounts (https://docs.aws.amazon.com/chime/latest/ag/manage-chime-account.html)
// in the Amazon Chime Administration Guide.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Chime's
// API operation CreateAccount for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnauthorizedClientException "UnauthorizedClientException"
// The client is not currently authorized to make the request.
//
// * ErrCodeNotFoundException "NotFoundException"
// One or more of the resources in the request does not exist in the system.
//
// * ErrCodeForbiddenException "ForbiddenException"
// The client is permanently forbidden from making the request. For example,
// when a user tries to create an account from an unsupported Region.
//
// * ErrCodeBadRequestException "BadRequestException"
// The input parameters don't match the service's restrictions.
//
// * ErrCodeThrottledClientException "ThrottledClientException"
// The client exceeded its request rate limit.
//
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
// The service is currently unavailable.
//
// * ErrCodeServiceFailureException "ServiceFailureException"
// The service encountered an unexpected error.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateAccount
func (c *Chime) CreateAccount(input *CreateAccountInput) (*CreateAccountOutput, error) {
req, out := c.CreateAccountRequest(input)
return out, req.Send()
}
// CreateAccountWithContext is the same as CreateAccount with the addition of
// the ability to pass a context and additional request options.
//
// See CreateAccount for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Chime) CreateAccountWithContext(ctx aws.Context, input *CreateAccountInput, opts ...request.Option) (*CreateAccountOutput, error) {
req, out := c.CreateAccountRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opCreateBot = "CreateBot"
// CreateBotRequest generates a "aws/request.Request" representing the
// client's request for the CreateBot operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See CreateBot for more information on using the CreateBot
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the CreateBotRequest method.
// req, resp := client.CreateBotRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateBot
func (c *Chime) CreateBotRequest(input *CreateBotInput) (req *request.Request, output *CreateBotOutput) {
op := &request.Operation{
Name: opCreateBot,
HTTPMethod: "POST",
HTTPPath: "/accounts/{accountId}/bots",
}
if input == nil {
input = &CreateBotInput{}
}
output = &CreateBotOutput{}
req = c.newRequest(op, input, output)
return
}
// CreateBot API operation for Amazon Chime.
//
// Creates a bot for an Amazon Chime Enterprise account.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Chime's
// API operation CreateBot for usage and error information.
//
// Returned Error Codes:
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
// The service is currently unavailable.
//
// * ErrCodeServiceFailureException "ServiceFailureException"
// The service encountered an unexpected error.
//
// * ErrCodeForbiddenException "ForbiddenException"
// The client is permanently forbidden from making the request. For example,
// when a user tries to create an account from an unsupported Region.
//
// * ErrCodeBadRequestException "BadRequestException"
// The input parameters don't match the service's restrictions.
//
// * ErrCodeUnauthorizedClientException "UnauthorizedClientException"
// The client is not currently authorized to make the request.
//
// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException"
// The request exceeds the resource limit.
//
// * ErrCodeNotFoundException "NotFoundException"
// One or more of the resources in the request does not exist in the system.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateBot
func (c *Chime) CreateBot(input *CreateBotInput) (*CreateBotOutput, error) {
req, out := c.CreateBotRequest(input)
return out, req.Send()
}
// CreateBotWithContext is the same as CreateBot with the addition of
// the ability to pass a context and additional request options.
//
// See CreateBot for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Chime) CreateBotWithContext(ctx aws.Context, input *CreateBotInput, opts ...request.Option) (*CreateBotOutput, error) {
req, out := c.CreateBotRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opCreatePhoneNumberOrder = "CreatePhoneNumberOrder"
// CreatePhoneNumberOrderRequest generates a "aws/request.Request" representing the
// client's request for the CreatePhoneNumberOrder operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See CreatePhoneNumberOrder for more information on using the CreatePhoneNumberOrder
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the CreatePhoneNumberOrderRequest method.
// req, resp := client.CreatePhoneNumberOrderRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreatePhoneNumberOrder
func (c *Chime) CreatePhoneNumberOrderRequest(input *CreatePhoneNumberOrderInput) (req *request.Request, output *CreatePhoneNumberOrderOutput) {
op := &request.Operation{
Name: opCreatePhoneNumberOrder,
HTTPMethod: "POST",
HTTPPath: "/phone-number-orders",
}
if input == nil {
input = &CreatePhoneNumberOrderInput{}
}
output = &CreatePhoneNumberOrderOutput{}
req = c.newRequest(op, input, output)
return
}
// CreatePhoneNumberOrder API operation for Amazon Chime.
//
// Creates an order for phone numbers to be provisioned. Choose from Amazon
// Chime Business Calling and Amazon Chime Voice Connector product types. For
// toll-free numbers, you can use only the Amazon Chime Voice Connector product
// type.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Chime's
// API operation CreatePhoneNumberOrder for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnauthorizedClientException "UnauthorizedClientException"
// The client is not currently authorized to make the request.
//
// * ErrCodeForbiddenException "ForbiddenException"
// The client is permanently forbidden from making the request. For example,
// when a user tries to create an account from an unsupported Region.
//
// * ErrCodeBadRequestException "BadRequestException"
// The input parameters don't match the service's restrictions.
//
// * ErrCodeThrottledClientException "ThrottledClientException"
// The client exceeded its request rate limit.
//
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
// The service is currently unavailable.
//
// * ErrCodeServiceFailureException "ServiceFailureException"
// The service encountered an unexpected error.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreatePhoneNumberOrder
func (c *Chime) CreatePhoneNumberOrder(input *CreatePhoneNumberOrderInput) (*CreatePhoneNumberOrderOutput, error) {
req, out := c.CreatePhoneNumberOrderRequest(input)
return out, req.Send()
}
// CreatePhoneNumberOrderWithContext is the same as CreatePhoneNumberOrder with the addition of
// the ability to pass a context and additional request options.
//
// See CreatePhoneNumberOrder for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Chime) CreatePhoneNumberOrderWithContext(ctx aws.Context, input *CreatePhoneNumberOrderInput, opts ...request.Option) (*CreatePhoneNumberOrderOutput, error) {
req, out := c.CreatePhoneNumberOrderRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opCreateVoiceConnector = "CreateVoiceConnector"
// CreateVoiceConnectorRequest generates a "aws/request.Request" representing the
// client's request for the CreateVoiceConnector operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See CreateVoiceConnector for more information on using the CreateVoiceConnector
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the CreateVoiceConnectorRequest method.
// req, resp := client.CreateVoiceConnectorRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateVoiceConnector
func (c *Chime) CreateVoiceConnectorRequest(input *CreateVoiceConnectorInput) (req *request.Request, output *CreateVoiceConnectorOutput) {
op := &request.Operation{
Name: opCreateVoiceConnector,
HTTPMethod: "POST",
HTTPPath: "/voice-connectors",
}
if input == nil {
input = &CreateVoiceConnectorInput{}
}
output = &CreateVoiceConnectorOutput{}
req = c.newRequest(op, input, output)
return
}
// CreateVoiceConnector API operation for Amazon Chime.
//
// Creates an Amazon Chime Voice Connector under the administrator's AWS account.
// Enabling CreateVoiceConnectorRequest$RequireEncryption configures your Amazon
// Chime Voice Connector to use TLS transport for SIP signaling and Secure RTP
// (SRTP) for media. Inbound calls use TLS transport, and unencrypted outbound
// calls are blocked.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Chime's
// API operation CreateVoiceConnector for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnauthorizedClientException "UnauthorizedClientException"
// The client is not currently authorized to make the request.
//
// * ErrCodeForbiddenException "ForbiddenException"
// The client is permanently forbidden from making the request. For example,
// when a user tries to create an account from an unsupported Region.
//
// * ErrCodeBadRequestException "BadRequestException"
// The input parameters don't match the service's restrictions.
//
// * ErrCodeThrottledClientException "ThrottledClientException"
// The client exceeded its request rate limit.
//
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
// The service is currently unavailable.
//
// * ErrCodeServiceFailureException "ServiceFailureException"
// The service encountered an unexpected error.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateVoiceConnector
func (c *Chime) CreateVoiceConnector(input *CreateVoiceConnectorInput) (*CreateVoiceConnectorOutput, error) {
req, out := c.CreateVoiceConnectorRequest(input)
return out, req.Send()
}
// CreateVoiceConnectorWithContext is the same as CreateVoiceConnector with the addition of
// the ability to pass a context and additional request options.
//
// See CreateVoiceConnector for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Chime) CreateVoiceConnectorWithContext(ctx aws.Context, input *CreateVoiceConnectorInput, opts ...request.Option) (*CreateVoiceConnectorOutput, error) {
req, out := c.CreateVoiceConnectorRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDeleteAccount = "DeleteAccount"
// DeleteAccountRequest generates a "aws/request.Request" representing the
// client's request for the DeleteAccount operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See DeleteAccount for more information on using the DeleteAccount
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the DeleteAccountRequest method.
// req, resp := client.DeleteAccountRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteAccount
func (c *Chime) DeleteAccountRequest(input *DeleteAccountInput) (req *request.Request, output *DeleteAccountOutput) {
op := &request.Operation{
Name: opDeleteAccount,
HTTPMethod: "DELETE",
HTTPPath: "/accounts/{accountId}",
}
if input == nil {
input = &DeleteAccountInput{}
}
output = &DeleteAccountOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// DeleteAccount API operation for Amazon Chime.
//
// Deletes the specified Amazon Chime account. You must suspend all users before
// deleting a Team account. You can use the BatchSuspendUser action to do so.
//
// For EnterpriseLWA and EnterpriseAD accounts, you must release the claimed
// domains for your Amazon Chime account before deletion. As soon as you release
// the domain, all users under that account are suspended.
//
// Deleted accounts appear in your Disabled accounts list for 90 days. To restore
// a deleted account from your Disabled accounts list, you must contact AWS
// Support.
//
// After 90 days, deleted accounts are permanently removed from your Disabled
// accounts list.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Chime's
// API operation DeleteAccount for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnauthorizedClientException "UnauthorizedClientException"
// The client is not currently authorized to make the request.
//
// * ErrCodeNotFoundException "NotFoundException"
// One or more of the resources in the request does not exist in the system.
//
// * ErrCodeForbiddenException "ForbiddenException"
// The client is permanently forbidden from making the request. For example,
// when a user tries to create an account from an unsupported Region.
//
// * ErrCodeBadRequestException "BadRequestException"
// The input parameters don't match the service's restrictions.
//
// * ErrCodeThrottledClientException "ThrottledClientException"
// The client exceeded its request rate limit.
//
// * ErrCodeUnprocessableEntityException "UnprocessableEntityException"
// The request was well-formed but was unable to be followed due to semantic
// errors.
//
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
// The service is currently unavailable.
//
// * ErrCodeServiceFailureException "ServiceFailureException"
// The service encountered an unexpected error.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteAccount
func (c *Chime) DeleteAccount(input *DeleteAccountInput) (*DeleteAccountOutput, error) {
req, out := c.DeleteAccountRequest(input)
return out, req.Send()
}
// DeleteAccountWithContext is the same as DeleteAccount with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteAccount for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Chime) DeleteAccountWithContext(ctx aws.Context, input *DeleteAccountInput, opts ...request.Option) (*DeleteAccountOutput, error) {
req, out := c.DeleteAccountRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDeleteEventsConfiguration = "DeleteEventsConfiguration"
// DeleteEventsConfigurationRequest generates a "aws/request.Request" representing the
// client's request for the DeleteEventsConfiguration operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See DeleteEventsConfiguration for more information on using the DeleteEventsConfiguration
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the DeleteEventsConfigurationRequest method.
// req, resp := client.DeleteEventsConfigurationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteEventsConfiguration
func (c *Chime) DeleteEventsConfigurationRequest(input *DeleteEventsConfigurationInput) (req *request.Request, output *DeleteEventsConfigurationOutput) {
op := &request.Operation{
Name: opDeleteEventsConfiguration,
HTTPMethod: "DELETE",
HTTPPath: "/accounts/{accountId}/bots/{botId}/events-configuration",
}
if input == nil {
input = &DeleteEventsConfigurationInput{}
}
output = &DeleteEventsConfigurationOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// DeleteEventsConfiguration API operation for Amazon Chime.
//
// Deletes the events configuration that allows a bot to receive outgoing events.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Chime's
// API operation DeleteEventsConfiguration for usage and error information.
//
// Returned Error Codes:
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
// The service is currently unavailable.
//
// * ErrCodeServiceFailureException "ServiceFailureException"
// The service encountered an unexpected error.
//
// * ErrCodeForbiddenException "ForbiddenException"
// The client is permanently forbidden from making the request. For example,
// when a user tries to create an account from an unsupported Region.
//
// * ErrCodeBadRequestException "BadRequestException"
// The input parameters don't match the service's restrictions.
//
// * ErrCodeUnauthorizedClientException "UnauthorizedClientException"
// The client is not currently authorized to make the request.
//
// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException"
// The request exceeds the resource limit.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteEventsConfiguration
func (c *Chime) DeleteEventsConfiguration(input *DeleteEventsConfigurationInput) (*DeleteEventsConfigurationOutput, error) {
req, out := c.DeleteEventsConfigurationRequest(input)
return out, req.Send()
}
// DeleteEventsConfigurationWithContext is the same as DeleteEventsConfiguration with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteEventsConfiguration for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Chime) DeleteEventsConfigurationWithContext(ctx aws.Context, input *DeleteEventsConfigurationInput, opts ...request.Option) (*DeleteEventsConfigurationOutput, error) {
req, out := c.DeleteEventsConfigurationRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDeletePhoneNumber = "DeletePhoneNumber"
// DeletePhoneNumberRequest generates a "aws/request.Request" representing the
// client's request for the DeletePhoneNumber operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See DeletePhoneNumber for more information on using the DeletePhoneNumber
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the DeletePhoneNumberRequest method.
// req, resp := client.DeletePhoneNumberRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeletePhoneNumber
func (c *Chime) DeletePhoneNumberRequest(input *DeletePhoneNumberInput) (req *request.Request, output *DeletePhoneNumberOutput) {
op := &request.Operation{
Name: opDeletePhoneNumber,
HTTPMethod: "DELETE",
HTTPPath: "/phone-numbers/{phoneNumberId}",
}
if input == nil {
input = &DeletePhoneNumberInput{}
}
output = &DeletePhoneNumberOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// DeletePhoneNumber API operation for Amazon Chime.
//
// Moves the specified phone number into the Deletion queue. A phone number
// must be disassociated from any users or Amazon Chime Voice Connectors before
// it can be deleted.
//
// Deleted phone numbers remain in the Deletion queue for 7 days before they
// are deleted permanently.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Chime's
// API operation DeletePhoneNumber for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnauthorizedClientException "UnauthorizedClientException"
// The client is not currently authorized to make the request.
//
// * ErrCodeNotFoundException "NotFoundException"
// One or more of the resources in the request does not exist in the system.
//
// * ErrCodeForbiddenException "ForbiddenException"
// The client is permanently forbidden from making the request. For example,
// when a user tries to create an account from an unsupported Region.
//
// * ErrCodeBadRequestException "BadRequestException"
// The input parameters don't match the service's restrictions.
//
// * ErrCodeThrottledClientException "ThrottledClientException"
// The client exceeded its request rate limit.
//
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
// The service is currently unavailable.
//
// * ErrCodeServiceFailureException "ServiceFailureException"
// The service encountered an unexpected error.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeletePhoneNumber
func (c *Chime) DeletePhoneNumber(input *DeletePhoneNumberInput) (*DeletePhoneNumberOutput, error) {
req, out := c.DeletePhoneNumberRequest(input)
return out, req.Send()
}
// DeletePhoneNumberWithContext is the same as DeletePhoneNumber with the addition of
// the ability to pass a context and additional request options.
//
// See DeletePhoneNumber for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Chime) DeletePhoneNumberWithContext(ctx aws.Context, input *DeletePhoneNumberInput, opts ...request.Option) (*DeletePhoneNumberOutput, error) {
req, out := c.DeletePhoneNumberRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDeleteVoiceConnector = "DeleteVoiceConnector"
// DeleteVoiceConnectorRequest generates a "aws/request.Request" representing the
// client's request for the DeleteVoiceConnector operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See DeleteVoiceConnector for more information on using the DeleteVoiceConnector
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the DeleteVoiceConnectorRequest method.
// req, resp := client.DeleteVoiceConnectorRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteVoiceConnector
func (c *Chime) DeleteVoiceConnectorRequest(input *DeleteVoiceConnectorInput) (req *request.Request, output *DeleteVoiceConnectorOutput) {
op := &request.Operation{
Name: opDeleteVoiceConnector,
HTTPMethod: "DELETE",
HTTPPath: "/voice-connectors/{voiceConnectorId}",
}
if input == nil {
input = &DeleteVoiceConnectorInput{}
}
output = &DeleteVoiceConnectorOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// DeleteVoiceConnector API operation for Amazon Chime.
//
// Deletes the specified Amazon Chime Voice Connector. Any phone numbers assigned
// to the Amazon Chime Voice Connector must be unassigned from it before it
// can be deleted.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Chime's
// API operation DeleteVoiceConnector for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnauthorizedClientException "UnauthorizedClientException"
// The client is not currently authorized to make the request.
//
// * ErrCodeNotFoundException "NotFoundException"
// One or more of the resources in the request does not exist in the system.
//
// * ErrCodeForbiddenException "ForbiddenException"
// The client is permanently forbidden from making the request. For example,
// when a user tries to create an account from an unsupported Region.
//
// * ErrCodeBadRequestException "BadRequestException"
// The input parameters don't match the service's restrictions.
//
// * ErrCodeThrottledClientException "ThrottledClientException"
// The client exceeded its request rate limit.
//
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
// The service is currently unavailable.
//
// * ErrCodeServiceFailureException "ServiceFailureException"
// The service encountered an unexpected error.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteVoiceConnector
func (c *Chime) DeleteVoiceConnector(input *DeleteVoiceConnectorInput) (*DeleteVoiceConnectorOutput, error) {
req, out := c.DeleteVoiceConnectorRequest(input)
return out, req.Send()
}
// DeleteVoiceConnectorWithContext is the same as DeleteVoiceConnector with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteVoiceConnector for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Chime) DeleteVoiceConnectorWithContext(ctx aws.Context, input *DeleteVoiceConnectorInput, opts ...request.Option) (*DeleteVoiceConnectorOutput, error) {
req, out := c.DeleteVoiceConnectorRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDeleteVoiceConnectorOrigination = "DeleteVoiceConnectorOrigination"
// DeleteVoiceConnectorOriginationRequest generates a "aws/request.Request" representing the
// client's request for the DeleteVoiceConnectorOrigination operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See DeleteVoiceConnectorOrigination for more information on using the DeleteVoiceConnectorOrigination
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the DeleteVoiceConnectorOriginationRequest method.
// req, resp := client.DeleteVoiceConnectorOriginationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteVoiceConnectorOrigination
func (c *Chime) DeleteVoiceConnectorOriginationRequest(input *DeleteVoiceConnectorOriginationInput) (req *request.Request, output *DeleteVoiceConnectorOriginationOutput) {
op := &request.Operation{
Name: opDeleteVoiceConnectorOrigination,
HTTPMethod: "DELETE",
HTTPPath: "/voice-connectors/{voiceConnectorId}/origination",
}
if input == nil {
input = &DeleteVoiceConnectorOriginationInput{}
}
output = &DeleteVoiceConnectorOriginationOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// DeleteVoiceConnectorOrigination API operation for Amazon Chime.
//
// Deletes the origination settings for the specified Amazon Chime Voice Connector.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Chime's
// API operation DeleteVoiceConnectorOrigination for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnauthorizedClientException "UnauthorizedClientException"
// The client is not currently authorized to make the request.
//
// * ErrCodeNotFoundException "NotFoundException"
// One or more of the resources in the request does not exist in the system.
//
// * ErrCodeForbiddenException "ForbiddenException"
// The client is permanently forbidden from making the request. For example,
// when a user tries to create an account from an unsupported Region.
//
// * ErrCodeBadRequestException "BadRequestException"
// The input parameters don't match the service's restrictions.
//
// * ErrCodeThrottledClientException "ThrottledClientException"
// The client exceeded its request rate limit.
//
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
// The service is currently unavailable.
//
// * ErrCodeServiceFailureException "ServiceFailureException"
// The service encountered an unexpected error.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteVoiceConnectorOrigination
func (c *Chime) DeleteVoiceConnectorOrigination(input *DeleteVoiceConnectorOriginationInput) (*DeleteVoiceConnectorOriginationOutput, error) {
req, out := c.DeleteVoiceConnectorOriginationRequest(input)
return out, req.Send()
}
// DeleteVoiceConnectorOriginationWithContext is the same as DeleteVoiceConnectorOrigination with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteVoiceConnectorOrigination for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Chime) DeleteVoiceConnectorOriginationWithContext(ctx aws.Context, input *DeleteVoiceConnectorOriginationInput, opts ...request.Option) (*DeleteVoiceConnectorOriginationOutput, error) {
req, out := c.DeleteVoiceConnectorOriginationRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDeleteVoiceConnectorTermination = "DeleteVoiceConnectorTermination"
// DeleteVoiceConnectorTerminationRequest generates a "aws/request.Request" representing the
// client's request for the DeleteVoiceConnectorTermination operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See DeleteVoiceConnectorTermination for more information on using the DeleteVoiceConnectorTermination
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the DeleteVoiceConnectorTerminationRequest method.
// req, resp := client.DeleteVoiceConnectorTerminationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteVoiceConnectorTermination
func (c *Chime) DeleteVoiceConnectorTerminationRequest(input *DeleteVoiceConnectorTerminationInput) (req *request.Request, output *DeleteVoiceConnectorTerminationOutput) {
op := &request.Operation{
Name: opDeleteVoiceConnectorTermination,
HTTPMethod: "DELETE",
HTTPPath: "/voice-connectors/{voiceConnectorId}/termination",
}
if input == nil {
input = &DeleteVoiceConnectorTerminationInput{}
}
output = &DeleteVoiceConnectorTerminationOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// DeleteVoiceConnectorTermination API operation for Amazon Chime.
//
// Deletes the termination settings for the specified Amazon Chime Voice Connector.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Chime's
// API operation DeleteVoiceConnectorTermination for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnauthorizedClientException "UnauthorizedClientException"
// The client is not currently authorized to make the request.
//
// * ErrCodeNotFoundException "NotFoundException"
// One or more of the resources in the request does not exist in the system.
//
// * ErrCodeForbiddenException "ForbiddenException"
// The client is permanently forbidden from making the request. For example,
// when a user tries to create an account from an unsupported Region.
//
// * ErrCodeBadRequestException "BadRequestException"
// The input parameters don't match the service's restrictions.
//
// * ErrCodeThrottledClientException "ThrottledClientException"
// The client exceeded its request rate limit.
//
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
// The service is currently unavailable.
//
// * ErrCodeServiceFailureException "ServiceFailureException"
// The service encountered an unexpected error.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteVoiceConnectorTermination
func (c *Chime) DeleteVoiceConnectorTermination(input *DeleteVoiceConnectorTerminationInput) (*DeleteVoiceConnectorTerminationOutput, error) {
req, out := c.DeleteVoiceConnectorTerminationRequest(input)
return out, req.Send()
}
// DeleteVoiceConnectorTerminationWithContext is the same as DeleteVoiceConnectorTermination with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteVoiceConnectorTermination for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Chime) DeleteVoiceConnectorTerminationWithContext(ctx aws.Context, input *DeleteVoiceConnectorTerminationInput, opts ...request.Option) (*DeleteVoiceConnectorTerminationOutput, error) {
req, out := c.DeleteVoiceConnectorTerminationRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDeleteVoiceConnectorTerminationCredentials = "DeleteVoiceConnectorTerminationCredentials"
// DeleteVoiceConnectorTerminationCredentialsRequest generates a "aws/request.Request" representing the
// client's request for the DeleteVoiceConnectorTerminationCredentials operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See DeleteVoiceConnectorTerminationCredentials for more information on using the DeleteVoiceConnectorTerminationCredentials
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the DeleteVoiceConnectorTerminationCredentialsRequest method.
// req, resp := client.DeleteVoiceConnectorTerminationCredentialsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteVoiceConnectorTerminationCredentials
func (c *Chime) DeleteVoiceConnectorTerminationCredentialsRequest(input *DeleteVoiceConnectorTerminationCredentialsInput) (req *request.Request, output *DeleteVoiceConnectorTerminationCredentialsOutput) {
op := &request.Operation{
Name: opDeleteVoiceConnectorTerminationCredentials,
HTTPMethod: "POST",
HTTPPath: "/voice-connectors/{voiceConnectorId}/termination/credentials?operation=delete",
}
if input == nil {
input = &DeleteVoiceConnectorTerminationCredentialsInput{}
}
output = &DeleteVoiceConnectorTerminationCredentialsOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// DeleteVoiceConnectorTerminationCredentials API operation for Amazon Chime.
//
// Deletes the specified SIP credentials used by your equipment to authenticate
// during call termination.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Chime's
// API operation DeleteVoiceConnectorTerminationCredentials for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnauthorizedClientException "UnauthorizedClientException"
// The client is not currently authorized to make the request.
//
// * ErrCodeNotFoundException "NotFoundException"
// One or more of the resources in the request does not exist in the system.
//
// * ErrCodeForbiddenException "ForbiddenException"
// The client is permanently forbidden from making the request. For example,
// when a user tries to create an account from an unsupported Region.
//
// * ErrCodeBadRequestException "BadRequestException"
// The input parameters don't match the service's restrictions.
//
// * ErrCodeThrottledClientException "ThrottledClientException"
// The client exceeded its request rate limit.
//
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
// The service is currently unavailable.
//
// * ErrCodeServiceFailureException "ServiceFailureException"
// The service encountered an unexpected error.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteVoiceConnectorTerminationCredentials
func (c *Chime) DeleteVoiceConnectorTerminationCredentials(input *DeleteVoiceConnectorTerminationCredentialsInput) (*DeleteVoiceConnectorTerminationCredentialsOutput, error) {
req, out := c.DeleteVoiceConnectorTerminationCredentialsRequest(input)
return out, req.Send()
}
// DeleteVoiceConnectorTerminationCredentialsWithContext is the same as DeleteVoiceConnectorTerminationCredentials with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteVoiceConnectorTerminationCredentials for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Chime) DeleteVoiceConnectorTerminationCredentialsWithContext(ctx aws.Context, input *DeleteVoiceConnectorTerminationCredentialsInput, opts ...request.Option) (*DeleteVoiceConnectorTerminationCredentialsOutput, error) {
req, out := c.DeleteVoiceConnectorTerminationCredentialsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDisassociatePhoneNumberFromUser = "DisassociatePhoneNumberFromUser"
// DisassociatePhoneNumberFromUserRequest generates a "aws/request.Request" representing the
// client's request for the DisassociatePhoneNumberFromUser operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See DisassociatePhoneNumberFromUser for more information on using the DisassociatePhoneNumberFromUser
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the DisassociatePhoneNumberFromUserRequest method.
// req, resp := client.DisassociatePhoneNumberFromUserRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DisassociatePhoneNumberFromUser
func (c *Chime) DisassociatePhoneNumberFromUserRequest(input *DisassociatePhoneNumberFromUserInput) (req *request.Request, output *DisassociatePhoneNumberFromUserOutput) {
op := &request.Operation{
Name: opDisassociatePhoneNumberFromUser,
HTTPMethod: "POST",
HTTPPath: "/accounts/{accountId}/users/{userId}?operation=disassociate-phone-number",
}
if input == nil {
input = &DisassociatePhoneNumberFromUserInput{}
}
output = &DisassociatePhoneNumberFromUserOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// DisassociatePhoneNumberFromUser API operation for Amazon Chime.
//
// Disassociates the primary provisioned phone number from the specified Amazon
// Chime user.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Chime's
// API operation DisassociatePhoneNumberFromUser for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnauthorizedClientException "UnauthorizedClientException"
// The client is not currently authorized to make the request.
//
// * ErrCodeNotFoundException "NotFoundException"
// One or more of the resources in the request does not exist in the system.
//
// * ErrCodeForbiddenException "ForbiddenException"
// The client is permanently forbidden from making the request. For example,
// when a user tries to create an account from an unsupported Region.
//
// * ErrCodeBadRequestException "BadRequestException"
// The input parameters don't match the service's restrictions.
//
// * ErrCodeThrottledClientException "ThrottledClientException"
// The client exceeded its request rate limit.
//
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
// The service is currently unavailable.
//
// * ErrCodeServiceFailureException "ServiceFailureException"
// The service encountered an unexpected error.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DisassociatePhoneNumberFromUser
func (c *Chime) DisassociatePhoneNumberFromUser(input *DisassociatePhoneNumberFromUserInput) (*DisassociatePhoneNumberFromUserOutput, error) {
req, out := c.DisassociatePhoneNumberFromUserRequest(input)
return out, req.Send()
}
// DisassociatePhoneNumberFromUserWithContext is the same as DisassociatePhoneNumberFromUser with the addition of
// the ability to pass a context and additional request options.
//
// See DisassociatePhoneNumberFromUser for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Chime) DisassociatePhoneNumberFromUserWithContext(ctx aws.Context, input *DisassociatePhoneNumberFromUserInput, opts ...request.Option) (*DisassociatePhoneNumberFromUserOutput, error) {
req, out := c.DisassociatePhoneNumberFromUserRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDisassociatePhoneNumbersFromVoiceConnector = "DisassociatePhoneNumbersFromVoiceConnector"
// DisassociatePhoneNumbersFromVoiceConnectorRequest generates a "aws/request.Request" representing the
// client's request for the DisassociatePhoneNumbersFromVoiceConnector operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See DisassociatePhoneNumbersFromVoiceConnector for more information on using the DisassociatePhoneNumbersFromVoiceConnector
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the DisassociatePhoneNumbersFromVoiceConnectorRequest method.
// req, resp := client.DisassociatePhoneNumbersFromVoiceConnectorRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DisassociatePhoneNumbersFromVoiceConnector
func (c *Chime) DisassociatePhoneNumbersFromVoiceConnectorRequest(input *DisassociatePhoneNumbersFromVoiceConnectorInput) (req *request.Request, output *DisassociatePhoneNumbersFromVoiceConnectorOutput) {
op := &request.Operation{
Name: opDisassociatePhoneNumbersFromVoiceConnector,
HTTPMethod: "POST",
HTTPPath: "/voice-connectors/{voiceConnectorId}?operation=disassociate-phone-numbers",
}
if input == nil {
input = &DisassociatePhoneNumbersFromVoiceConnectorInput{}
}
output = &DisassociatePhoneNumbersFromVoiceConnectorOutput{}
req = c.newRequest(op, input, output)
return
}
// DisassociatePhoneNumbersFromVoiceConnector API operation for Amazon Chime.
//
// Disassociates the specified phone number from the specified Amazon Chime
// Voice Connector.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Chime's
// API operation DisassociatePhoneNumbersFromVoiceConnector for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnauthorizedClientException "UnauthorizedClientException"
// The client is not currently authorized to make the request.
//
// * ErrCodeNotFoundException "NotFoundException"
// One or more of the resources in the request does not exist in the system.
//
// * ErrCodeForbiddenException "ForbiddenException"
// The client is permanently forbidden from making the request. For example,
// when a user tries to create an account from an unsupported Region.
//
// * ErrCodeBadRequestException "BadRequestException"
// The input parameters don't match the service's restrictions.
//
// * ErrCodeThrottledClientException "ThrottledClientException"
// The client exceeded its request rate limit.
//
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
// The service is currently unavailable.
//
// * ErrCodeServiceFailureException "ServiceFailureException"
// The service encountered an unexpected error.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DisassociatePhoneNumbersFromVoiceConnector
func (c *Chime) DisassociatePhoneNumbersFromVoiceConnector(input *DisassociatePhoneNumbersFromVoiceConnectorInput) (*DisassociatePhoneNumbersFromVoiceConnectorOutput, error) {
req, out := c.DisassociatePhoneNumbersFromVoiceConnectorRequest(input)
return out, req.Send()
}
// DisassociatePhoneNumbersFromVoiceConnectorWithContext is the same as DisassociatePhoneNumbersFromVoiceConnector with the addition of
// the ability to pass a context and additional request options.
//
// See DisassociatePhoneNumbersFromVoiceConnector for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Chime) DisassociatePhoneNumbersFromVoiceConnectorWithContext(ctx aws.Context, input *DisassociatePhoneNumbersFromVoiceConnectorInput, opts ...request.Option) (*DisassociatePhoneNumbersFromVoiceConnectorOutput, error) {
req, out := c.DisassociatePhoneNumbersFromVoiceConnectorRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetAccount = "GetAccount"
// GetAccountRequest generates a "aws/request.Request" representing the
// client's request for the GetAccount operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See GetAccount for more information on using the GetAccount
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the GetAccountRequest method.
// req, resp := client.GetAccountRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetAccount
func (c *Chime) GetAccountRequest(input *GetAccountInput) (req *request.Request, output *GetAccountOutput) {
op := &request.Operation{
Name: opGetAccount,
HTTPMethod: "GET",
HTTPPath: "/accounts/{accountId}",
}
if input == nil {
input = &GetAccountInput{}
}
output = &GetAccountOutput{}
req = c.newRequest(op, input, output)
return
}
// GetAccount API operation for Amazon Chime.
//
// Retrieves details for the specified Amazon Chime account, such as account
// type and supported licenses.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Chime's
// API operation GetAccount for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnauthorizedClientException "UnauthorizedClientException"
// The client is not currently authorized to make the request.
//
// * ErrCodeNotFoundException "NotFoundException"
// One or more of the resources in the request does not exist in the system.
//
// * ErrCodeForbiddenException "ForbiddenException"
// The client is permanently forbidden from making the request. For example,
// when a user tries to create an account from an unsupported Region.
//
// * ErrCodeBadRequestException "BadRequestException"
// The input parameters don't match the service's restrictions.
//
// * ErrCodeThrottledClientException "ThrottledClientException"
// The client exceeded its request rate limit.
//
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
// The service is currently unavailable.
//
// * ErrCodeServiceFailureException "ServiceFailureException"
// The service encountered an unexpected error.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetAccount
func (c *Chime) GetAccount(input *GetAccountInput) (*GetAccountOutput, error) {
req, out := c.GetAccountRequest(input)
return out, req.Send()
}
// GetAccountWithContext is the same as GetAccount with the addition of
// the ability to pass a context and additional request options.
//
// See GetAccount for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Chime) GetAccountWithContext(ctx aws.Context, input *GetAccountInput, opts ...request.Option) (*GetAccountOutput, error) {
req, out := c.GetAccountRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetAccountSettings = "GetAccountSettings"
// GetAccountSettingsRequest generates a "aws/request.Request" representing the
// client's request for the GetAccountSettings operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See GetAccountSettings for more information on using the GetAccountSettings
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the GetAccountSettingsRequest method.
// req, resp := client.GetAccountSettingsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetAccountSettings
func (c *Chime) GetAccountSettingsRequest(input *GetAccountSettingsInput) (req *request.Request, output *GetAccountSettingsOutput) {
op := &request.Operation{
Name: opGetAccountSettings,
HTTPMethod: "GET",
HTTPPath: "/accounts/{accountId}/settings",
}
if input == nil {
input = &GetAccountSettingsInput{}
}
output = &GetAccountSettingsOutput{}
req = c.newRequest(op, input, output)
return
}
// GetAccountSettings API operation for Amazon Chime.
//
// Retrieves account settings for the specified Amazon Chime account ID, such
// as remote control and dial out settings. For more information about these
// settings, see Use the Policies Page (https://docs.aws.amazon.com/chime/latest/ag/policies.html)
// in the Amazon Chime Administration Guide.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Chime's
// API operation GetAccountSettings for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnauthorizedClientException "UnauthorizedClientException"
// The client is not currently authorized to make the request.
//
// * ErrCodeNotFoundException "NotFoundException"
// One or more of the resources in the request does not exist in the system.
//
// * ErrCodeBadRequestException "BadRequestException"
// The input parameters don't match the service's restrictions.
//
// * ErrCodeForbiddenException "ForbiddenException"
// The client is permanently forbidden from making the request. For example,
// when a user tries to create an account from an unsupported Region.
//
// * ErrCodeThrottledClientException "ThrottledClientException"
// The client exceeded its request rate limit.
//
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
// The service is currently unavailable.
//
// * ErrCodeServiceFailureException "ServiceFailureException"
// The service encountered an unexpected error.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetAccountSettings
func (c *Chime) GetAccountSettings(input *GetAccountSettingsInput) (*GetAccountSettingsOutput, error) {
req, out := c.GetAccountSettingsRequest(input)
return out, req.Send()
}
// GetAccountSettingsWithContext is the same as GetAccountSettings with the addition of
// the ability to pass a context and additional request options.
//
// See GetAccountSettings for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Chime) GetAccountSettingsWithContext(ctx aws.Context, input *GetAccountSettingsInput, opts ...request.Option) (*GetAccountSettingsOutput, error) {
req, out := c.GetAccountSettingsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetBot = "GetBot"
// GetBotRequest generates a "aws/request.Request" representing the
// client's request for the GetBot operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See GetBot for more information on using the GetBot
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the GetBotRequest method.
// req, resp := client.GetBotRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetBot
func (c *Chime) GetBotRequest(input *GetBotInput) (req *request.Request, output *GetBotOutput) {
op := &request.Operation{
Name: opGetBot,
HTTPMethod: "GET",
HTTPPath: "/accounts/{accountId}/bots/{botId}",
}
if input == nil {
input = &GetBotInput{}
}
output = &GetBotOutput{}
req = c.newRequest(op, input, output)
return
}
// GetBot API operation for Amazon Chime.
//
// Retrieves details for the specified bot, such as bot email address, bot type,
// status, and display name.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Chime's
// API operation GetBot for usage and error information.
//
// Returned Error Codes:
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
// The service is currently unavailable.
//
// * ErrCodeServiceFailureException "ServiceFailureException"
// The service encountered an unexpected error.
//
// * ErrCodeForbiddenException "ForbiddenException"
// The client is permanently forbidden from making the request. For example,
// when a user tries to create an account from an unsupported Region.
//
// * ErrCodeUnauthorizedClientException "UnauthorizedClientException"
// The client is not currently authorized to make the request.
//
// * ErrCodeNotFoundException "NotFoundException"
// One or more of the resources in the request does not exist in the system.
//
// * ErrCodeBadRequestException "BadRequestException"
// The input parameters don't match the service's restrictions.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetBot
func (c *Chime) GetBot(input *GetBotInput) (*GetBotOutput, error) {
req, out := c.GetBotRequest(input)
return out, req.Send()
}
// GetBotWithContext is the same as GetBot with the addition of
// the ability to pass a context and additional request options.
//
// See GetBot for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Chime) GetBotWithContext(ctx aws.Context, input *GetBotInput, opts ...request.Option) (*GetBotOutput, error) {
req, out := c.GetBotRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetEventsConfiguration = "GetEventsConfiguration"
// GetEventsConfigurationRequest generates a "aws/request.Request" representing the
// client's request for the GetEventsConfiguration operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See GetEventsConfiguration for more information on using the GetEventsConfiguration
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the GetEventsConfigurationRequest method.
// req, resp := client.GetEventsConfigurationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetEventsConfiguration
func (c *Chime) GetEventsConfigurationRequest(input *GetEventsConfigurationInput) (req *request.Request, output *GetEventsConfigurationOutput) {
op := &request.Operation{
Name: opGetEventsConfiguration,
HTTPMethod: "GET",
HTTPPath: "/accounts/{accountId}/bots/{botId}/events-configuration",
}
if input == nil {
input = &GetEventsConfigurationInput{}
}
output = &GetEventsConfigurationOutput{}
req = c.newRequest(op, input, output)
return
}
// GetEventsConfiguration API operation for Amazon Chime.
//
// Gets details for an events configuration that allows a bot to receive outgoing
// events, such as an HTTPS endpoint or Lambda function ARN.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Chime's
// API operation GetEventsConfiguration for usage and error information.
//
// Returned Error Codes:
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
// The service is currently unavailable.
//
// * ErrCodeServiceFailureException "ServiceFailureException"
// The service encountered an unexpected error.
//
// * ErrCodeForbiddenException "ForbiddenException"
// The client is permanently forbidden from making the request. For example,
// when a user tries to create an account from an unsupported Region.
//
// * ErrCodeBadRequestException "BadRequestException"
// The input parameters don't match the service's restrictions.
//
// * ErrCodeUnauthorizedClientException "UnauthorizedClientException"
// The client is not currently authorized to make the request.
//
// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException"
// The request exceeds the resource limit.
//
// * ErrCodeNotFoundException "NotFoundException"
// One or more of the resources in the request does not exist in the system.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetEventsConfiguration
func (c *Chime) GetEventsConfiguration(input *GetEventsConfigurationInput) (*GetEventsConfigurationOutput, error) {
req, out := c.GetEventsConfigurationRequest(input)
return out, req.Send()
}
// GetEventsConfigurationWithContext is the same as GetEventsConfiguration with the addition of
// the ability to pass a context and additional request options.
//
// See GetEventsConfiguration for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Chime) GetEventsConfigurationWithContext(ctx aws.Context, input *GetEventsConfigurationInput, opts ...request.Option) (*GetEventsConfigurationOutput, error) {
req, out := c.GetEventsConfigurationRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetGlobalSettings = "GetGlobalSettings"
// GetGlobalSettingsRequest generates a "aws/request.Request" representing the
// client's request for the GetGlobalSettings operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See GetGlobalSettings for more information on using the GetGlobalSettings
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the GetGlobalSettingsRequest method.
// req, resp := client.GetGlobalSettingsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetGlobalSettings
func (c *Chime) GetGlobalSettingsRequest(input *GetGlobalSettingsInput) (req *request.Request, output *GetGlobalSettingsOutput) {
op := &request.Operation{
Name: opGetGlobalSettings,
HTTPMethod: "GET",
HTTPPath: "/settings",
}
if input == nil {
input = &GetGlobalSettingsInput{}
}
output = &GetGlobalSettingsOutput{}
req = c.newRequest(op, input, output)
return
}
// GetGlobalSettings API operation for Amazon Chime.
//
// Retrieves global settings for the administrator's AWS account, such as Amazon
// Chime Business Calling and Amazon Chime Voice Connector settings.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Chime's
// API operation GetGlobalSettings for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnauthorizedClientException "UnauthorizedClientException"
// The client is not currently authorized to make the request.
//
// * ErrCodeForbiddenException "ForbiddenException"
// The client is permanently forbidden from making the request. For example,
// when a user tries to create an account from an unsupported Region.
//
// * ErrCodeBadRequestException "BadRequestException"
// The input parameters don't match the service's restrictions.
//
// * ErrCodeThrottledClientException "ThrottledClientException"
// The client exceeded its request rate limit.
//
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
// The service is currently unavailable.
//
// * ErrCodeServiceFailureException "ServiceFailureException"
// The service encountered an unexpected error.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetGlobalSettings
func (c *Chime) GetGlobalSettings(input *GetGlobalSettingsInput) (*GetGlobalSettingsOutput, error) {
req, out := c.GetGlobalSettingsRequest(input)
return out, req.Send()
}
// GetGlobalSettingsWithContext is the same as GetGlobalSettings with the addition of
// the ability to pass a context and additional request options.
//
// See GetGlobalSettings for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Chime) GetGlobalSettingsWithContext(ctx aws.Context, input *GetGlobalSettingsInput, opts ...request.Option) (*GetGlobalSettingsOutput, error) {
req, out := c.GetGlobalSettingsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetPhoneNumber = "GetPhoneNumber"
// GetPhoneNumberRequest generates a "aws/request.Request" representing the
// client's request for the GetPhoneNumber operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See GetPhoneNumber for more information on using the GetPhoneNumber
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the GetPhoneNumberRequest method.
// req, resp := client.GetPhoneNumberRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetPhoneNumber
func (c *Chime) GetPhoneNumberRequest(input *GetPhoneNumberInput) (req *request.Request, output *GetPhoneNumberOutput) {
op := &request.Operation{
Name: opGetPhoneNumber,
HTTPMethod: "GET",
HTTPPath: "/phone-numbers/{phoneNumberId}",
}
if input == nil {
input = &GetPhoneNumberInput{}
}
output = &GetPhoneNumberOutput{}
req = c.newRequest(op, input, output)
return
}
// GetPhoneNumber API operation for Amazon Chime.
//
// Retrieves details for the specified phone number ID, such as associations,
// capabilities, and product type.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Chime's
// API operation GetPhoneNumber for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnauthorizedClientException "UnauthorizedClientException"
// The client is not currently authorized to make the request.
//
// * ErrCodeNotFoundException "NotFoundException"
// One or more of the resources in the request does not exist in the system.
//
// * ErrCodeForbiddenException "ForbiddenException"
// The client is permanently forbidden from making the request. For example,
// when a user tries to create an account from an unsupported Region.
//
// * ErrCodeBadRequestException "BadRequestException"
// The input parameters don't match the service's restrictions.
//
// * ErrCodeThrottledClientException "ThrottledClientException"
// The client exceeded its request rate limit.
//
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
// The service is currently unavailable.
//
// * ErrCodeServiceFailureException "ServiceFailureException"
// The service encountered an unexpected error.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetPhoneNumber
func (c *Chime) GetPhoneNumber(input *GetPhoneNumberInput) (*GetPhoneNumberOutput, error) {
req, out := c.GetPhoneNumberRequest(input)
return out, req.Send()
}
// GetPhoneNumberWithContext is the same as GetPhoneNumber with the addition of
// the ability to pass a context and additional request options.
//
// See GetPhoneNumber for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Chime) GetPhoneNumberWithContext(ctx aws.Context, input *GetPhoneNumberInput, opts ...request.Option) (*GetPhoneNumberOutput, error) {
req, out := c.GetPhoneNumberRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetPhoneNumberOrder = "GetPhoneNumberOrder"
// GetPhoneNumberOrderRequest generates a "aws/request.Request" representing the
// client's request for the GetPhoneNumberOrder operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See GetPhoneNumberOrder for more information on using the GetPhoneNumberOrder
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the GetPhoneNumberOrderRequest method.
// req, resp := client.GetPhoneNumberOrderRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetPhoneNumberOrder
func (c *Chime) GetPhoneNumberOrderRequest(input *GetPhoneNumberOrderInput) (req *request.Request, output *GetPhoneNumberOrderOutput) {
op := &request.Operation{
Name: opGetPhoneNumberOrder,
HTTPMethod: "GET",
HTTPPath: "/phone-number-orders/{phoneNumberOrderId}",
}
if input == nil {
input = &GetPhoneNumberOrderInput{}
}
output = &GetPhoneNumberOrderOutput{}
req = c.newRequest(op, input, output)
return
}
// GetPhoneNumberOrder API operation for Amazon Chime.
//
// Retrieves details for the specified phone number order, such as order creation
// timestamp, phone numbers in E.164 format, product type, and order status.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Chime's
// API operation GetPhoneNumberOrder for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnauthorizedClientException "UnauthorizedClientException"
// The client is not currently authorized to make the request.
//
// * ErrCodeNotFoundException "NotFoundException"
// One or more of the resources in the request does not exist in the system.
//
// * ErrCodeForbiddenException "ForbiddenException"
// The client is permanently forbidden from making the request. For example,
// when a user tries to create an account from an unsupported Region.
//
// * ErrCodeBadRequestException "BadRequestException"
// The input parameters don't match the service's restrictions.
//
// * ErrCodeThrottledClientException "ThrottledClientException"
// The client exceeded its request rate limit.
//
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
// The service is currently unavailable.
//
// * ErrCodeServiceFailureException "ServiceFailureException"
// The service encountered an unexpected error.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetPhoneNumberOrder
func (c *Chime) GetPhoneNumberOrder(input *GetPhoneNumberOrderInput) (*GetPhoneNumberOrderOutput, error) {
req, out := c.GetPhoneNumberOrderRequest(input)
return out, req.Send()
}
// GetPhoneNumberOrderWithContext is the same as GetPhoneNumberOrder with the addition of
// the ability to pass a context and additional request options.
//
// See GetPhoneNumberOrder for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Chime) GetPhoneNumberOrderWithContext(ctx aws.Context, input *GetPhoneNumberOrderInput, opts ...request.Option) (*GetPhoneNumberOrderOutput, error) {
req, out := c.GetPhoneNumberOrderRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetUser = "GetUser"
// GetUserRequest generates a "aws/request.Request" representing the
// client's request for the GetUser operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See GetUser for more information on using the GetUser
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the GetUserRequest method.
// req, resp := client.GetUserRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetUser
func (c *Chime) GetUserRequest(input *GetUserInput) (req *request.Request, output *GetUserOutput) {
op := &request.Operation{
Name: opGetUser,
HTTPMethod: "GET",
HTTPPath: "/accounts/{accountId}/users/{userId}",
}
if input == nil {
input = &GetUserInput{}
}
output = &GetUserOutput{}
req = c.newRequest(op, input, output)
return
}
// GetUser API operation for Amazon Chime.
//
// Retrieves details for the specified user ID, such as primary email address,
// license type, and personal meeting PIN.
//
// To retrieve user details with an email address instead of a user ID, use
// the ListUsers action, and then filter by email address.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Chime's
// API operation GetUser for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnauthorizedClientException "UnauthorizedClientException"
// The client is not currently authorized to make the request.
//
// * ErrCodeNotFoundException "NotFoundException"
// One or more of the resources in the request does not exist in the system.
//
// * ErrCodeForbiddenException "ForbiddenException"
// The client is permanently forbidden from making the request. For example,
// when a user tries to create an account from an unsupported Region.
//
// * ErrCodeBadRequestException "BadRequestException"
// The input parameters don't match the service's restrictions.
//
// * ErrCodeThrottledClientException "ThrottledClientException"
// The client exceeded its request rate limit.
//
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
// The service is currently unavailable.
//
// * ErrCodeServiceFailureException "ServiceFailureException"
// The service encountered an unexpected error.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetUser
func (c *Chime) GetUser(input *GetUserInput) (*GetUserOutput, error) {
req, out := c.GetUserRequest(input)
return out, req.Send()
}
// GetUserWithContext is the same as GetUser with the addition of
// the ability to pass a context and additional request options.
//
// See GetUser for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Chime) GetUserWithContext(ctx aws.Context, input *GetUserInput, opts ...request.Option) (*GetUserOutput, error) {
req, out := c.GetUserRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetUserSettings = "GetUserSettings"
// GetUserSettingsRequest generates a "aws/request.Request" representing the
// client's request for the GetUserSettings operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See GetUserSettings for more information on using the GetUserSettings
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the GetUserSettingsRequest method.
// req, resp := client.GetUserSettingsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetUserSettings
func (c *Chime) GetUserSettingsRequest(input *GetUserSettingsInput) (req *request.Request, output *GetUserSettingsOutput) {
op := &request.Operation{
Name: opGetUserSettings,
HTTPMethod: "GET",
HTTPPath: "/accounts/{accountId}/users/{userId}/settings",
}
if input == nil {
input = &GetUserSettingsInput{}
}
output = &GetUserSettingsOutput{}
req = c.newRequest(op, input, output)
return
}
// GetUserSettings API operation for Amazon Chime.
//
// Retrieves settings for the specified user ID, such as any associated phone
// number settings.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Chime's
// API operation GetUserSettings for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnauthorizedClientException "UnauthorizedClientException"
// The client is not currently authorized to make the request.
//
// * ErrCodeNotFoundException "NotFoundException"
// One or more of the resources in the request does not exist in the system.
//
// * ErrCodeForbiddenException "ForbiddenException"
// The client is permanently forbidden from making the request. For example,
// when a user tries to create an account from an unsupported Region.
//
// * ErrCodeBadRequestException "BadRequestException"
// The input parameters don't match the service's restrictions.
//
// * ErrCodeThrottledClientException "ThrottledClientException"
// The client exceeded its request rate limit.
//
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
// The service is currently unavailable.
//
// * ErrCodeServiceFailureException "ServiceFailureException"
// The service encountered an unexpected error.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetUserSettings
func (c *Chime) GetUserSettings(input *GetUserSettingsInput) (*GetUserSettingsOutput, error) {
req, out := c.GetUserSettingsRequest(input)
return out, req.Send()
}
// GetUserSettingsWithContext is the same as GetUserSettings with the addition of
// the ability to pass a context and additional request options.
//
// See GetUserSettings for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Chime) GetUserSettingsWithContext(ctx aws.Context, input *GetUserSettingsInput, opts ...request.Option) (*GetUserSettingsOutput, error) {
req, out := c.GetUserSettingsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetVoiceConnector = "GetVoiceConnector"
// GetVoiceConnectorRequest generates a "aws/request.Request" representing the
// client's request for the GetVoiceConnector operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See GetVoiceConnector for more information on using the GetVoiceConnector
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the GetVoiceConnectorRequest method.
// req, resp := client.GetVoiceConnectorRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnector
func (c *Chime) GetVoiceConnectorRequest(input *GetVoiceConnectorInput) (req *request.Request, output *GetVoiceConnectorOutput) {
op := &request.Operation{
Name: opGetVoiceConnector,
HTTPMethod: "GET",
HTTPPath: "/voice-connectors/{voiceConnectorId}",
}
if input == nil {
input = &GetVoiceConnectorInput{}
}
output = &GetVoiceConnectorOutput{}
req = c.newRequest(op, input, output)
return
}
// GetVoiceConnector API operation for Amazon Chime.
//
// Retrieves details for the specified Amazon Chime Voice Connector, such as
// timestamps, name, outbound host, and encryption requirements.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Chime's
// API operation GetVoiceConnector for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnauthorizedClientException "UnauthorizedClientException"
// The client is not currently authorized to make the request.
//
// * ErrCodeNotFoundException "NotFoundException"
// One or more of the resources in the request does not exist in the system.
//
// * ErrCodeForbiddenException "ForbiddenException"
// The client is permanently forbidden from making the request. For example,
// when a user tries to create an account from an unsupported Region.
//
// * ErrCodeBadRequestException "BadRequestException"
// The input parameters don't match the service's restrictions.
//
// * ErrCodeThrottledClientException "ThrottledClientException"
// The client exceeded its request rate limit.
//
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
// The service is currently unavailable.
//
// * ErrCodeServiceFailureException "ServiceFailureException"
// The service encountered an unexpected error.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnector
func (c *Chime) GetVoiceConnector(input *GetVoiceConnectorInput) (*GetVoiceConnectorOutput, error) {
req, out := c.GetVoiceConnectorRequest(input)
return out, req.Send()
}
// GetVoiceConnectorWithContext is the same as GetVoiceConnector with the addition of
// the ability to pass a context and additional request options.
//
// See GetVoiceConnector for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Chime) GetVoiceConnectorWithContext(ctx aws.Context, input *GetVoiceConnectorInput, opts ...request.Option) (*GetVoiceConnectorOutput, error) {
req, out := c.GetVoiceConnectorRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetVoiceConnectorOrigination = "GetVoiceConnectorOrigination"
// GetVoiceConnectorOriginationRequest generates a "aws/request.Request" representing the
// client's request for the GetVoiceConnectorOrigination operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See GetVoiceConnectorOrigination for more information on using the GetVoiceConnectorOrigination
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the GetVoiceConnectorOriginationRequest method.
// req, resp := client.GetVoiceConnectorOriginationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorOrigination
func (c *Chime) GetVoiceConnectorOriginationRequest(input *GetVoiceConnectorOriginationInput) (req *request.Request, output *GetVoiceConnectorOriginationOutput) {
op := &request.Operation{
Name: opGetVoiceConnectorOrigination,
HTTPMethod: "GET",
HTTPPath: "/voice-connectors/{voiceConnectorId}/origination",
}
if input == nil {
input = &GetVoiceConnectorOriginationInput{}
}
output = &GetVoiceConnectorOriginationOutput{}
req = c.newRequest(op, input, output)
return
}
// GetVoiceConnectorOrigination API operation for Amazon Chime.
//
// Retrieves origination setting details for the specified Amazon Chime Voice
// Connector.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Chime's
// API operation GetVoiceConnectorOrigination for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnauthorizedClientException "UnauthorizedClientException"
// The client is not currently authorized to make the request.
//
// * ErrCodeNotFoundException "NotFoundException"
// One or more of the resources in the request does not exist in the system.
//
// * ErrCodeForbiddenException "ForbiddenException"
// The client is permanently forbidden from making the request. For example,
// when a user tries to create an account from an unsupported Region.
//
// * ErrCodeBadRequestException "BadRequestException"
// The input parameters don't match the service's restrictions.
//
// * ErrCodeThrottledClientException "ThrottledClientException"
// The client exceeded its request rate limit.
//
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
// The service is currently unavailable.
//
// * ErrCodeServiceFailureException "ServiceFailureException"
// The service encountered an unexpected error.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorOrigination
func (c *Chime) GetVoiceConnectorOrigination(input *GetVoiceConnectorOriginationInput) (*GetVoiceConnectorOriginationOutput, error) {
req, out := c.GetVoiceConnectorOriginationRequest(input)
return out, req.Send()
}
// GetVoiceConnectorOriginationWithContext is the same as GetVoiceConnectorOrigination with the addition of
// the ability to pass a context and additional request options.
//
// See GetVoiceConnectorOrigination for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Chime) GetVoiceConnectorOriginationWithContext(ctx aws.Context, input *GetVoiceConnectorOriginationInput, opts ...request.Option) (*GetVoiceConnectorOriginationOutput, error) {
req, out := c.GetVoiceConnectorOriginationRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetVoiceConnectorTermination = "GetVoiceConnectorTermination"
// GetVoiceConnectorTerminationRequest generates a "aws/request.Request" representing the
// client's request for the GetVoiceConnectorTermination operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See GetVoiceConnectorTermination for more information on using the GetVoiceConnectorTermination
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the GetVoiceConnectorTerminationRequest method.
// req, resp := client.GetVoiceConnectorTerminationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorTermination
func (c *Chime) GetVoiceConnectorTerminationRequest(input *GetVoiceConnectorTerminationInput) (req *request.Request, output *GetVoiceConnectorTerminationOutput) {
op := &request.Operation{
Name: opGetVoiceConnectorTermination,
HTTPMethod: "GET",
HTTPPath: "/voice-connectors/{voiceConnectorId}/termination",
}
if input == nil {
input = &GetVoiceConnectorTerminationInput{}
}
output = &GetVoiceConnectorTerminationOutput{}
req = c.newRequest(op, input, output)
return
}
// GetVoiceConnectorTermination API operation for Amazon Chime.
//
// Retrieves termination setting details for the specified Amazon Chime Voice
// Connector.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Chime's
// API operation GetVoiceConnectorTermination for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnauthorizedClientException "UnauthorizedClientException"
// The client is not currently authorized to make the request.
//
// * ErrCodeNotFoundException "NotFoundException"
// One or more of the resources in the request does not exist in the system.
//
// * ErrCodeForbiddenException "ForbiddenException"
// The client is permanently forbidden from making the request. For example,
// when a user tries to create an account from an unsupported Region.
//
// * ErrCodeBadRequestException "BadRequestException"
// The input parameters don't match the service's restrictions.
//
// * ErrCodeThrottledClientException "ThrottledClientException"
// The client exceeded its request rate limit.
//
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
// The service is currently unavailable.
//
// * ErrCodeServiceFailureException "ServiceFailureException"
// The service encountered an unexpected error.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorTermination
func (c *Chime) GetVoiceConnectorTermination(input *GetVoiceConnectorTerminationInput) (*GetVoiceConnectorTerminationOutput, error) {
req, out := c.GetVoiceConnectorTerminationRequest(input)
return out, req.Send()
}
// GetVoiceConnectorTerminationWithContext is the same as GetVoiceConnectorTermination with the addition of
// the ability to pass a context and additional request options.
//
// See GetVoiceConnectorTermination for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Chime) GetVoiceConnectorTerminationWithContext(ctx aws.Context, input *GetVoiceConnectorTerminationInput, opts ...request.Option) (*GetVoiceConnectorTerminationOutput, error) {
req, out := c.GetVoiceConnectorTerminationRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetVoiceConnectorTerminationHealth = "GetVoiceConnectorTerminationHealth"
// GetVoiceConnectorTerminationHealthRequest generates a "aws/request.Request" representing the
// client's request for the GetVoiceConnectorTerminationHealth operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See GetVoiceConnectorTerminationHealth for more information on using the GetVoiceConnectorTerminationHealth
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the GetVoiceConnectorTerminationHealthRequest method.
// req, resp := client.GetVoiceConnectorTerminationHealthRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorTerminationHealth
func (c *Chime) GetVoiceConnectorTerminationHealthRequest(input *GetVoiceConnectorTerminationHealthInput) (req *request.Request, output *GetVoiceConnectorTerminationHealthOutput) {
op := &request.Operation{
Name: opGetVoiceConnectorTerminationHealth,
HTTPMethod: "GET",
HTTPPath: "/voice-connectors/{voiceConnectorId}/termination/health",
}
if input == nil {
input = &GetVoiceConnectorTerminationHealthInput{}
}
output = &GetVoiceConnectorTerminationHealthOutput{}
req = c.newRequest(op, input, output)
return
}
// GetVoiceConnectorTerminationHealth API operation for Amazon Chime.
//
// Retrieves information about the last time a SIP OPTIONS ping was received
// from your SIP infrastructure for the specified Amazon Chime Voice Connector.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Chime's
// API operation GetVoiceConnectorTerminationHealth for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnauthorizedClientException "UnauthorizedClientException"
// The client is not currently authorized to make the request.
//
// * ErrCodeNotFoundException "NotFoundException"
// One or more of the resources in the request does not exist in the system.
//
// * ErrCodeForbiddenException "ForbiddenException"
// The client is permanently forbidden from making the request. For example,
// when a user tries to create an account from an unsupported Region.
//
// * ErrCodeBadRequestException "BadRequestException"
// The input parameters don't match the service's restrictions.
//
// * ErrCodeThrottledClientException "ThrottledClientException"
// The client exceeded its request rate limit.
//
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
// The service is currently unavailable.
//
// * ErrCodeServiceFailureException "ServiceFailureException"
// The service encountered an unexpected error.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorTerminationHealth
func (c *Chime) GetVoiceConnectorTerminationHealth(input *GetVoiceConnectorTerminationHealthInput) (*GetVoiceConnectorTerminationHealthOutput, error) {
req, out := c.GetVoiceConnectorTerminationHealthRequest(input)
return out, req.Send()
}
// GetVoiceConnectorTerminationHealthWithContext is the same as GetVoiceConnectorTerminationHealth with the addition of
// the ability to pass a context and additional request options.
//
// See GetVoiceConnectorTerminationHealth for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Chime) GetVoiceConnectorTerminationHealthWithContext(ctx aws.Context, input *GetVoiceConnectorTerminationHealthInput, opts ...request.Option) (*GetVoiceConnectorTerminationHealthOutput, error) {
req, out := c.GetVoiceConnectorTerminationHealthRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opInviteUsers = "InviteUsers"
// InviteUsersRequest generates a "aws/request.Request" representing the
// client's request for the InviteUsers operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See InviteUsers for more information on using the InviteUsers
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the InviteUsersRequest method.
// req, resp := client.InviteUsersRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/InviteUsers
func (c *Chime) InviteUsersRequest(input *InviteUsersInput) (req *request.Request, output *InviteUsersOutput) {
op := &request.Operation{
Name: opInviteUsers,
HTTPMethod: "POST",
HTTPPath: "/accounts/{accountId}/users?operation=add",
}
if input == nil {
input = &InviteUsersInput{}
}
output = &InviteUsersOutput{}
req = c.newRequest(op, input, output)
return
}
// InviteUsers API operation for Amazon Chime.
//
// Sends email invites to as many as 50 users, inviting them to the specified
// Amazon Chime Team account. Only Team account types are currently supported
// for this action.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Chime's
// API operation InviteUsers for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnauthorizedClientException "UnauthorizedClientException"
// The client is not currently authorized to make the request.
//
// * ErrCodeNotFoundException "NotFoundException"
// One or more of the resources in the request does not exist in the system.
//
// * ErrCodeForbiddenException "ForbiddenException"
// The client is permanently forbidden from making the request. For example,
// when a user tries to create an account from an unsupported Region.
//
// * ErrCodeBadRequestException "BadRequestException"
// The input parameters don't match the service's restrictions.
//
// * ErrCodeThrottledClientException "ThrottledClientException"
// The client exceeded its request rate limit.
//
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
// The service is currently unavailable.
//
// * ErrCodeServiceFailureException "ServiceFailureException"
// The service encountered an unexpected error.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/InviteUsers
func (c *Chime) InviteUsers(input *InviteUsersInput) (*InviteUsersOutput, error) {
req, out := c.InviteUsersRequest(input)
return out, req.Send()
}
// InviteUsersWithContext is the same as InviteUsers with the addition of
// the ability to pass a context and additional request options.
//
// See InviteUsers for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Chime) InviteUsersWithContext(ctx aws.Context, input *InviteUsersInput, opts ...request.Option) (*InviteUsersOutput, error) {
req, out := c.InviteUsersRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opListAccounts = "ListAccounts"
// ListAccountsRequest generates a "aws/request.Request" representing the
// client's request for the ListAccounts operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See ListAccounts for more information on using the ListAccounts
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the ListAccountsRequest method.
// req, resp := client.ListAccountsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListAccounts
func (c *Chime) ListAccountsRequest(input *ListAccountsInput) (req *request.Request, output *ListAccountsOutput) {
op := &request.Operation{
Name: opListAccounts,
HTTPMethod: "GET",
HTTPPath: "/accounts",
Paginator: &request.Paginator{
InputTokens: []string{"NextToken"},
OutputTokens: []string{"NextToken"},
LimitToken: "MaxResults",
TruncationToken: "",
},
}
if input == nil {
input = &ListAccountsInput{}
}
output = &ListAccountsOutput{}
req = c.newRequest(op, input, output)
return
}
// ListAccounts API operation for Amazon Chime.
//
// Lists the Amazon Chime accounts under the administrator's AWS account. You
// can filter accounts by account name prefix. To find out which Amazon Chime
// account a user belongs to, you can filter by the user's email address, which
// returns one account result.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Chime's
// API operation ListAccounts for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnauthorizedClientException "UnauthorizedClientException"
// The client is not currently authorized to make the request.
//
// * ErrCodeNotFoundException "NotFoundException"
// One or more of the resources in the request does not exist in the system.
//
// * ErrCodeForbiddenException "ForbiddenException"
// The client is permanently forbidden from making the request. For example,
// when a user tries to create an account from an unsupported Region.
//
// * ErrCodeBadRequestException "BadRequestException"
// The input parameters don't match the service's restrictions.
//
// * ErrCodeThrottledClientException "ThrottledClientException"
// The client exceeded its request rate limit.
//
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
// The service is currently unavailable.
//
// * ErrCodeServiceFailureException "ServiceFailureException"
// The service encountered an unexpected error.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListAccounts
func (c *Chime) ListAccounts(input *ListAccountsInput) (*ListAccountsOutput, error) {
req, out := c.ListAccountsRequest(input)
return out, req.Send()
}
// ListAccountsWithContext is the same as ListAccounts with the addition of
// the ability to pass a context and additional request options.