// 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.
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.
// 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 .
func (c *Client) ListAccounts(ctx context.Context, params *ListAccountsInput, optFns ...func(*Options)) (*ListAccountsOutput, error) {
	if params == nil {
		params = &ListAccountsInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "ListAccounts", params, optFns, addOperationListAccountsMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*ListAccountsOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) ListAccounts ( ctx context . Context , params * ListAccountsInput , optFns ... func ( * Options ) ) ( * ListAccountsOutput , error ) { if params == nil { params = & ListAccountsInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationListAccountsMiddlewares ) if err != nil { return nil , err } out := result . ( * ListAccountsOutput ) out . ResultMetadata = metadata return out , nil }
Lists the Amazon Chime accounts under the administrator's AWS account.
Lists the Amazon Chime accounts under the administrator ' s AWS account .